30 #ifndef EQ_PLY_FRAMEDATA_H
31 #define EQ_PLY_FRAMEDATA_H
45 class FrameData :
public co::Serializable
50 virtual ~FrameData() {};
56 void setModelID(
const eq::uint128_t&
id );
58 void setColorMode(
const ColorMode color );
59 void setRenderMode(
const mesh::RenderMode mode );
60 void setIdle(
const bool idleMode );
63 void toggleStatistics();
65 void toggleWireframe();
66 void toggleColorMode();
67 void adjustQuality(
const float delta );
68 void togglePilotMode();
69 void toggleRenderMode();
70 void toggleCompression();
72 eq::uint128_t getModelID()
const {
return _modelID; }
73 ColorMode getColorMode()
const {
return _colorMode; }
74 float getQuality()
const {
return _quality; }
75 bool useOrtho()
const {
return _ortho; }
76 bool useStatistics()
const {
return _statistics; }
77 bool showHelp()
const {
return _help; }
78 bool useWireframe()
const {
return _wireframe; }
79 bool usePilotMode()
const {
return _pilotMode; }
80 bool isIdle()
const {
return _idle; }
81 mesh::RenderMode getRenderMode()
const {
return _renderMode; }
82 bool useCompression()
const {
return _compression; }
87 void setCameraPosition(
const eq::Vector3f& position );
88 void setRotation(
const eq::Vector3f& rotation);
89 void setModelRotation(
const eq::Vector3f& rotation );
90 void spinCamera(
const float x,
const float y );
91 void spinModel(
const float x,
const float y,
const float z );
92 void moveCamera(
const float x,
const float y,
const float z );
94 const eq::Matrix4f& getCameraRotation()
const
96 const eq::Matrix4f& getModelRotation()
const
97 {
return _modelRotation; }
98 const eq::Vector3f& getCameraPosition()
const
104 void setCurrentViewID(
const eq::uint128_t&
id );
105 eq::uint128_t getCurrentViewID()
const {
return _currentViewID; }
110 void setMessage(
const std::string& message );
111 const std::string& getMessage()
const {
return _message; }
116 virtual void serialize( co::DataOStream& os,
117 const uint64_t dirtyBits );
120 const uint64_t dirtyBits );
122 virtual ChangeType getChangeType()
const {
return DELTA; }
127 DIRTY_CAMERA = co::Serializable::DIRTY_CUSTOM << 0,
128 DIRTY_FLAGS = co::Serializable::DIRTY_CUSTOM << 1,
129 DIRTY_VIEW = co::Serializable::DIRTY_CUSTOM << 2,
130 DIRTY_MESSAGE = co::Serializable::DIRTY_CUSTOM << 3,
134 eq::Matrix4f _rotation;
135 eq::Matrix4f _modelRotation;
136 eq::Vector3f _position;
138 eq::uint128_t _modelID;
139 mesh::RenderMode _renderMode;
150 eq::uint128_t _currentViewID;
151 std::string _message;
156 #endif // EQ_PLY_FRAMEDATA_H
virtual void deserialize(co::DataIStream &is, const uint64_t dirtyBits)
DirtyBits
The changed parts of the data since the last pack().
virtual void serialize(co::DataOStream &os, const uint64_t dirtyBits)