ModelCamera class More...
#include <stage.hh>

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 PerspectiveCamera & | getCamera (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 () | |
Private Member Functions | |
| bool | GetFrame () |
| Take a screenshot from the camera's perspective. return: true for sucess, and data is available via FrameDepth() / FrameColor() | |
Private Attributes | |
| PerspectiveCamera | _camera |
| GLubyte * | _camera_colors |
| GLfloat * | _camera_quads |
| int | _camera_quads_size |
| Canvas * | _canvas |
| GLubyte * | _frame_color_data |
| GLfloat * | _frame_data |
| int | _height |
| double | _pitch_offset |
| bool | _valid_vertexbuf_cache |
| ColoredVertex * | _vertexbuf_cache |
| int | _width |
| double | _yaw_offset |
Static Private Attributes | |
| static const int | _depth = 4 |
| static Option | showCameraData |
| ModelCamera::ModelCamera | ( | World * | world, |
| Model * | parent, | ||
| const std::string & | type | ||
| ) |
Definition at line 87 of file model_camera.cc.
Definition at line 131 of file model_camera.cc.
| void ModelCamera::DataVisualize | ( | Camera * | cam | ) | [virtual] |
Draw camera visualization
Reimplemented from Stg::Model.
Definition at line 244 of file model_camera.cc.
| const GLubyte* Stg::ModelCamera::FrameColor | ( | ) | const [inline] |
| const GLfloat* Stg::ModelCamera::FrameDepth | ( | ) | const [inline] |
| const PerspectiveCamera& Stg::ModelCamera::getCamera | ( | void | ) | const [inline] |
| bool ModelCamera::GetFrame | ( | void | ) | [private] |
Take a screenshot from the camera's perspective. return: true for sucess, and data is available via FrameDepth() / FrameColor()
Definition at line 170 of file model_camera.cc.
| int Stg::ModelCamera::getHeight | ( | void | ) | const [inline] |
| int Stg::ModelCamera::getWidth | ( | void | ) | const [inline] |
| void ModelCamera::Load | ( | void | ) | [virtual] |
configure a model by reading from the current world file
Reimplemented from Stg::Model.
Definition at line 143 of file model_camera.cc.
| void Stg::ModelCamera::setPitch | ( | double | pitch | ) | [inline] |
| void Stg::ModelCamera::setYaw | ( | double | yaw | ) | [inline] |
| void ModelCamera::Update | ( | void | ) | [virtual] |
Capture a new frame ( calls GetFrame )
Reimplemented from Stg::Model.
Definition at line 164 of file model_camera.cc.
PerspectiveCamera Stg::ModelCamera::_camera [private] |
GLubyte* Stg::ModelCamera::_camera_colors [private] |
GLfloat* Stg::ModelCamera::_camera_quads [private] |
int Stg::ModelCamera::_camera_quads_size [private] |
Canvas* Stg::ModelCamera::_canvas [private] |
const int Stg::ModelCamera::_depth = 4 [static, private] |
GLubyte* Stg::ModelCamera::_frame_color_data [private] |
GLfloat* Stg::ModelCamera::_frame_data [private] |
int Stg::ModelCamera::_height [private] |
double Stg::ModelCamera::_pitch_offset [private] |
bool Stg::ModelCamera::_valid_vertexbuf_cache [private] |
ColoredVertex* Stg::ModelCamera::_vertexbuf_cache [private] |
int Stg::ModelCamera::_width [private] |
double Stg::ModelCamera::_yaw_offset [private] |
Option ModelCamera::showCameraData [static, private] |