Equalizer 1.0

osgScaleViewer::Config Class Reference

Inheritance diagram for osgScaleViewer::Config:
Collaboration diagram for osgScaleViewer::Config:

List of all members.

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 InitDatagetInitData () const
 Gets the InitData object.
bool mapData (const eq::uint128_t &initDataID)

Protected Member Functions

void updateFrameData (float elapsed)

Detailed Description


Constructor & Destructor Documentation

osgScaleViewer::Config::Config ( eq::ServerPtr  parent)

Construct a new config.

Version:
1.0

Reimplemented from eq::Config.

Definition at line 50 of file osgScaleViewer/config.cpp.


Member Function Documentation

const InitData & osgScaleViewer::Config::getInitData ( ) const

Gets the InitData object.

Returns:
the init data.

Definition at line 152 of file osgScaleViewer/config.cpp.

Referenced by osgScaleViewer::Pipe::configInit(), and osgScaleViewer::Node::configInit().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

void osgScaleViewer::Config::setInitData ( const InitData data)

Sets the InitData object.

Parameters:
datathe init data.

Definition at line 147 of file osgScaleViewer/config.cpp.

Referenced by osgScaleViewer::OSGScaleViewer::run().

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
Generated on Sun May 8 2011 19:11:11 for Equalizer 1.0 by  doxygen 1.7.3