1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2002 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
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. *
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. *
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. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
40 #ifndef _OSGOFFCENTERPERSPECTIVECAMERA_H_
41 #define _OSGOFFCENTERPERSPECTIVECAMERA_H_
46 #include "OSGOffCenterPerspectiveCameraBase.h"
50 /*! \brief OffCenter Perspective Camera class.
51 See for example \ref PageSystemWindowCameraPerspective
52 for a description or take a look at the details.
53 \ingroup GrpWindowCameraObj
54 \ingroup GrpLibOSGWindow
58 class OSG_WINDOW_DLLMAPPING OffCenterPerspectiveCamera
:
59 public OffCenterPerspectiveCameraBase
61 /*========================== PUBLIC =================================*/
65 /*---------------------------------------------------------------------*/
66 /*! \name Class Get */
70 /*---------------------------------------------------------------------*/
71 /*! \name transformation */
74 virtual void changed(ConstFieldMaskArg whichField
,
79 /*---------------------------------------------------------------------*/
80 /*! \name your_category */
83 virtual void getProjection(Matrix
&result
,
88 /*---------------------------------------------------------------------*/
92 virtual void dump( UInt32 uiIndent
= 0,
93 const BitVector bvFlags
= 0) const;
96 /*========================= PROTECTED ===============================*/
100 /*---------------------------------------------------------------------*/
101 /*! \name Constructors */
104 OffCenterPerspectiveCamera(void);
105 OffCenterPerspectiveCamera(const OffCenterPerspectiveCamera
&source
);
108 /*---------------------------------------------------------------------*/
109 /*! \name Destructors */
112 virtual ~OffCenterPerspectiveCamera(void);
115 /*---------------------------------------------------------------------*/
119 static void initMethod(InitPhase ePhase
);
122 /*---------------------------------------------------------------------*/
127 /*========================== PRIVATE ================================*/
131 typedef OffCenterPerspectiveCameraBase Inherited
;
133 friend class FieldContainer
;
134 friend class OffCenterPerspectiveCameraBase
;
136 // prohibit default functions (move to 'public' if you need one)
137 void operator =(const OffCenterPerspectiveCamera
&source
);
140 //---------------------------------------------------------------------------
142 //---------------------------------------------------------------------------
144 typedef OffCenterPerspectiveCamera
*OffCenterPerspectiveCameraP
;
148 #include "OSGOffCenterPerspectiveCameraBase.inl"
149 #include "OSGOffCenterPerspectiveCamera.inl"
151 #endif /* _OSGOFFCENTERPERSPECTIVECAMERA_H_ */