Camera Class Reference

Camera. More...

#include <camera.h>

Inheritance diagram for Camera:

TimeUpdateable Templates::Observable< Camera >

List of all members.

Public Member Functions

 Camera ()
 Default constructor.
 ~Camera ()
 Destructor.
float getAngleX () const
 Returns angle X.
float getAngleY () const
 Returns angle Y.
SoGroup * getRootNode ()
 Returns the root node of the camera object.
const SoRotationXYZ * getRotationX () const
 Returns actual camera rotation in the X axis.
const SoRotationXYZ * getRotationY () const
 Returns actual camera rotation in the Y axis.
virtual void timeUpdate (float dt)
 Timer value change event occured.
void updateView (short x, short y)
 Updates camera view according to the new cursor position difference.

Private Member Functions

 Camera (const Camera &)
Cameraoperator= (const Camera &)

Private Attributes

SoGroup * _rootNode
 The root node for the camera composition.
SoRotationXYZ * _rotX
 Rotation in the X axis.
SoRotationXYZ * _rotY
 Rotation in the Y axis.
float _angleX
 X angle (in radians).
float _angleY
 Y angle (in radians).
float _maxAngleX
 X angle constrain (in radians).
float _maxAngleY
 Y angle constrain (in radians).


Detailed Description

Camera.

Reference object (cannot be copied).


Constructor & Destructor Documentation

Camera::Camera ( const Camera  )  [private]

Camera::Camera (  ) 

Default constructor.

Camera::~Camera (  ) 

Destructor.


Member Function Documentation

Camera& Camera::operator= ( const Camera  )  [private]

float Camera::getAngleX (  )  const [inline]

Returns angle X.

References _angleX.

float Camera::getAngleY (  )  const [inline]

Returns angle Y.

References _angleY.

SoGroup* Camera::getRootNode (  )  [inline]

Returns the root node of the camera object.

References _rootNode.

const SoRotationXYZ* Camera::getRotationX (  )  const [inline]

Returns actual camera rotation in the X axis.

References _rotX.

const SoRotationXYZ* Camera::getRotationY (  )  const [inline]

Returns actual camera rotation in the Y axis.

References _rotY.

virtual void Camera::timeUpdate ( float  dt  )  [virtual]

Timer value change event occured.

This method is called on each timer value change.

Parameters:
[in] dt Time difference between the last call (delta).

Implements TimeUpdateable.

void Camera::updateView ( short  x,
short  y 
)

Updates camera view according to the new cursor position difference.

Parameters:
[in] x Difference in the x-axis.
[in] y Difference in the y-axis.


Member Data Documentation

SoGroup* Camera::_rootNode [private]

The root node for the camera composition.

Referenced by getRootNode().

SoRotationXYZ* Camera::_rotX [private]

Rotation in the X axis.

Referenced by getRotationX().

SoRotationXYZ* Camera::_rotY [private]

Rotation in the Y axis.

Referenced by getRotationY().

float Camera::_angleX [private]

X angle (in radians).

Referenced by getAngleX().

float Camera::_angleY [private]

Y angle (in radians).

Referenced by getAngleY().

float Camera::_maxAngleX [private]

X angle constrain (in radians).

float Camera::_maxAngleY [private]

Y angle constrain (in radians).


The documentation for this class was generated from the following file:

Generated on Sat Dec 20 19:21:24 2008 for PGR2008 by  doxygen 1.5.6