Changeset 1021 for trunk/Source/System/Window/Utilities/OSGWalkEngine.h
- Timestamp:
- 11/26/07 22:53:32 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/Window/Utilities/OSGWalkEngine.h
r106 r1021 3 3 * * 4 4 * * 5 * Copyright (C) 2000 ,2001by the OpenSG Forum *5 * Copyright (C) 2000-2002 by the OpenSG Forum * 6 6 * * 7 7 * www.opensg.org * … … 37 37 \*---------------------------------------------------------------------------*/ 38 38 39 #ifndef _OSG_WALK NAVIGATOR_H_40 #define _OSG_WALK NAVIGATOR_H_39 #ifndef _OSG_WALKENGINE_H_ 40 #define _OSG_WALKENGINE_H_ 41 41 42 #include "OSGFlyNavigator.h" 43 #include "OSGIntersectAction.h" 42 #include "OSGConfig.h" 43 #include "OSGUtilDef.h" 44 45 #include "OSGVector.h" 46 #include "OSGQuaternion.h" 47 #include "OSGViewport.h" 48 #include "OSGFlyEngine.h" 44 49 45 50 OSG_BEGIN_NAMESPACE 46 51 47 /*! \brief WalkNavigator class 48 */ 52 /*! \brief Base class for all navigator engines. 53 */ 54 class OSG_UTIL_DLLMAPPING WalkEngine : public FlyEngine 55 { 56 typedef FlyEngine Inherited; 49 57 50 class OSG_UTIL_DLLMAPPING WalkNavigator: public FlyNavigator51 {52 58 /*========================== PUBLIC =================================*/ 53 59 public: 60 61 62 54 63 /*---------------------------------------------------------------------*/ 55 64 /*! \name Constructors */ 56 65 /*! \{ */ 57 66 58 Walk Navigator();67 WalkEngine(void); 59 68 60 69 /*! \} */ … … 63 72 /*! \{ */ 64 73 65 ~WalkNavigator(); 74 ~WalkEngine(void); 75 76 /*! \} */ 77 /*---------------------------------------------------------------------*/ 78 /*! \name Class Get */ 79 /*! \{ */ 80 81 const char *getClassname(void) { return "WalkEngine"; } 66 82 67 83 /*! \} */ … … 74 90 /*! \name Set */ 75 91 /*! \{ */ 76 92 77 93 void setGround (const NodePtr &new_ground); 78 94 void setWorld (const NodePtr &new_world ); … … 82 98 83 99 void setPersonDimensions(Real32 height, Real32 width, Real32 fatness); 84 100 101 /*! \} */ 102 /*---------------------------------------------------------------------*/ 103 /*! \name navigator engine callbacks */ 104 /*! \{ */ 105 106 virtual void idle(Int16 buttons, Int16 x, Int16 y, Navigator* nav); 107 108 virtual void onViewportChanged(ViewportPtr new_viewport); 109 85 110 /*! \} */ 86 111 /*---------------------------------------------------------------------*/ … … 88 113 /*! \{ */ 89 114 90 v oid rotate (Real32 deltaX, Real32 deltaY);91 Real32 forward(Real32 step);92 Real32 right (Real32 step);115 virtual void rotate (Real32 deltaX, Real32 deltaY); 116 virtual Real32 forward(Real32 step); 117 virtual Real32 right (Real32 step); 93 118 94 119 /*! \} */ 95 /*========================== PRIVATE ================================*/ 96 private: 120 /*========================== PROTECTED ==============================*/ 121 protected: 122 97 123 /*---------------------------------------------------------------------*/ 98 124 /*! \name Members */ 99 /*! \{ */ 100 125 /*! \{ */ 126 101 127 NodePtr _ground; 102 128 NodePtr _world; … … 109 135 110 136 IntersectAction *_act; 111 137 112 138 /*! \} */ 139 140 private: 141 /* Not implemented */ 142 WalkEngine(const WalkEngine &other); 143 WalkEngine &operator =(const WalkEngine &other); 113 144 }; 114 145 115 146 OSG_END_NAMESPACE 147 116 148 #endif
