19 #ifndef EQSEQUEL_VIEWDATA_H
20 #define EQSEQUEL_VIEWDATA_H
23 #include <seq/types.h>
24 #include <co/serializable.h>
64 SEQ_API
void spinModel(
const float x,
const float y,
const float z );
67 SEQ_API
void moveModel(
const float x,
const float y,
const float z );
90 SEQ_API
void setOrtho(
const bool on );
100 virtual SEQ_API
bool update();
117 virtual SEQ_API
void serialize( co::DataOStream& os,
118 const uint64_t dirtyBits );
119 virtual SEQ_API
void deserialize( co::DataIStream& is,
120 const uint64_t dirtyBits );
126 DIRTY_MODELMATRIX = co::Serializable::DIRTY_CUSTOM << 0,
127 DIRTY_STATISTICS = co::Serializable::DIRTY_CUSTOM << 1,
128 DIRTY_ORTHO = co::Serializable::DIRTY_CUSTOM << 2
131 bool _handleEvent(
const eq::Event& event );
133 Matrix4f _modelMatrix;
134 int32_t _spinX, _spinY;
140 #endif // EQSEQUEL_VIEWDATA_H
Event structure to report window system and other events.
A command specialization for config events.
Defines sequel API export macros.
void moveModel(const float x, const float y, const float z)
Move the model matrix by the given increments.
virtual bool update()
Update the view data.
bool getStatistics() const
void setOrtho(const bool on)
Enable or disable orthographic rendering.
ViewData()
Construct a new view data.
void showStatistics(const bool on)
Enable or disable statistics rendering.
void spinModel(const float x, const float y, const float z)
Rotate the model matrix by the given increments.
const Matrix4f & getModelMatrix() const
virtual ~ViewData()
Destruct this view data.
virtual bool handleEvent(const eq::ConfigEvent *event)
Handle the given event.