BALL::VIEW::Camera Class Reference
[Setup of the Stage, Camera and LightSources]

Camera with viewpoint, a look at point and an up-vector. More...

#include <stage.h>

List of all members.


Public Member Functions

virtual void dump (std::ostream &s=std::cout, Size depth=0) const
Internal value dump.
Constructors and Destructors
Camera ()
Constructor.
Camera (const Camera &camera)
Copy Constructor.
Camera (const Vector3 &view_point, const Vector3 &look_at, const Vector3 &look_up_vector)
virtual ~Camera ()
Destructor.
Camera & operator= (const Camera &camera)
Accessors
void moveRight (float translation)
Move the camera along the right vector.
void moveUp (float translation)
Move the camera along the up vector.
void moveForward (float translation)
Move the camera along the view vector.
const Vector3 & getViewPoint () const
Get the position of the camera.
void setViewPoint (const Vector3 &view_point)
Set the position of the camera.
const Vector3 & getLookAtPosition () const
Get the direction of the camera.
void setLookAtPosition (const Vector3 &look_at)
Set the direction of the camera.
const Vector3 & getLookUpVector () const
Get the look up vector.
void setLookUpVector (const Vector3 &look_up_vector)
Set the look up vector.
float getDistance () const
Get the distance between the view point and the look at point.
Vector3 getViewVector () const
Get the view vector.
Vector3 getRightVector () const
Get an vector orthogonal to the viewing vector and showing to the right.
void translate (const Vector3 &v)
Translate the view point and the point the camera is looking to by a given vector.
void rotate (const Quaternion &q, const Vector3 &origin)
Rotate the camera.
void rotate (const Matrix4x4 &mat, const Vector3 &origin)
Rotate the camera.
virtual void clear ()
Reset Camera to standard values.
String toString () const
bool readFromString (const String &data)
Predicates
bool operator== (const Camera &camera) const
bool operator< (const Camera &camera) const
Needed for MSVC.

Protected Member Functions

void calculateVectors_ ()

Protected Attributes

Vector3 view_point_
Vector3 look_at_
Vector3 look_up_vector_
Vector3 view_vector_
Vector3 right_vector_

Detailed Description

Camera with viewpoint, a look at point and an up-vector.

Member Function Documentation

virtual void BALL::VIEW::Camera::dump ( std::ostream & s = std::cout,
Size depth = 0
) const [virtual]

Internal value dump.

Dump the current state of this instance to the output ostream s with dumping depth depth.

Parameters:
s output stream
depth the dumping depth

Generated on Thu Aug 6 18:30:56 2009 for BALL by doxygen 1.5.8