[10] | 1 | // %flair:license{
|
---|
[15] | 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[10] | 4 | // %flair:license}
|
---|
[8] | 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 |
|
---|
[15] | 22 | namespace irr {
|
---|
| 23 | namespace scene {
|
---|
| 24 | class IMesh;
|
---|
[8] | 25 | }
|
---|
[15] | 26 | }
|
---|
[8] | 27 |
|
---|
[15] | 28 | namespace flair {
|
---|
| 29 | namespace simulator {
|
---|
| 30 | class MeshSceneNode;
|
---|
| 31 | class Model;
|
---|
[8] | 32 |
|
---|
[15] | 33 | class Blade : public irr::scene::ISceneNode {
|
---|
| 34 | public:
|
---|
| 35 | Blade(Model *parent,
|
---|
| 36 | const irr::core::vector3df &position = irr::core::vector3df(0, 0, 0),
|
---|
[339] | 37 | const irr::core::vector3df &rotation = irr::core::vector3df(0, 0, 0),
|
---|
[15] | 38 | bool inverted = false, irr::s32 id = -1);
|
---|
[286] | 39 |
|
---|
| 40 | Blade(irr::scene::ISceneNode *parent,
|
---|
| 41 | const irr::core::vector3df &position = irr::core::vector3df(0, 0, 0),
|
---|
[339] | 42 | const irr::core::vector3df &rotation = irr::core::vector3df(0, 0, 0),
|
---|
[286] | 43 | bool inverted = false, irr::s32 id = -1);
|
---|
| 44 |
|
---|
[15] | 45 | virtual void OnRegisterSceneNode(void);
|
---|
| 46 | virtual void render(void);
|
---|
| 47 | virtual const irr::core::aabbox3d<irr::f32> &getBoundingBox(void) const {
|
---|
| 48 | return Box;
|
---|
| 49 | }
|
---|
[339] | 50 | void SetRotationSpeed(const irr::core::vector3df &value);
|
---|
[8] | 51 |
|
---|
[15] | 52 | private:
|
---|
| 53 | irr::scene::IMesh *pale;
|
---|
| 54 | irr::core::aabbox3d<irr::f32> Box;
|
---|
| 55 | MeshSceneNode *pale_1, *pale_2;
|
---|
| 56 | irr::scene::ISceneNodeAnimator *anim;
|
---|
| 57 | };
|
---|
[8] | 58 | } // end namespace simulator
|
---|
| 59 | } // end namespace flair
|
---|
| 60 | #endif // BLADE_H
|
---|