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

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

lic

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
22namespace irr
23{
24 namespace scene
25 {
26 class IMesh;
27 }
28}
29
30namespace flair
31{
32namespace simulator
33{
34 class MeshSceneNode;
35 class Model;
36
37 class Blade : public irr::scene::ISceneNode
38 {
39 public:
40
41 Blade(Model* parent,const irr::core::vector3df& position = irr::core::vector3df(0,0,0),bool inverted=false,irr::s32 id=-1);
42 virtual void OnRegisterSceneNode(void);
43 virtual void render(void);
44 virtual const irr::core::aabbox3d<irr::f32>& getBoundingBox(void) const
45 {
46 return Box;
47 }
48 void SetRotationSpeed(float value);
49
50
51 private:
52 irr::scene::IMesh *pale;
53 irr::core::aabbox3d<irr::f32> Box;
54 MeshSceneNode *pale_1,*pale_2;
55 irr::scene::ISceneNodeAnimator *anim;
56 };
57} // end namespace simulator
58} // end namespace flair
59#endif // BLADE_H
Note: See TracBrowser for help on using the repository browser.