Camera.hpp

14 /// This class implements a camera. Cameras are associated with the 3D views and controlled with the Camera tool.

16 /// where the x-axis points right, the y-axis points forward (the viewing direction) and the z-axis points up.

24 Vector3fT GetYAxis() const; ///< Returns the y-axis (pointing forward) of the camera space. This is the direction the camera is looking into!

26 const MatrixT& GetMatrix() const; ///< Returns the matrix that represents the position and orientation of this camera.

28 void SetLookAtPos(const Vector3fT& LookAtPos); ///< This method automatically computes the orientation of the camera so that it looks at the given point.

29 void LimitAngles(); ///< This method wraps the yaw into the [0°, 360°[ intervall and clamps the pitch to -90° and +90°. Call this method after each manipulation of the angles!

34 cf::math::AnglesfT Angles; ///< The angles that describe the cameras orientation. The pitch value is limited/clamped to the interval from -90° to +90°, and roll is not used at all.

35 float ViewDirLength; ///< This member defines how long the view direction vector (GetYAxis()) is drawn in the 2D views.

void LimitAngles()

This method wraps the yaw into the [0°, 360°[ intervall and clamps the pitch to -90° and +90°...

void SetLookAtPos(const Vector3fT &LookAtPos)

This method automatically computes the orientation of the camera so that it looks at the given point...

Vector3fT GetZAxis() const

Returns the z-axis (pointing up) of the camera space.

Vector3fT GetYAxis() const

Returns the y-axis (pointing forward) of the camera space. This is the direction the camera is lookin...

float FarPlaneDist

The distance of the far clip plane to the tip of the view pyramid.

float VerticalFOV

The cameras field-of-view angle, in vertical (up/down) direction.

cf::math::AnglesfT Angles

The angles that describe the cameras orientation. The pitch value is limited/clamped to the interval ...

Vector3fT GetXAxis() const

Returns the x-axis (pointing right) of the camera space.

float NearPlaneDist

The distance of the near clip plane to the tip of the view pyramid.

const MatrixT & GetMatrix() const

Returns the matrix that represents the position and orientation of this camera.

float ViewDirLength

This member defines how long the view direction vector (GetYAxis()) is drawn in the 2D views...