Public Member Functions | Protected Attributes

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

#include <camera.h>

Collaboration diagram for glut::Viewer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Viewer (void) throw ()
void clear (void) throw ()
void rotateY (float dy) throw ()
void rotateUp (float dz) throw ()
void move (float forward, float sideways, float up) throw ()
void setPosition (const point3d_t &pos) throw ()
void setYRotation (float rot) throw ()
void setUpRotation (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 ( float  dy  )  throw ()

Definition at line 122 of file camera.cpp.

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

Definition at line 141 of file camera.cpp.

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

Definition at line 161 of file camera.cpp.

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

Definition at line 68 of file camera.h.

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

Definition at line 69 of file camera.h.

void glut::Viewer::setUpRotation ( 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

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: