source: flair-dev/trunk/include/FlairSimulator/Blade.h@ 80

Last change on this file since 80 was 13, checked in by Bayard Gildas, 9 years ago

formatting script + include reformatted

File size: 1.2 KB
Line 
1// %flair:license{
2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
4// %flair:license}
5// created: 2012/08/22
6// filename: Blade.h
7//
8// author: Guillaume Sanahuja
9// Copyright Heudiasyc UMR UTC/CNRS 7253
10//
11// version: $Id: $
12//
13// purpose: classe definissant une Blade
14//
15/*********************************************************************/
16
17#ifndef BLADE_H
18#define BLADE_H
19
20#include <ISceneNode.h>
21
22namespace irr {
23namespace scene {
24class IMesh;
25}
26}
27
28namespace flair {
29namespace simulator {
30class MeshSceneNode;
31class Model;
32
33class Blade : public irr::scene::ISceneNode {
34public:
35 Blade(Model *parent,
36 const irr::core::vector3df &position = irr::core::vector3df(0, 0, 0),
37 bool inverted = false, irr::s32 id = -1);
38 virtual void OnRegisterSceneNode(void);
39 virtual void render(void);
40 virtual const irr::core::aabbox3d<irr::f32> &getBoundingBox(void) const {
41 return Box;
42 }
43 void SetRotationSpeed(float value);
44
45private:
46 irr::scene::IMesh *pale;
47 irr::core::aabbox3d<irr::f32> Box;
48 MeshSceneNode *pale_1, *pale_2;
49 irr::scene::ISceneNodeAnimator *anim;
50};
51} // end namespace simulator
52} // end namespace flair
53#endif // BLADE_H
Note: See TracBrowser for help on using the repository browser.