fixed: compile issue
[opensg.git] / Source / System / Window / Utilities / OSGNoneEngine.h
blob6a69583bced5bd23141f90f165136bd89a613e17
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2002 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
10 * *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
13 * License *
14 * *
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
18 * *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
23 * *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
27 * *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
30 * Changes *
31 * *
32 * *
33 * *
34 * *
35 * *
36 * *
37 \*---------------------------------------------------------------------------*/
39 #ifndef _OSG_NONEENGINE_H_
40 #define _OSG_NONEENGINE_H_
42 #include "OSGConfig.h"
43 #include "OSGUtilDef.h"
45 #include "OSGVector.h"
46 #include "OSGQuaternion.h"
47 #include "OSGViewport.h"
48 #include "OSGNavigatorEngine.h"
50 OSG_BEGIN_NAMESPACE
52 /*! \brief Base class for all navigator engines.
53 \ingroup GrpUtilNavigation
54 \ingroup GrpLibOSGUtil
57 class OSG_UTIL_DLLMAPPING NoneEngine : public NavigatorEngine
59 typedef NavigatorEngine Inherited;
60 typedef NoneEngine Self;
62 /*========================== PUBLIC =================================*/
64 public:
66 /*---------------------------------------------------------------------*/
67 /*! \name Types */
68 /*! \{ */
70 OSG_GEN_INTERNAL_MEMOBJPTR(NoneEngine);
72 /*! \} */
73 /*---------------------------------------------------------------------*/
74 /*! \name Construction */
75 /*! \{ */
77 static ObjTransitPtr create(void);
79 /*! \} */
80 /*---------------------------------------------------------------------*/
81 /*! \name Class Get */
82 /*! \{ */
84 const char *getClassname(void) { return "NoneEngine"; }
86 /*! \} */
87 /*---------------------------------------------------------------------*/
88 /*! \name Get */
89 /*! \{ */
91 virtual const Pnt3f &getFrom(void);
92 virtual const Pnt3f &getAt(void);
93 virtual const Vec3f &getUp(void);
94 virtual const Matrix &getMatrix(void);
95 virtual Real32 getDistance(void);
97 /*! \} */
98 /*---------------------------------------------------------------------*/
99 /*! \name Set */
100 /*! \{ */
102 virtual void setFrom(Pnt3f new_from);
103 virtual void setAt(Pnt3f new_at);
104 virtual void setUp(Vec3f new_up);
105 virtual void set(Pnt3f new_from, Pnt3f new_at, Vec3f new_up);
106 virtual void set(const Matrix & new_matrix);
107 virtual void setDistance(Real32 new_distance);
109 /*! \} */
110 /*---------------------------------------------------------------------*/
111 /*! \name navigator engine callbacks */
112 /*! \{ */
114 virtual void buttonPress(Int16 button,Int16 x,Int16 y,Navigator* nav);
115 virtual void buttonRelease(Int16 , Int16 x,Int16 y,Navigator* nav);
116 virtual void keyPress(Int16 key, Int16 x,Int16 y,Navigator* nav);
117 virtual void moveTo( Int16 x,Int16 y,Navigator* nav);
118 virtual void idle(Int16 buttons, Int16 x,Int16 y,Navigator* nav);
120 /*! \} */
121 /*========================== PROTECTED ==============================*/
123 protected:
125 /*---------------------------------------------------------------------*/
126 /*! \name Constructors/Destructor */
127 /*! \{ */
129 NoneEngine(void);
130 virtual ~NoneEngine(void);
132 /*! \} */
133 /*---------------------------------------------------------------------*/
134 /*! \name Members */
135 /*! \{ */
137 Matrix _noneMatrix;
139 /*! \} */
141 private:
143 /* Not implemented */
144 NoneEngine(const NoneEngine &other);
145 NoneEngine &operator =(const NoneEngine &other);
148 OSG_GEN_MEMOBJPTR(NoneEngine);
150 OSG_END_NAMESPACE
152 #endif