Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Moteur3D::SphericalCamera Class Reference

The SphericalCamera class is an enhancement of its base Camera class. It provides functionnalities for rotating the camera around its destination point and nearing it. More...

#include <SphericalCamera.h>

Inheritance diagram for Moteur3D::SphericalCamera:

Moteur3D::Camera Moteur3D::SGTransformation List of all members.

Public Member Functions

 SphericalCamera ()
 Constructor.
 ~SphericalCamera ()
 Destructor.
void Rotate (float phiAngle, float thetaAngle)
 Rotates the Camera in spherical coordinates which center is the point the camera is looking at and radius is the distance between this center and the camera's current position.
void RotatePhi (float angle)
 Rotates the Camera in spherical coordinates, around the Phi axis (rotation in the x-y plane). The camera will keep on looking at the center of the sphere.
void RotateTheta (float angle)
 Rotates the Camera in spherical coordinates, around the Theta axis (increases elevation). The camera will keep on looking at the center of the sphere. Note that there's a minimum and maximum value for the phi angle, so that the camera can't make a circle around the sphere.
void NearObject (float distance)
 Increases or decreases distance between the camera and the center of the sphere. A positive value will decrease distance, while a negative value will increase it.
float GetMinDist ()
 Gets the minimal sphere radius.
void SetMinDist (float minDist)
 Sets the minimal sphere radius.
float GetMaxDist ()
 Gets the maximal sphere radius.
void SetMaxDist (float maxDist)
 Sets the maximal sphere radius.

Private Attributes

float m_MinDistance
 minimum sphere's radius.
float m_MaxDistance
 maximum sphere's radius.

Detailed Description

The SphericalCamera class is an enhancement of its base Camera class. It provides functionnalities for rotating the camera around its destination point and nearing it.


Constructor & Destructor Documentation

Moteur3D::SphericalCamera::SphericalCamera  ) 
 

Constructor.

Moteur3D::SphericalCamera::~SphericalCamera  ) 
 

Destructor.


Member Function Documentation

float Moteur3D::SphericalCamera::GetMaxDist  )  [inline]
 

Gets the maximal sphere radius.

Returns:
maximal sphere radius.

float Moteur3D::SphericalCamera::GetMinDist  )  [inline]
 

Gets the minimal sphere radius.

Returns:
minimal sphere radius.

void Moteur3D::SphericalCamera::NearObject float  distance  ) 
 

Increases or decreases distance between the camera and the center of the sphere. A positive value will decrease distance, while a negative value will increase it.

Parameters:
distance ?.

void Moteur3D::SphericalCamera::Rotate float  phiAngle,
float  thetaAngle
 

Rotates the Camera in spherical coordinates which center is the point the camera is looking at and radius is the distance between this center and the camera's current position.

Parameters:
phiAngle Spherical coordinates' phi angle (~ x-y plane).
thetaAngle Spherical coordinates' theta angle (~ elevation).

void Moteur3D::SphericalCamera::RotatePhi float  angle  ) 
 

Rotates the Camera in spherical coordinates, around the Phi axis (rotation in the x-y plane). The camera will keep on looking at the center of the sphere.

Parameters:
angle Spherical coordinates' phi angle (~ x-y plane).

void Moteur3D::SphericalCamera::RotateTheta float  angle  )  [inline]
 

Rotates the Camera in spherical coordinates, around the Theta axis (increases elevation). The camera will keep on looking at the center of the sphere. Note that there's a minimum and maximum value for the phi angle, so that the camera can't make a circle around the sphere.

Parameters:
angle Spherical coordinates' theta angle (~ elevation).

void Moteur3D::SphericalCamera::SetMaxDist float  maxDist  )  [inline]
 

Sets the maximal sphere radius.

Parameters:
maxDist maximal sphere radius.

void Moteur3D::SphericalCamera::SetMinDist float  minDist  )  [inline]
 

Sets the minimal sphere radius.

Parameters:
minDist minimal sphere radius.


Member Data Documentation

float Moteur3D::SphericalCamera::m_MaxDistance [private]
 

maximum sphere's radius.

float Moteur3D::SphericalCamera::m_MinDistance [private]
 

minimum sphere's radius.


The documentation for this class was generated from the following file:
Generated on Sat Oct 15 15:05:51 2005 for Moteur3D by  doxygen 1.4.4