Changeset 1021 for trunk/Source/System/Window/Utilities/OSGFlyEngine.h
- Timestamp:
- 11/26/07 22:53:32 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/Window/Utilities/OSGFlyEngine.h
r785 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_FLY NAVIGATOR_H_40 #define _OSG_FLY NAVIGATOR_H_39 #ifndef _OSG_FLYENGINE_H_ 40 #define _OSG_FLYENGINE_H_ 41 41 42 42 #include "OSGConfig.h" 43 43 #include "OSGUtilDef.h" 44 44 45 #include "OSGBaseTypes.h"46 45 #include "OSGVector.h" 47 #include "OSGMatrix.h"48 46 #include "OSGQuaternion.h" 47 #include "OSGViewport.h" 48 #include "OSGNavigatorEngine.h" 49 49 50 50 OSG_BEGIN_NAMESPACE 51 51 52 /*! \brief Navigator for simple fly model. See \ref52 /*! \brief Navigator engine for simple fly model. See \ref 53 53 PageSystemWindowNavigatorsFly for a description. 54 54 */ 55 class OSG_UTIL_DLLMAPPING FlyEngine : public NavigatorEngine 56 { 57 typedef NavigatorEngine Inherited; 55 58 56 class OSG_UTIL_DLLMAPPING FlyNavigator57 {58 59 /*========================== PUBLIC =================================*/ 59 60 public: 61 62 63 60 64 /*---------------------------------------------------------------------*/ 61 65 /*! \name Constructors */ 62 66 /*! \{ */ 63 67 64 Fly Navigator();68 FlyEngine(void); 65 69 66 70 /*! \} */ … … 69 73 /*! \{ */ 70 74 71 virtual ~FlyNavigator(); 75 ~FlyEngine(void); 76 77 /*! \} */ 78 /*---------------------------------------------------------------------*/ 79 /*! \name Class Get */ 80 /*! \{ */ 81 82 const char *getClassname(void) { return "FlyEngine"; } 72 83 73 84 /*! \} */ … … 76 87 /*! \{ */ 77 88 78 Matrix &getMatrix(void); 79 Pnt3f &getFrom (void); 80 Pnt3f &getAt (void); 81 Vec3f &getUp (void); 89 virtual const Pnt3f &getFrom(void); 90 virtual const Pnt3f &getAt(void); 91 virtual const Vec3f &getUp(void); 92 virtual const Matrix &getMatrix(void); 93 virtual Real32 getDistance(void); 82 94 83 95 /*! \} */ … … 86 98 /*! \{ */ 87 99 88 void setFrom (Pnt3f new_from); 89 void setAt (Pnt3f new_at); 90 void setUp (Vec3f new_up); 91 void set (Pnt3f new_from, Pnt3f new_at, Vec3f new_up); 92 void set (Matrix new_matrix); 100 virtual void setFrom(Pnt3f new_from); 101 virtual void setAt(Pnt3f new_at); 102 virtual void setUp(Vec3f new_up); 103 virtual void set(Pnt3f new_from, Pnt3f new_at, Vec3f new_up); 104 virtual void set(const Matrix & new_matrix); 105 virtual void setDistance(Real32 new_distance); 106 107 /*! \} */ 108 /*---------------------------------------------------------------------*/ 109 /*! \name navigator engine callbacks */ 110 /*! \{ */ 111 112 virtual void buttonPress(Int16 button,Int16 x,Int16 y,Navigator* nav); 113 virtual void buttonRelease(Int16 , Int16 x,Int16 y,Navigator* nav); 114 virtual void keyPress(Int16 key, Int16 x,Int16 y,Navigator* nav); 115 virtual void moveTo( Int16 x,Int16 y,Navigator* nav); 116 virtual void idle(Int16 buttons, Int16 x,Int16 y,Navigator* nav); 117 118 virtual void onViewportChanged(ViewportPtr new_viewport); 93 119 94 120 /*! \} */ … … 97 123 /*! \{ */ 98 124 99 v oid rotate (Real32 deltaX, Real32 deltaY);100 Real32 forward(Real32 step);101 Real32 right (Real32 step);125 virtual void rotate (Real32 deltaX, Real32 deltaY); 126 virtual Real32 forward(Real32 step); 127 virtual Real32 right (Real32 step); 102 128 103 129 /*! \} */ 104 130 /*========================== PROTECTED ==============================*/ 105 131 protected: 132 106 133 /*---------------------------------------------------------------------*/ 107 134 /*! \name Members */ … … 114 141 115 142 /*! \} */ 143 144 private: 145 /* Not implemented */ 146 FlyEngine(const FlyEngine &other); 147 FlyEngine &operator =(const FlyEngine &other); 116 148 }; 117 149
