19 #ifndef EQSEQUEL_VIEWDATA_H 20 #define EQSEQUEL_VIEWDATA_H 23 #include <seq/types.h> 24 #include <eq/fabric/vmmlib.h> 25 #include <co/serializable.h> 49 SEQ_API
virtual bool handleEvent( eq::EventType type,
const SizeEvent& );
50 SEQ_API
virtual bool handleEvent( eq::EventType type,
const PointerEvent& );
51 SEQ_API
virtual bool handleEvent( eq::EventType type,
const KeyEvent& );
52 SEQ_API
virtual bool handleEvent( eq::EventType type,
const AxisEvent& );
53 SEQ_API
virtual bool handleEvent( eq::EventType type,
const ButtonEvent& );
56 SEQ_API
void spinModel(
const float x,
const float y,
const float z );
59 SEQ_API
void moveModel(
const float x,
const float y,
const float z );
82 SEQ_API
void setOrtho(
const bool on );
93 SEQ_API
virtual bool update();
113 SEQ_API
void serialize( co::DataOStream& os,
const uint64_t dirtyBits )
override;
114 SEQ_API
void deserialize( co::DataIStream& is,
115 const uint64_t dirtyBits )
override;
120 DIRTY_MODELMATRIX = co::Serializable::DIRTY_CUSTOM << 0,
121 DIRTY_STATISTICS = co::Serializable::DIRTY_CUSTOM << 1,
122 DIRTY_ORTHO = co::Serializable::DIRTY_CUSTOM << 2,
123 DIRTY_CUSTOM = co::Serializable::DIRTY_CUSTOM << 3
129 Matrix4f _modelMatrix;
130 int32_t _spinX, _spinY;
136 #endif // EQSEQUEL_VIEWDATA_H SEQ_API void showStatistics(const bool on)
Enable or disable statistics rendering.
Defines export visibility macros for library Sequel.
virtual SEQ_API bool handleEvent(eq::EventType type, const SizeEvent &)
Handle the given event command.
SEQ_API ViewData(View &view)
Construct a new view data.
virtual SEQ_API bool update()
Update the view data.
bool getStatistics() const
DirtyBits
The changed parts of the object since the last serialize().
SEQ_API void moveModel(const float x, const float y, const float z)
Move the model matrix by the given increments.
SEQ_API void setOrtho(const bool on)
Enable or disable orthographic rendering.
A View is a 2D area of a Layout.
virtual SEQ_API ~ViewData()
Destruct this view data.
const Matrix4f & getModelMatrix() const
SEQ_API void spinModel(const float x, const float y, const float z)
Rotate the model matrix by the given increments.
Sequel - A simple interface to the Equalizer parallel rendering framework.
SEQ_API void setModelMatrix(const Matrix4f &matrix)
Set the current model matrix (global camera).