source: flair-src/trunk/lib/FlairSimulator/src/Blade.h@ 8

Last change on this file since 8 was 8, checked in by Sanahuja Guillaume, 6 years ago

simulator

File size: 1.3 KB
Line 
1// created: 2012/08/22
2// filename: Blade.h
3//
4// author: Guillaume Sanahuja
5// Copyright Heudiasyc UMR UTC/CNRS 7253
6//
7// version: $Id: $
8//
9// purpose: classe definissant une Blade
10//
11/*********************************************************************/
12
13#ifndef BLADE_H
14#define BLADE_H
15
16#include <ISceneNode.h>
17
18namespace irr
19{
20 namespace scene
21 {
22 class IMesh;
23 }
24}
25
26namespace flair
27{
28namespace simulator
29{
30 class MeshSceneNode;
31 class Model;
32
33 class Blade : public irr::scene::ISceneNode
34 {
35 public:
36
37 Blade(Model* parent,const irr::core::vector3df& position = irr::core::vector3df(0,0,0),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 {
42 return Box;
43 }
44 void SetRotationSpeed(float value);
45
46
47 private:
48 irr::scene::IMesh *pale;
49 irr::core::aabbox3d<irr::f32> Box;
50 MeshSceneNode *pale_1,*pale_2;
51 irr::scene::ISceneNodeAnimator *anim;
52 };
53} // end namespace simulator
54} // end namespace flair
55#endif // BLADE_H
Note: See TracBrowser for help on using the repository browser.