Public Member Functions | Protected Attributes

glut::Viewer Class Reference
[Wavepacket Glut Library Wrapper]

#include <camera.h>

List of all members.

Public Member Functions

 Viewer (void) throw ()
void clear (void) throw ()
void rotateY (IN float dy) throw ()
void rotateUp (IN float dz) throw ()
void move (IN float forward, IN float sideways, IN float up) throw ()
void setPosition (IN const point3d_t &pos) throw ()
void setYRotation (IN float rot) throw ()
void setUpRotation (IN float rot) throw ()
point3d_t getPosition (void) const throw ()
float getYRotation (void) const throw ()
float getUpRotation (void) const throw ()
point3d_t getFacing (void) const throw ()
point3d_t getUp (void) const throw ()

Protected Attributes

point3d_t m_position
float m_yRot
float m_upRot

Detailed Description

Class that represents the viewer of a 3D scene.

Definition at line 58 of file camera.h.


Constructor & Destructor Documentation

Viewer::Viewer ( void   )  throw ()

Definition at line 99 of file camera.cpp.


Member Function Documentation

void Viewer::clear ( void   )  throw ()

Definition at line 109 of file camera.cpp.

void Viewer::rotateY ( IN float  dy  )  throw ()

Definition at line 122 of file camera.cpp.

void Viewer::rotateUp ( IN float  dz  )  throw ()

Definition at line 141 of file camera.cpp.

void Viewer::move ( IN float  forward,
IN float  sideways,
IN float  up 
) throw ()

Definition at line 161 of file camera.cpp.

void glut::Viewer::setPosition ( IN const point3d_t &  pos  )  throw () [inline]

Definition at line 68 of file camera.h.

void glut::Viewer::setYRotation ( IN float  rot  )  throw () [inline]

Definition at line 69 of file camera.h.

void glut::Viewer::setUpRotation ( IN float  rot  )  throw () [inline]

Definition at line 70 of file camera.h.

point3d_t glut::Viewer::getPosition ( void   )  const throw () [inline]

Definition at line 71 of file camera.h.

float glut::Viewer::getYRotation ( void   )  const throw () [inline]

Definition at line 72 of file camera.h.

float glut::Viewer::getUpRotation ( void   )  const throw () [inline]

Definition at line 73 of file camera.h.

point3d_t Viewer::getFacing ( void   )  const throw ()

Definition at line 177 of file camera.cpp.

point3d_t Viewer::getUp ( void   )  const throw ()

Definition at line 196 of file camera.cpp.


Member Data Documentation

point3d_t glut::Viewer::m_position [protected]

Definition at line 79 of file camera.h.

float glut::Viewer::m_yRot [protected]

Definition at line 80 of file camera.h.

float glut::Viewer::m_upRot [protected]

Definition at line 81 of file camera.h.


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