#include <stage.h>
Public Member Functions | |
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const throw () |
Internal value dump. | |
Constructors and Destructors | |
Camera () throw () | |
Constructor. | |
Camera (const Camera &camera) throw () | |
Copy Constructor. | |
Camera (const Vector3 &view_point, const Vector3 &look_at, const Vector3 &look_up_vector) throw () | |
virtual | ~Camera () throw () |
Destructor. | |
Camera & | operator= (const Camera &camera) throw () |
Accessors | |
const Vector3 & | getViewPoint () const throw () |
Get the position of the camera. | |
void | setViewPoint (const Vector3 &view_point) throw () |
Set the position of the camera. | |
const Vector3 & | getLookAtPosition () const throw () |
Get the direction of the camera. | |
void | setLookAtPosition (const Vector3 &look_at) throw () |
Set the direction of the camera. | |
const Vector3 & | getLookUpVector () const throw () |
Get the look up vector. | |
void | setLookUpVector (const Vector3 &look_up_vector) throw () |
Set the look up vector. | |
float | getDistance () const throw () |
Get the distance between the view point and the look at point. | |
Vector3 | getViewVector () const throw () |
Get the view vector. | |
Vector3 | getRightVector () const throw () |
Get an vector orthogonal to the viewing vector and showing to the right. | |
void | translate (const Vector3 &v) throw () |
Translate the view point and the point the camera is looking to by a given vector. | |
void | rotate (const Quaternion &q, const Vector3 &origin) throw () |
Rotate the camera. | |
virtual void | clear () throw () |
Reset Camera to standard values. | |
String | toString () const throw () |
bool | readFromString (const String &data) throw () |
Predicates | |
bool | operator== (const Camera &camera) const throw () |
bool | operator< (const Camera &camera) const throw () |
Needed for MSVC. | |
Protected Member Functions | |
void | calculateVectors_ () throw () |
Protected Attributes | |
Vector3 | view_point_ |
Vector3 | look_at_ |
Vector3 | look_up_vector_ |
Vector3 | view_vector_ |
Vector3 | right_vector_ |
|
Internal value dump. Dump the current state of this instance to the output ostream s with dumping depth depth.
|