Stg::ModelCamera Class Reference

ModelCamera class More...

#include <stage.hh>

Inherits Stg::Model.

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. 3 bytes (RGB) 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)
void setPitch (float pitch)
 change the pitch
void setYaw (float yaw)
 change the yaw
virtual void Update ()
 Capture a new frame ( calls GetFrame ).
 ~ModelCamera ()

Static Public Member Functions

static ModelCreate (World *world, Model *parent)

Detailed Description

ModelCamera class

Constructor & Destructor Documentation

ModelCamera::ModelCamera ( World world,
Model parent 
)

ModelCamera::~ModelCamera (  ) 


Member Function Documentation

static Model* Stg::ModelCamera::Create ( World world,
Model parent 
) [inline, static]

Every class derived from Stg::Model must provide a "named constructor" for its class, like this.

Reimplemented from Stg::Model.

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. 3 bytes (RGB) 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 ( float  pitch  )  [inline]

change the pitch

void Stg::ModelCamera::setYaw ( float  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:

Generated on Wed Jul 22 11:51:05 2009 for Stage by  doxygen 1.5.9