Stg::ModelCamera Class Reference

ModelCamera class More...

#include <stage.hh>

Inheritance diagram for Stg::ModelCamera:

List of all members.

Classes

struct  ColoredVertex

Public Member Functions

virtual void DataVisualize (Camera *cam)
 Draw Camera Model - TODO.
const GLubyte * FrameColor () const
 get a reference to camera color image. 4 bytes (RGBA) per pixel
const GLfloat * FrameDepth () const
 get a reference to camera depth buffer
const PerspectiveCameragetCamera (void) const
 get reference to camera used
int getHeight (void) const
 height of captured image
int getWidth (void) const
 width of captured image
virtual void Load ()
 ModelCamera (World *world, Model *parent, const std::string &type)
void setPitch (double pitch)
 change the pitch
void setYaw (double yaw)
 change the yaw
virtual void Update ()
 Capture a new frame ( calls GetFrame )
 ~ModelCamera ()

Detailed Description

ModelCamera class


Constructor & Destructor Documentation

ModelCamera::ModelCamera ( World world,
Model parent,
const std::string &  type 
)
ModelCamera::~ModelCamera ( )

Member Function Documentation

void ModelCamera::DataVisualize ( Camera cam) [virtual]

Draw Camera Model - TODO.

Draw camera visualization

Reimplemented from Stg::Model.

const GLubyte* Stg::ModelCamera::FrameColor ( ) const [inline]

get a reference to camera color image. 4 bytes (RGBA) per pixel

const GLfloat* Stg::ModelCamera::FrameDepth ( ) const [inline]

get a reference to camera depth buffer

const PerspectiveCamera& Stg::ModelCamera::getCamera ( void  ) const [inline]

get reference to camera used

int Stg::ModelCamera::getHeight ( void  ) const [inline]

height of captured image

int Stg::ModelCamera::getWidth ( void  ) const [inline]

width of captured image

void ModelCamera::Load ( void  ) [virtual]

configure a model by reading from the current world file

Reimplemented from Stg::Model.

void Stg::ModelCamera::setPitch ( double  pitch) [inline]

change the pitch

void Stg::ModelCamera::setYaw ( double  yaw) [inline]

change the yaw

void ModelCamera::Update ( void  ) [virtual]

Capture a new frame ( calls GetFrame )

Reimplemented from Stg::Model.


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