Changeset 134 in flair-src for trunk/lib/FlairSimulator/src/unexported
- Timestamp:
- Feb 9, 2017, 5:10:24 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSimulator/src/unexported/GenericObject.h
r69 r134 19 19 #ifdef GL 20 20 21 #include "Simulator.h" 22 23 #include "ConditionVariable.h" 24 #include "Gui.h" 25 #include "Gui_impl.h" 26 #include <ISceneManager.h> 27 #include <ISceneNodeAnimatorCollisionResponse.h> 28 #include <IMetaTriangleSelector.h> 29 #include <IVideoDriver.h> 30 #include <ICameraSceneNode.h> 31 #include "FollowMeCamera.h" 32 33 #include <IODevice.h> 34 #include <Euler.h> 35 #include <Vector3D.h> 36 37 #include <aabbox3d.h> 38 #include <IMeshSceneNode.h> 21 #include <vector3d.h> 39 22 40 23 namespace irr { 41 class SEvent; 42 namespace scene { 43 class IMesh; 44 class ISceneManager; 45 class ITriangleSelector; 46 class IMetaTriangleSelector; 47 class ISceneNodeAnimatorCollisionResponse; 48 } 24 namespace scene { 25 class IMesh; 26 class IMeshSceneNode; 27 class ITriangleSelector; 28 class ISceneNode; 29 } 49 30 } 50 31 51 class Gui_impl;52 32 class Simulator_impl; 53 33 54 34 namespace flair { 55 namespace core {56 class ConditionVariable;57 }58 35 namespace simulator { 59 36 class Simulator; 60 class AnimPoursuite;61 37 62 class GenericObject : public irr::scene::IMeshSceneNode{38 class GenericObject { 63 39 friend class ::Simulator_impl; 64 40 65 41 public: 66 GenericObject(Simulator *parent, std::string name, 67 irr::scene::ISceneManager *sceneManager); 42 GenericObject(Simulator *parent,irr::scene::IMesh *mesh); 68 43 virtual ~GenericObject(); 69 44 70 // FROM IMPL71 45 irr::scene::ITriangleSelector *TriangleSelector(void); 72 irr::core::aabbox3d<irr::f32> box;73 // END FROM IMPL74 75 irr::scene::ISceneNode *getSceneNode();76 virtual const irr::core::aabbox3d<irr::f32> &getBoundingBox(void) const {77 return box;78 }79 80 void setPosition(irr::core::vector3df position);81 46 void setScale(float value); 82 void setScale(irr::core::vector3df scale); 83 void setRotation(irr::core::vector3df rotation); 84 void OnRegisterSceneNode(void); 85 void setMesh(irr::scene::IMesh *mesh); 86 irr::scene::IMesh *getMesh(void); 87 void render(void); 88 virtual void setReadOnlyMaterials(bool readonly){}; 89 virtual bool isReadOnlyMaterials(void) const { return false; } 90 virtual irr::scene::IShadowVolumeSceneNode * 91 addShadowVolumeSceneNode(const irr::scene::IMesh *shadowMesh = 0, 92 irr::s32 id = -1, bool zfailmethod = true, 93 irr::f32 infinity = 1000.0f) { 94 return NULL; 95 } 96 47 void setScale(const irr::core::vector3df& scale); 48 void setPosition(const irr::core::vector3df& position); 49 void setRotation(const irr::core::vector3df& rotation); 50 97 51 private: 98 void UpdateFrom(core::io_data *data){};99 irr::scene::IMesh *mesh;100 52 irr::scene::ITriangleSelector *selector; 101 flair::core::ConditionVariable *cond; 102 irr::video::SMaterial Material; 103 }; 53 irr::scene::IMeshSceneNode *meshSceneNode; 54 }; 104 55 } // end namespace simulator 105 56 } // end namespace flair
Note:
See TracChangeset
for help on using the changeset viewer.