|
Public Types |
typedef std::list< osg::ref_ptr<
osgGA::GUIEventHandler > > | EventHandlerList |
| enum | ViewerOptions {
NO_EVENT_HANDLERS = 0,
TRACKBALL_MANIPULATOR = 1,
DRIVE_MANIPULATOR = 2,
FLIGHT_MANIPULATOR = 4,
TERRAIN_MANIPULATOR = 8,
STATE_MANIPULATOR = 32,
HEAD_LIGHT_SOURCE = 64,
SKY_LIGHT_SOURCE = 128,
STATS_MANIPULATOR = 256,
VIEWER_MANIPULATOR = 512,
ESCAPE_SETS_DONE = 1024,
STANDARD_SETTINGS
} |
Public Member Functions |
| | Viewer () |
| | Viewer (Producer::CameraConfig *cfg) |
| | Viewer (const std::string &configFile) |
| | Viewer (osg::ArgumentParser &arguments) |
| virtual | ~Viewer () |
| void | setUpViewer (unsigned int options=STANDARD_SETTINGS) |
| void | setDoneAtElapsedTime (double elapsedTime) |
| double | getDoneAtElapsedTime () const |
| void | setDoneAtElapsedTimeEnabled (bool enabled) |
| bool | getDoneAtElapsedTimeEnabled () const |
| void | setDoneAtFrameNumber (unsigned int frameNumber) |
| unsigned int | getDoneAtFrameNumber () const |
| void | setDoneAtFrameNumberEnabled (bool enabled) |
| bool | getDoneAtFrameNumberEnabled () const |
| void | setDone (bool done) |
| bool | getDone () const |
| virtual bool | done () const |
| void | setWriteImageWhenDone (bool enabled) |
| bool | getWriteImageWhenDone () const |
| void | setWriteImageFileName (const std::string &filename) |
| const std::string & | getWriteImageFileName () const |
| virtual void | setViewByMatrix (const Producer::Matrix &pm) |
| virtual bool | realize (ThreadingModel thread_model) |
| virtual bool | realize () |
| virtual void | update () |
| void | setUpdateVisitor (osg::NodeVisitor *nv) |
| osg::NodeVisitor * | getUpdateVisitor () |
| const osg::NodeVisitor * | getUpdateVisitor () const |
| void | computeActiveCoordindateSystemNodePath () |
| void | setCoordindateSystemNodePath (const osg::RefNodePath &nodePath) |
| void | setCoordindateSystemNodePath (const osg::NodePath &nodePath) |
| const osg::RefNodePath & | getCoordindateSystemNodePath () const |
| virtual void | frame () |
| virtual void | requestRedraw () |
| virtual void | requestContinuousUpdate (bool) |
| virtual void | requestWarpPointer (float x, float y) |
| bool | computePixelCoords (float x, float y, unsigned int cameraNum, float &pixel_x, float &pixel_y) |
| bool | computeNearFarPoints (float x, float y, unsigned int cameraNum, osg::Vec3 &near, osg::Vec3 &far) |
| bool | computeIntersections (float x, float y, unsigned int cameraNum, osg::Node *node, osgUtil::IntersectVisitor::HitList &hits, osg::Node::NodeMask traversalMask=0xffffffff) |
| bool | computeIntersections (float x, float y, unsigned int cameraNum, osgUtil::IntersectVisitor::HitList &hits, osg::Node::NodeMask traversalMask=0xffffffff) |
| bool | computeIntersections (float x, float y, osg::Node *node, osgUtil::IntersectVisitor::HitList &hits, osg::Node::NodeMask traversalMask=0xffffffff) |
| bool | computeIntersections (float x, float y, osgUtil::IntersectVisitor::HitList &hits, osg::Node::NodeMask traversalMask=0xffffffff) |
| void | setKeyboardMouse (Producer::KeyboardMouse *kbm) |
| Producer::KeyboardMouse * | getKeyboardMouse () |
| const Producer::KeyboardMouse * | getKeyboardMouse () const |
| void | setKeyboardMouseCallback (osgProducer::KeyboardMouseCallback *kbmcb) |
| osgProducer::KeyboardMouseCallback * | getKeyboardMouseCallback () |
| const osgProducer::KeyboardMouseCallback * | getKeyboardMouseCallback () const |
| EventHandlerList & | getEventHandlerList () |
| const EventHandlerList & | getEventHandlerList () const |
| osgGA::KeySwitchMatrixManipulator * | getKeySwitchMatrixManipulator () |
| const osgGA::KeySwitchMatrixManipulator * | getKeySwitchMatrixManipulator () const |
| unsigned int | addCameraManipulator (osgGA::MatrixManipulator *cm) |
| void | selectCameraManipulator (unsigned int no) |
| void | setRecordingAnimationPath (bool on) |
| bool | getRecordingAnimationPath () const |
| void | setAnimationPath (osg::AnimationPath *path) |
| osg::AnimationPath * | getAnimationPath () |
| const osg::AnimationPath * | getAnimationPath () const |
| const double * | getPosition () const |
| double | getSpeed () const |
| osg::Quat | getOrientation () const |
| virtual void | getUsage (osg::ApplicationUsage &usage) const |
| virtual void | updatedSceneData () |
Protected Attributes |
| bool | _setDoneAtElapsedTimeEnabled |
| double | _setDoneAtElapsedTime |
| bool | _setDoneAtFrameNumberEnabled |
| unsigned int | _setDoneAtFrameNumber |
| bool | _done |
| bool | _writeImageWhenDone |
| std::string | _writeImageFileName |
| osg::ref_ptr< Producer::KeyboardMouse > | _kbm |
| osg::ref_ptr< osgProducer::KeyboardMouseCallback > | _kbmcb |
| EventHandlerList | _eventHandlerList |
| osg::ref_ptr< osgGA::KeySwitchMatrixManipulator > | _keyswitchManipulator |
| osg::ref_ptr< osg::NodeVisitor > | _updateVisitor |
| osg::RefNodePath | _coordinateSystemNodePath |
| bool | _recordingAnimationPath |
| double | _recordingStartTime |
| osg::ref_ptr< osg::AnimationPath > | _animationPath |
| double | _position [3] |
| osg::Quat | _orientation |
| double | _speed |