GlobeEngine
Config.h
Go to the documentation of this file.
1 #ifndef EQ_SOLAR_CONFIG_H
2 #define EQ_SOLAR_CONFIG_H
3 
4 #include <eq/eq.h>
5 #include "LocalInitData.h"
6 #include "FrameData.h"
7 #include "SolarEngine.h"
8 #include "ConfigEvent.h"
9 
10 namespace eqSolar
11 {
19 class Config : public eq::Config
20 {
21 public:
22  Config( eq::ServerPtr parent );
23 
25  virtual bool init();
27  virtual bool exit();
28 
30  virtual uint32_t startFrame();
31 
33  virtual uint32_t finishFrame();
34 
35  void setInitData( const LocalInitData& data ) { _initData = data;}
36  const InitData& getInitData() const { return _initData; }
37 
39  bool loadInitData( const eq::uint128_t& initDataID );
40 
42  virtual bool handleEvent( const eq::ConfigEvent* _event );
43  virtual bool handleEvent( eq::EventICommand command );
44 
45 protected:
46  virtual ~Config();
47 
48 private:
49 
51 
52  std::clock_t l;
53  std::clock_t r;
54  bool leftClicked;
55  bool rightClicked;
56 
57  LocalInitData _initData;
58  FrameData _frameData;
59 
60  void _deregisterData();
61  bool _handleKeyEvent( const eq::KeyEvent& event );
62 };
63 }
64 
65 #endif // EQ_SOLAR_CONFIG_H
Definition: Config.h:19
virtual ~Config()
Definition: Config.cpp:14
void setInitData(const LocalInitData &data)
Definition: Config.h:35
Definition: FrameData.h:16
Definition: Channel.h:9
virtual uint32_t startFrame()
Definition: Config.cpp:67
virtual bool handleEvent(const eq::ConfigEvent *_event)
Definition: Config.cpp:88
virtual uint32_t finishFrame()
Definition: Config.cpp:74
Definition: ArcBallCamera.h:19
const InitData & getInitData() const
Definition: Config.h:36
Definition: InitData.h:8
Config(eq::ServerPtr parent)
Definition: Config.cpp:7
bool loadInitData(const eq::uint128_t &initDataID)
Definition: Config.cpp:61
virtual bool exit()
Definition: Config.cpp:44
Definition: LocalInitData.h:14
virtual bool init()
Definition: Config.cpp:18