Changeset 34 in flair-dev for trunk/include/FlairSimulator
- Timestamp:
- Sep 28, 2016, 8:40:33 AM (8 years ago)
- Location:
- trunk/include/FlairSimulator
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/FlairSimulator/Gui.h
r13 r34 52 52 class Gui : public core::Object { 53 53 friend class ::Simulator_impl; 54 friend class VisualizationCamera; 54 55 55 56 public: … … 62 63 irr::scene::IAnimatedMesh *getMesh(std::string filename) const; 63 64 irr::scene::ISceneManager *getSceneManager(void) const; 65 irr::IrrlichtDevice *getDevice(void) const; 64 66 float getAspectRatio(void) const; 65 67 66 68 protected: 67 irr::IrrlichtDevice *getDevice(void) const;68 69 void setMesh(std::string file, 69 70 irr::core::vector3df position = irr::core::vector3df(0, 0, 0), -
trunk/include/FlairSimulator/Model.h
r13 r34 25 25 #ifdef GL 26 26 #include <aabbox3d.h> 27 #include <IEventReceiver.h> 27 28 namespace irr { 28 29 class SEvent; … … 51 52 namespace simulator { 52 53 class Simulator; 53 class AnimPoursuite;54 class FollowMeCamera; 54 55 55 class Model : public core::IODevice { 56 class Model : public core::IODevice 57 #ifdef GL 58 , public irr::IEventReceiver 59 #endif 60 { 56 61 friend class ::Gui_impl; 57 62 friend class ::Simulator_impl; 58 63 friend class ::Model_impl; 59 friend class AnimPoursuite;60 64 friend class sensor::SensorGL; 61 65 … … 80 84 virtual void WritedbtBuf(char *dbtbuf) = 0; 81 85 virtual void ReaddbtBuf(char *dbtbuf) = 0; 82 virtual bool OnEvent(const irr::SEvent &event) = 0; 86 87 //default event handling 88 bool OnEvent(const irr::SEvent &event) { return false;}; 83 89 84 90 //! Sets the value of the camera's far clipping plane (default: 2000.0f) … … 93 99 virtual void CalcModel(void) = 0; 94 100 #ifdef GL 95 AnimPoursuite *getCamera(void) const;101 FollowMeCamera *getFollowMeCamera(void) const; 96 102 virtual void AnimateModel(void) = 0; 97 103 // void setPosition(core::Vector3D pos); -
trunk/include/FlairSimulator/Parser.h
r13 r34 23 23 24 24 namespace flair { 25 namespace core { 26 class Vector3D; 27 } 28 } 29 30 namespace flair { 25 31 namespace simulator { 26 32 class Parser : public Gui { … … 28 34 /*can create: 29 35 - cylinders: in y axis 36 - fixed cameras 30 37 31 38 */ … … 45 52 irr::core::vector3df getSceneVect(xmlNode *mesh_node, xmlChar *param, 46 53 bool isScale = false); 54 core::Vector3D getMeshVector3D(xmlNode *mesh_node, xmlChar *param); 47 55 }; 48 56 } -
trunk/include/FlairSimulator/X4.h
r13 r34 66 66 void CalcModel(void); 67 67 #ifdef GL 68 bool OnEvent(const irr::SEvent &event){};69 68 void AnimateModel(void); 70 69 size_t dbtSize(void) const; -
trunk/include/FlairSimulator/X8.h
r13 r34 66 66 void CalcModel(void); 67 67 #ifdef GL 68 bool OnEvent(const irr::SEvent &event){};69 68 void AnimateModel(void); 70 69 size_t dbtSize(void) const;
Note:
See TracChangeset
for help on using the changeset viewer.