forked from dardok/eqEarth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
frameData.h
43 lines (33 loc) · 1.11 KB
/
frameData.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#pragma once
#include <eq/eq.h>
namespace eqEarth
{
class FrameData : public co::Serializable
{
public:
FrameData( );
void setSimulationTime( double simTime );
double getSimulationTime( ) const { return _simulationTime; }
void setCalendarTime( time_t calendarTime );
time_t getCalendarTime( ) const { return _calendarTime; }
void setCurrentViewID( const eq::uint128_t& id );
eq::uint128_t getCurrentViewID( ) const { return _currentViewID; }
void toggleStatistics( );
bool useStatistics( ) const { return _statistics; }
protected:
virtual void serialize( co::DataOStream& os, const uint64_t dirtyBits );
virtual void deserialize( co::DataIStream& is, const uint64_t dirtyBits );
enum DirtyBits
{
DIRTY_TIME = co::Serializable::DIRTY_CUSTOM << 0,
DIRTY_VIEW = co::Serializable::DIRTY_CUSTOM << 1,
DIRTY_FLAGS = co::Serializable::DIRTY_CUSTOM << 2
};
virtual ChangeType getChangeType( ) const { return DELTA; }
private:
double _simulationTime;
time_t _calendarTime;
eq::uint128_t _currentViewID;
bool _statistics;
};
}