00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 #ifndef _OSGOFFCENTERPERSPECTIVECAMERA_H_
00041 #define _OSGOFFCENTERPERSPECTIVECAMERA_H_
00042 #ifdef __sgi
00043 #pragma once
00044 #endif
00045
00046 #include <OSGConfig.h>
00047
00048 #include <OSGOffCenterPerspectiveCameraBase.h>
00049
00050 OSG_BEGIN_NAMESPACE
00051
00052 class DrawAction;
00053
00059 class OSG_SYSTEMLIB_DLLMAPPING OffCenterPerspectiveCamera : public OffCenterPerspectiveCameraBase
00060 {
00061
00062 public:
00063
00064
00068 static const char *getClassname(void) { return "OffCenterPerspectiveCamera"; };
00069
00071
00075 virtual void changed(BitVector whichField,
00076 UInt32 origin );
00077
00079
00083 virtual void draw( DrawAction * action, const Viewport& port );
00084
00085 virtual void getProjection( Matrix& result, UInt32 width, UInt32 height );
00086
00088
00092 virtual void dump( UInt32 uiIndent = 0,
00093 const BitVector bvFlags = 0) const;
00094
00096
00097 protected:
00098
00099
00103 OffCenterPerspectiveCamera(void);
00104 OffCenterPerspectiveCamera(const OffCenterPerspectiveCamera &source);
00105
00107
00111 virtual ~OffCenterPerspectiveCamera(void);
00112
00114
00115 private:
00116
00117 typedef OffCenterPerspectiveCameraBase Inherited;
00118
00119 friend class FieldContainer;
00120 friend class OffCenterPerspectiveCameraBase;
00121
00122 static void initMethod( void );
00123
00124 void operator =(const OffCenterPerspectiveCamera &source);
00125
00126
00127 bool MatrixPerspectivePrincipalPnt(Matrix &result,
00128 Real32 rFovy,
00129 Real32 rAspect,
00130 Real32 rNear,
00131 Real32 rFar,
00132 Real32 rPrincipalPointX,
00133 Real32 rPrincipalPointY);
00134 };
00135
00136
00137
00138
00139
00140 typedef OffCenterPerspectiveCamera *OffCenterPerspectiveCameraP;
00141
00142 OSG_END_NAMESPACE
00143
00144 #include <OSGOffCenterPerspectiveCameraBase.inl>
00145 #include <OSGOffCenterPerspectiveCamera.inl>
00146
00147 #define OSGOFFCENTERPERSPECTIVECAMERA_HEADER_CVSID "@(#)$Id: OSGOffCenterPerspectiveCamera.h,v 1.1 2005/07/18 18:46:23 dirk Exp $"
00148
00149 #endif