Viewer holds a single view on to a single scene. More...
Public Member Functions | |
Viewer () | |
Viewer (osg::ArgumentParser &arguments) | |
Viewer (const osgViewer::Viewer &viewer, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
virtual | ~Viewer () |
META_Object (osgViewer, Viewer) | |
virtual void | take (View &rhs) |
Take all the settings, Camera and Slaves from the passed in view(er), leaving it empty. | |
virtual void | setViewerStats (osg::Stats *stats) |
Set the Stats object used for collect various frame related timing and scene graph stats. | |
virtual osg::Stats * | getViewerStats () |
Get the Viewers Stats object. | |
virtual const osg::Stats * | getViewerStats () const |
Get the Viewers Stats object. | |
virtual bool | readConfiguration (const std::string &filename) |
read the viewer configuration from a configuration file. | |
virtual bool | isRealized () const |
Get whether at least of one of this viewers windows are realized. | |
virtual void | realize () |
set up windows and associated threads. | |
virtual void | setStartTick (osg::Timer_t tick) |
void | setReferenceTime (double time=0.0) |
virtual void | setSceneData (osg::Node *node) |
Set the sene graph data that viewer with view. | |
virtual GraphicsWindowEmbedded * | setUpViewerAsEmbeddedInWindow (int x, int y, int width, int height) |
Convenience method for setting up the viewer so it can be used embedded in an external managed window. | |
virtual double | elapsedTime () |
virtual osg::FrameStamp * | getViewerFrameStamp () |
virtual int | run () |
Execute a main frame loop. | |
virtual void | advance (double simulationTime=USE_REFERENCE_TIME) |
virtual void | eventTraversal () |
virtual void | updateTraversal () |
void | setCameraWithFocus (osg::Camera *camera) |
osg::Camera * | getCameraWithFocus () |
const osg::Camera * | getCameraWithFocus () const |
virtual void | getCameras (Cameras &cameras, bool onlyActive=true) |
virtual void | getContexts (Contexts &contexts, bool onlyValid=true) |
virtual void | getAllThreads (Threads &threads, bool onlyActive=true) |
virtual void | getOperationThreads (OperationThreads &threads, bool onlyActive=true) |
virtual void | getScenes (Scenes &scenes, bool onlyValid=true) |
virtual void | getViews (Views &views, bool onlyValid=true) |
virtual void | getUsage (osg::ApplicationUsage &usage) const |
Get the keyboard and mouse usage of this viewer. | |
Protected Member Functions | |
void | constructorInit () |
virtual void | viewerInit () |
Protected Attributes | |
osg::observer_ptr< osg::Camera > | _cameraWithFocus |
Viewer holds a single view on to a single scene.
osgViewer::Viewer::Viewer | ( | ) |
osgViewer::Viewer::Viewer | ( | osg::ArgumentParser & | arguments | ) |
osgViewer::Viewer::Viewer | ( | const osgViewer::Viewer & | viewer, | |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY | |||
) |
virtual osgViewer::Viewer::~Viewer | ( | ) | [virtual] |
virtual void osgViewer::Viewer::advance | ( | double | simulationTime = USE_REFERENCE_TIME |
) | [virtual] |
void osgViewer::Viewer::constructorInit | ( | ) | [protected] |
virtual double osgViewer::Viewer::elapsedTime | ( | ) | [virtual] |
virtual void osgViewer::Viewer::eventTraversal | ( | ) | [virtual] |
virtual void osgViewer::Viewer::getAllThreads | ( | Threads & | threads, | |
bool | onlyActive = true | |||
) | [virtual] |
virtual void osgViewer::Viewer::getCameras | ( | Cameras & | cameras, | |
bool | onlyActive = true | |||
) | [virtual] |
const osg::Camera* osgViewer::Viewer::getCameraWithFocus | ( | ) | const [inline] |
osg::Camera* osgViewer::Viewer::getCameraWithFocus | ( | ) | [inline] |
virtual void osgViewer::Viewer::getContexts | ( | Contexts & | contexts, | |
bool | onlyValid = true | |||
) | [virtual] |
virtual void osgViewer::Viewer::getOperationThreads | ( | OperationThreads & | threads, | |
bool | onlyActive = true | |||
) | [virtual] |
virtual void osgViewer::Viewer::getScenes | ( | Scenes & | scenes, | |
bool | onlyValid = true | |||
) | [virtual] |
virtual void osgViewer::Viewer::getUsage | ( | osg::ApplicationUsage & | usage | ) | const [virtual] |
Get the keyboard and mouse usage of this viewer.
virtual osg::FrameStamp* osgViewer::Viewer::getViewerFrameStamp | ( | ) | [inline, virtual] |
virtual const osg::Stats* osgViewer::Viewer::getViewerStats | ( | ) | const [inline, virtual] |
Get the Viewers Stats object.
virtual osg::Stats* osgViewer::Viewer::getViewerStats | ( | ) | [inline, virtual] |
Get the Viewers Stats object.
virtual void osgViewer::Viewer::getViews | ( | Views & | views, | |
bool | onlyValid = true | |||
) | [virtual] |
virtual bool osgViewer::Viewer::isRealized | ( | ) | const [virtual] |
Get whether at least of one of this viewers windows are realized.
osgViewer::Viewer::META_Object | ( | osgViewer | , | |
Viewer | ||||
) |
virtual bool osgViewer::Viewer::readConfiguration | ( | const std::string & | filename | ) | [virtual] |
read the viewer configuration from a configuration file.
virtual void osgViewer::Viewer::realize | ( | ) | [virtual] |
set up windows and associated threads.
virtual int osgViewer::Viewer::run | ( | ) | [virtual] |
void osgViewer::Viewer::setCameraWithFocus | ( | osg::Camera * | camera | ) | [inline] |
void osgViewer::Viewer::setReferenceTime | ( | double | time = 0.0 |
) |
virtual void osgViewer::Viewer::setSceneData | ( | osg::Node * | node | ) | [virtual] |
Set the sene graph data that viewer with view.
Reimplemented from osgViewer::View.
virtual void osgViewer::Viewer::setStartTick | ( | osg::Timer_t | tick | ) | [virtual] |
Reimplemented from osgViewer::View.
virtual GraphicsWindowEmbedded* osgViewer::Viewer::setUpViewerAsEmbeddedInWindow | ( | int | x, | |
int | y, | |||
int | width, | |||
int | height | |||
) | [virtual] |
Convenience method for setting up the viewer so it can be used embedded in an external managed window.
Returns the GraphicsWindowEmbedded that can be used by applications to pass in events to the viewer.
virtual void osgViewer::Viewer::setViewerStats | ( | osg::Stats * | stats | ) | [inline, virtual] |
Set the Stats object used for collect various frame related timing and scene graph stats.
virtual void osgViewer::Viewer::take | ( | View & | rhs | ) | [virtual] |
Take all the settings, Camera and Slaves from the passed in view(er), leaving it empty.
virtual void osgViewer::Viewer::updateTraversal | ( | ) | [virtual] |
virtual void osgViewer::Viewer::viewerInit | ( | ) | [inline, protected, virtual] |
![]() | Generated at Thu Aug 19 2010 16:22:38 for the OpenSceneGraph by doxygen 1.7.1. |