31 #ifndef EQ_PLY_CONFIG_H
32 #define EQ_PLY_CONFIG_H
35 #include "localInitData.h"
36 #include "frameData.h"
37 #include "cameraAnimation.h"
40 #include <eq/admin/base.h>
64 void setInitData(
const LocalInitData& data ) { _initData = data; }
65 const InitData& getInitData()
const {
return _initData; }
71 const Model*
getModel(
const eq::uint128_t&
id );
90 virtual co::uint128_t
sync(
91 const co::uint128_t& version = co::VERSION_HEAD );
102 ModelDists _modelDist;
103 lunchbox::Lock _modelLock;
107 uint64_t _messageTime;
112 int32_t _numFramesAA;
114 eq::admin::ServerPtr _admin;
117 void _registerModels();
119 void _deregisterData();
121 bool _needNewFrame();
122 bool _handleKeyEvent(
const eq::KeyEvent& event );
124 void _switchCanvas();
126 void _switchViewMode();
128 void _freezeLoadBalancing(
const bool onOff );
129 void _adjustEyeBase(
const float delta );
130 void _adjustTileSize(
const int delta );
131 void _adjustResistance(
const int delta );
132 void _adjustModelScale(
const float factor );
133 void _switchLayout( int32_t increment );
134 void _toggleEqualizer();
136 void _setHeadMatrix(
const eq::Matrix4f& matrix );
137 const eq::Matrix4f& _getHeadMatrix()
const;
138 void _changeFocusDistance(
const float delta );
139 void _setFocusMode(
const eq::FocusMode mode );
142 eq::admin::ServerPtr _getAdminServer();
143 void _closeAdminServer();
145 View* _getCurrentView();
146 const View* _getCurrentView()
const;
148 void _setMessage(
const std::string& message );
153 #endif // EQ_PLY_CONFIG_H
A configuration is a visualization session driven by an application.
A canvas represents a logical 2D projection surface.
uint32_t getAnimationFrame()
virtual bool handleEvent(const eq::ConfigEvent *event)
Loads sequence of camera positions and interpolates them on a per-frame basis.
virtual uint32_t startFrame()
lunchbox::RefPtr< Server > ServerPtr
A reference-counted pointer to an eq::Server.
A command specialization for config events.
bool loadInitData(const eq::uint128_t &initDataID)
Map per-config data to the local node process.
virtual ~Config()
Destruct a config.
Manages the argument parsing and non-distributed part of the initialization data. ...
const Model * getModel(const eq::uint128_t &id)
The configuration, run be the EqPly application.
virtual co::uint128_t sync(const co::uint128_t &version=co::VERSION_HEAD)
Synchronize config and admin copy.