43 #ifndef __GLCAMERA_H__
44 #define __GLCAMERA_H__
102 void setOrtho(
float scaleFactor=1.f );
128 void setPosition(
const Vector3 & p );
137 void setPosition(
float x,
float y,
float z );
151 void setTarget(
const Vector3 & p );
160 void setTarget(
float x,
float y,
float z );
175 void setUp(
const Vector3 & u );
184 void setUp(
float x,
float y,
float z );
192 inline void setFOV(
float fov ) { _fov = fov; }
197 inline float getFOV()
const {
return _fov; }
237 float getOrthoScaleFactor()
const;
250 void setViewport(
int w,
int h,
int left=0,
int bottom=0 );
261 void setProjMat(
int w,
int h )
const ;
269 void setSelectMat(
int * selectPoint )
const ;
274 void setGLView()
const;
285 void viewXAxis(
bool downPositive=
true );
296 void viewYAxis(
bool downPositive=
true );
307 void viewZAxis(
bool downPositive=
true );
319 void pan(
float angle );
330 void tilt(
float angle );
341 void truck(
float amount );
354 void crane(
float amount );
366 void dolly (
float amount );
378 void dollyPlane(
float amount );
390 void zoom(
float amount );
399 void orbitVerticalAxis(
float angle );
407 void orbitHorizontalAxis(
float angle );
416 float targetDistance()
const;
433 Vector3 getActualUpDir()
const;
447 void outputState()
const;
491 mutable unsigned int _viewWidth;
497 mutable unsigned int _viewHeight;
502 mutable bool _dirtyProj;
516 void _setProjMat()
const;
Vector3 getTarget() const
Return the position of the camera's view target.
Definition: GLCamera.h:144
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
CamEnum
Determines the projection matrix of the 3D camera.
Definition: GLCamera.h:62
Sets up the proper compiler directives for platform and dll export/import.
void setFOV(float fov)
Sets the field of view of the camera – only applicable when using the perspective projection...
Definition: GLCamera.h:192
float getFOV() const
Returns the current horizontal field of view (in degrees).
Definition: GLCamera.h:197
Vector3 getUp() const
Return the orientation of the camera's up direction.
Definition: GLCamera.h:167
The SceneGraph (SceneGraph) name space, containing all elements to use in a SceneGraph.
void setFarPlane(float fp)
Sets the far plane distance.
Definition: GLCamera.h:204
Vector3 getPosition() const
Return the position of the camera.
Definition: GLCamera.h:121
The class for controlling the view camera: it's position, orientation field of view, projection matrix, etc.
Definition: GLCamera.h:57
void setNearPlane(float np)
Sets the near plane distance.
Definition: GLCamera.h:218
Various important pre-compiler directives for the scene graph.
float getFarPlane() const
Reports the camera's current far plane distance.
Definition: GLCamera.h:211
float getNearPlane() const
Reports the camera's current near plane distance.
Definition: GLCamera.h:225