Equalizer  1.2.1
Public Member Functions | Protected Member Functions
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

Definition at line 45 of file share/Equalizer/examples/osgScaleViewer/config.h.


Constructor & Destructor Documentation

Construct a new config.

Version:
1.0

Reimplemented from eq::Config.

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


Member Function Documentation

Gets the InitData object.

Returns:
the init data.

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

Referenced by osgScaleViewer::Node::configInit(), and osgScaleViewer::Pipe::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 170 of file osgScaleViewer/config.cpp.

References eq::PointerEvent::buttons, eq::Event::context, eq::ConfigEvent::data, eq::KeyEvent::key, eq::Event::KEY_PRESS, eq::Event::KEY_RELEASE, eq::Event::keyPress, eq::Event::pointerMotion, osgScaleViewer::FrameData::toggleStatistics(), eq::Event::type, eq::PointerEvent::x, and eq::PointerEvent::y.

+ Here is the call graph for this function:

Sets the InitData object.

Parameters:
datathe init data.

Definition at line 146 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 Fri Jun 8 2012 15:44:37 for Equalizer 1.2.1 by  doxygen 1.8.0