Changeset 69 in flair-src for trunk/lib/FlairSimulator/src/unexported
- Timestamp:
- Sep 2, 2016, 5:48:40 PM (8 years ago)
- Location:
- trunk/lib/FlairSimulator/src/unexported
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSimulator/src/unexported/FollowMeCamera.h
r51 r69 4 4 // %flair:license} 5 5 // created: 2012/08/21 6 // filename: AnimPoursuite.h6 // filename: FollowMeCamera.h 7 7 // 8 8 // author: Guillaume Sanahuja … … 15 15 /*********************************************************************/ 16 16 17 #ifndef ANIMPOURSUITE_H18 #define ANIMPOURSUITE_H17 #ifndef FOLLOWMECAMERA_H 18 #define FOLLOWMECAMERA_H 19 19 20 #include <ISceneNodeAnimator.h> 21 #include <position2d.h> 22 #include <vector3d.h> 20 #include "VisualizationCamera.h" 21 23 22 24 23 namespace flair { 25 24 namespace simulator { 26 25 27 class AnimPoursuite : public irr::scene::ISceneNodeAnimator{26 class FollowMeCamera : public VisualizationCamera { 28 27 public: 29 AnimPoursuite(const irr::scene::ISceneNode *parent,28 FollowMeCamera(const irr::scene::ISceneNode *parent, 30 29 float rotateSpeed = -500.0f, float zoomSpeed = 4.0f); 31 ~ AnimPoursuite();30 ~FollowMeCamera(); 32 31 33 32 void animateNode(irr::scene::ISceneNode *node, irr::u32 timeMs); 34 ISceneNodeAnimator *createClone(irr::scene::ISceneNode *node,35 irr::scene::ISceneManager *newManager = 0);36 bool MouseMoved(const irr::SEvent &event, irr::core::position2df MousePos);37 33 void setPositionOffset(irr::core::vector3df newpos); 38 34 void setTargetOffset(irr::core::vector3df newpos); 39 35 40 36 private: 41 virtual bool isEventReceiverEnabled(void) const { return true; }42 43 37 irr::core::vector3df pos_offset, target_offset; 44 bool LMouseKey;45 38 irr::core::position2df RotateStart; 46 irr::core::position2df MousePos;47 39 const irr::scene::ISceneNode *parent; 48 40 bool Rotating; 49 41 float RotY, RotZ; 50 float rotateSpeed;51 float zoomSpeed;52 float currentZoom;53 42 float sat(float value); 54 43 }; … … 57 46 } // end namespace flair 58 47 59 #endif // ANIMPOURSUITE_H48 #endif // FOLLOWMECAMERA_H -
trunk/lib/FlairSimulator/src/unexported/GenericObject.h
r15 r69 29 29 #include <IVideoDriver.h> 30 30 #include <ICameraSceneNode.h> 31 #include " AnimPoursuite.h"31 #include "FollowMeCamera.h" 32 32 33 33 #include <IODevice.h> -
trunk/lib/FlairSimulator/src/unexported/Gui_impl.h
r15 r69 30 30 class IMeshSceneNode; 31 31 class ITriangleSelector; 32 //class ICameraSceneNode; 32 33 } 33 34 namespace video { … … 48 49 class GenericObject; 49 50 class Gui; 51 class FixedCamera; 50 52 } 51 53 } … … 83 85 size_t dbtSize(std::vector<flair::simulator::Model *> modeles); 84 86 char *dbtbuf; 87 flair::simulator::FixedCamera *fixedCamera; 85 88 flair::simulator::Gui *self; 89 //irr::scene::ICameraSceneNode * camera; 86 90 }; 87 91 -
trunk/lib/FlairSimulator/src/unexported/Model_impl.h
r15 r69 38 38 namespace simulator { 39 39 class Simulator; 40 class AnimPoursuite;40 class FollowMeCamera; 41 41 } 42 42 } … … 52 52 class IMetaTriangleSelector; 53 53 class ISceneNodeAnimatorCollisionResponse; 54 class ICameraSceneNode;55 54 } 56 55 } … … 94 93 irr::core::aabbox3d<irr::f32> box; 95 94 void SynchronizationPoint(); 96 irr::scene::ICameraSceneNode *camera; 97 flair::simulator::AnimPoursuite *animator; 95 flair::simulator::FollowMeCamera *camera; 98 96 irr::scene::ITriangleSelector *selector; 99 97 #endif
Note:
See TracChangeset
for help on using the changeset viewer.