|
Sequel
1.1.4-git
|
Stores per-view data. More...
#include <viewData.h>
Public Member Functions | |
| ViewData () | |
| Construct a new view data. | |
| virtual | ~ViewData () |
| Destruct this view data. | |
Operations | |
| virtual bool | handleEvent (const eq::ConfigEvent *event) |
| Handle the given event. | |
| void | spinModel (const float x, const float y, const float z) |
| Rotate the model matrix by the given increments. | |
| void | moveModel (const float x, const float y, const float z) |
| Move the model matrix by the given increments. | |
| void | showStatistics (const bool on) |
| Enable or disable statistics rendering. | |
| virtual bool | update () |
| Update the view data. | |
Data Access. | |
| const Matrix4f & | getModelMatrix () const |
| bool | getStatistics () const |
Protected Member Functions | |
| virtual void | serialize (co::DataOStream &os, const uint64_t dirtyBits) |
| virtual void | deserialize (co::DataIStream &is, const uint64_t dirtyBits) |
Stores per-view data.
Definition at line 28 of file viewData.h.
| seq::ViewData::ViewData | ( | ) |
Construct a new view data.
| virtual seq::ViewData::~ViewData | ( | ) | [virtual] |
Destruct this view data.
| const Matrix4f& seq::ViewData::getModelMatrix | ( | ) | const [inline] |
Definition at line 81 of file viewData.h.
| bool seq::ViewData::getStatistics | ( | ) | const [inline] |
| virtual bool seq::ViewData::handleEvent | ( | const eq::ConfigEvent * | event | ) | [virtual] |
Handle the given event.
The default implementation provides a pointer-based camera model and some key event handling, all of which can be modified by overwriting this method and handling the appropriate events.
| void seq::ViewData::moveModel | ( | const float | x, |
| const float | y, | ||
| const float | z | ||
| ) |
Move the model matrix by the given increments.
| void seq::ViewData::showStatistics | ( | const bool | on | ) |
Enable or disable statistics rendering.
The statistics are rendered in the views where they are enabled. The default event handler of this view toggles the statistics rendering state when 's' is pressed.
| on | the state of the statistics rendering. |
| void seq::ViewData::spinModel | ( | const float | x, |
| const float | y, | ||
| const float | z | ||
| ) |
Rotate the model matrix by the given increments.
| virtual bool seq::ViewData::update | ( | ) | [virtual] |
Update the view data.
Called once at the end of each frame to trigger animations. The default implementation updates the camera data.
1.1.4-git by
1.7.5.1