Last change
on this file since 299 was 286, checked in by Sanahuja Guillaume, 6 years ago |
draw vrpn axis in simulator
|
File size:
1.4 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 |
|
---|
22 | namespace irr {
|
---|
23 | namespace scene {
|
---|
24 | class IMesh;
|
---|
25 | }
|
---|
26 | }
|
---|
27 |
|
---|
28 | namespace flair {
|
---|
29 | namespace simulator {
|
---|
30 | class MeshSceneNode;
|
---|
31 | class Model;
|
---|
32 |
|
---|
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),
|
---|
37 | bool inverted = false, irr::s32 id = -1);
|
---|
38 |
|
---|
39 | Blade(irr::scene::ISceneNode *parent,
|
---|
40 | const irr::core::vector3df &position = irr::core::vector3df(0, 0, 0),
|
---|
41 | bool inverted = false, irr::s32 id = -1);
|
---|
42 |
|
---|
43 | virtual void OnRegisterSceneNode(void);
|
---|
44 | virtual void render(void);
|
---|
45 | virtual const irr::core::aabbox3d<irr::f32> &getBoundingBox(void) const {
|
---|
46 | return Box;
|
---|
47 | }
|
---|
48 | void SetRotationSpeed(float value);
|
---|
49 |
|
---|
50 | private:
|
---|
51 | irr::scene::IMesh *pale;
|
---|
52 | irr::core::aabbox3d<irr::f32> Box;
|
---|
53 | MeshSceneNode *pale_1, *pale_2;
|
---|
54 | irr::scene::ISceneNodeAnimator *anim;
|
---|
55 | };
|
---|
56 | } // end namespace simulator
|
---|
57 | } // end namespace flair
|
---|
58 | #endif // BLADE_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.