30 #ifndef EVOLVE_FRAMEDATA_H
31 #define EVOLVE_FRAMEDATA_H
49 void setOrtho(
const bool ortho );
50 void adjustQuality(
const float delta );
51 void toggleBackground();
52 void toggleNormalsQuality();
53 void toggleColorMode();
56 void toggleStatistics();
58 void spinCamera(
const float x,
const float y );
59 void moveCamera(
const float x,
const float y,
const float z );
61 void setTranslation(
const eq::Vector3f& translation );
62 void setRotation(
const eq::Vector3f& rotation );
64 bool showHelp()
const {
return _help; }
65 bool useOrtho( )
const {
return _ortho; }
66 bool useStatistics()
const {
return _statistics; }
68 const eq::Vector3f& getTranslation()
const {
return _translation; }
69 const eq::Matrix4f& getRotation()
const {
return _rotation; }
70 float getQuality()
const {
return _quality; }
71 ColorMode getColorMode()
const {
return _colorMode; }
73 NormalsQuality getNormalsQuality()
const {
return _normalsQuality; }
78 void setCurrentViewID(
const eq::uint128_t&
id );
80 eq::uint128_t getCurrentViewID()
const {
return _currentViewID; }
85 void setMessage(
const std::string& message );
86 const std::string& getMessage()
const {
return _message; }
91 virtual void serialize( co::DataOStream& os,
92 const uint64_t dirtyBits );
96 const uint64_t dirtyBits );
99 virtual ChangeType getChangeType()
const {
return DELTA; }
104 DIRTY_CAMERA = co::Serializable::DIRTY_CUSTOM << 0,
105 DIRTY_FLAGS = co::Serializable::DIRTY_CUSTOM << 1,
106 DIRTY_VIEW = co::Serializable::DIRTY_CUSTOM << 2,
107 DIRTY_MESSAGE = co::Serializable::DIRTY_CUSTOM << 3,
112 eq::Matrix4f _rotation;
113 eq::Vector3f _translation;
121 eq::uint128_t _currentViewID;
122 std::string _message;
127 #endif // EVOLVE_FRAMEDATA_H
DirtyBits
The changed parts of the data since the last pack().
virtual void serialize(co::DataOStream &os, const uint64_t dirtyBits)
virtual void deserialize(co::DataIStream &is, const uint64_t dirtyBits)