Equalizer 1.0
|
Public Member Functions | |
Config (eq::ServerPtr parent) | |
Construct a new config. | |
virtual bool | init () |
Reimplemented. | |
virtual bool | exit () |
Reimplemented. | |
virtual uint32_t | startFrame () |
Reimplemented. | |
virtual bool | handleEvent (const eq::ConfigEvent *event) |
Reimplemented for camera controls. | |
void | setInitData (const InitData &data) |
Sets the InitData object. | |
const InitData & | getInitData () const |
Gets the InitData object. | |
bool | mapData (const eq::uint128_t &initDataID) |
Protected Member Functions | |
void | updateFrameData (float elapsed) |
Definition at line 45 of file share/Equalizer/examples/osgScaleViewer/config.h.
osgScaleViewer::Config::Config | ( | eq::ServerPtr | parent | ) |
Construct a new config.
Reimplemented from eq::Config.
Definition at line 50 of file osgScaleViewer/config.cpp.
const InitData & osgScaleViewer::Config::getInitData | ( | ) | const |
Gets the InitData object.
Definition at line 152 of file osgScaleViewer/config.cpp.
Referenced by osgScaleViewer::Pipe::configInit(), and osgScaleViewer::Node::configInit().
bool osgScaleViewer::Config::handleEvent | ( | const eq::ConfigEvent * | event | ) | [virtual] |
Reimplemented for camera controls.
If a keypress happens, this function updates _moveDirection, so that the new camera position can be calculated in updateFrameData(). If a mouse move event happens, this function updates _pointerXDiff and mPointerYDiff, so that the new camera viewing direction can be calculated in updateFrameData().
Reimplemented from eq::Config.
Definition at line 171 of file osgScaleViewer/config.cpp.
References eq::ConfigEvent::data, eq::Event::KEY_PRESS, eq::Event::KEY_RELEASE, and osgScaleViewer::FrameData::toggleStatistics().
void osgScaleViewer::Config::setInitData | ( | const InitData & | data | ) |
Sets the InitData object.
data | the init data. |
Definition at line 147 of file osgScaleViewer/config.cpp.
Referenced by osgScaleViewer::OSGScaleViewer::run().