Equalizer
1.8.0
Parallel Rendering Framework
|
Stores per-view data. More...
#include <viewData.h>
Public Member Functions | |
SEQ_API | ViewData () |
Construct a new view data. More... | |
virtual SEQ_API | ~ViewData () |
Destruct this view data. More... | |
bool | useOrtho () const |
Operations | |
virtual SEQ_API bool | handleEvent (const eq::ConfigEvent *event) |
Handle the given event. More... | |
virtual SEQ_API bool | handleEvent (eq::EventICommand command) |
Handle the given event command. More... | |
SEQ_API void | spinModel (const float x, const float y, const float z) |
Rotate the model matrix by the given increments. More... | |
SEQ_API void | moveModel (const float x, const float y, const float z) |
Move the model matrix by the given increments. More... | |
SEQ_API void | showStatistics (const bool on) |
Enable or disable statistics rendering. More... | |
SEQ_API void | setOrtho (const bool on) |
Enable or disable orthographic rendering. More... | |
virtual SEQ_API bool | update () |
Update the view data. More... | |
Data Access. | |
const Matrix4f & | getModelMatrix () const |
bool | getStatistics () const |
Protected Member Functions | |
virtual SEQ_API void | serialize (co::DataOStream &os, const uint64_t dirtyBits) |
virtual SEQ_API void | deserialize (co::DataIStream &is, const uint64_t dirtyBits) |
Stores per-view data.
Definition at line 29 of file viewData.h.
SEQ_API seq::ViewData::ViewData | ( | ) |
Construct a new view data.
|
virtual |
Destruct this view data.
|
inline |
Definition at line 106 of file viewData.h.
|
inline |
|
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.
|
virtual |
Handle the given event command.
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.
SEQ_API void seq::ViewData::moveModel | ( | const float | x, |
const float | y, | ||
const float | z | ||
) |
Move the model matrix by the given increments.
SEQ_API void seq::ViewData::setOrtho | ( | const bool | on | ) |
Enable or disable orthographic rendering.
The default event handler of this view toggles the orthographic rendering state when 'o' is pressed.
on | the state of the orthographic rendering. |
SEQ_API 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. |
SEQ_API void seq::ViewData::spinModel | ( | const float | x, |
const float | y, | ||
const float | z | ||
) |
Rotate the model matrix by the given increments.
|
virtual |
Update the view data.
Called once at the end of each frame to trigger animations. The default implementation updates the camera data.
|
inline |
Definition at line 113 of file viewData.h.