|
Public Types |
| typedef std::vector< osg::GraphicsContext * > | Contexts |
| typedef std::vector< osgViewer::GraphicsWindow * > | Windows |
| typedef std::vector< osgViewer::Scene * > | Scenes |
| enum | ThreadingModel { SingleThreaded,
ThreadPerContext,
ThreadPerCamera
} |
| enum | BarrierPosition { BeforeSwapBuffers,
AfterSwapBuffers
} |
Public Member Functions |
| | CompositeViewer () |
| | CompositeViewer (osg::ArgumentParser &arguments) |
| virtual | ~CompositeViewer () |
| void | addView (osgViewer::View *view) |
| void | removeView (osgViewer::View *view) |
| osgViewer::View * | getView (unsigned i) |
| const osgViewer::View * | getView (unsigned i) const |
| unsigned int | getNumViews () const |
| bool | isRealized () const |
| | Get whether at least of one of this viewers windows are realized.
|
| void | realize () |
| | set up windows and associated threads.
|
| void | setDone (bool done) |
| bool | done () const |
| void | setStartTick (osg::Timer_t tick) |
| osg::Timer_t | getStartTick () const |
| void | setReferenceTime (double time=0.0) |
| osg::FrameStamp * | getFrameStamp () |
| const osg::FrameStamp * | getFrameStamp () const |
| void | setThreadingModel (ThreadingModel threadingModel) |
| | Set the threading model the rendering traversals will use.
|
| ThreadingModel | getThreadingModel () const |
| | Get the threading model the rendering traversals will use.
|
| void | setEndBarrierPosition (BarrierPosition bp) |
| | Set the position of the end barrier.
|
| BarrierPosition | getEndBarrierPosition () const |
| | Get the end barrier position.
|
| void | setEventQueue (osgGA::EventQueue *eventQueue) |
| osgGA::EventQueue * | getEventQueue () |
| const osgGA::EventQueue * | getEventQueue () const |
| void | setKeyEventSetsDone (int key) |
| | Set the key event that the viewer checks on each frame to see if the viewer's done flag should be set to signal end of viewers main loop.
|
| int | getKeyEventSetsDone () const |
| | get the key event that the viewer checks on each frame to see if the viewer's done flag.
|
| void | setQuitEventSetsDone (bool flag) |
| | if the flag is true, the viewer set its done flag when a QUIT_APPLICATION is received, false disables this feature
|
| bool | getQuitEventSetsDone () const |
| virtual int | run () |
| | Execute a main frame loop.
|
| virtual void | frame (double simulationTime=USE_REFERENCE_TIME) |
| | Render a complete new frame.
|
| virtual void | advance (double simulationTime=USE_REFERENCE_TIME) |
| virtual void | eventTraversal () |
| virtual void | updateTraversal () |
| virtual void | renderingTraversals () |
| void | setCameraWithFocus (osg::Camera *camera) |
| osg::Camera * | getCameraWithFocus () |
| const osg::Camera * | getCameraWithFocus () const |
| osgViewer::View * | getViewWithFocus () |
| const osgViewer::View * | getViewWithFocus () const |
| void | getContexts (Contexts &contexts, bool onlyValid=true) |
| void | getWindows (Windows &windows, bool onlyValid=true) |
| void | getScenes (Scenes &scenes, bool onlyValid=true) |
| void | setRealizeOperation (osg::Operation *op) |
| | Set the graphics operation to call on realization of the viewers graphics windows.
|
| osg::Operation * | getRealizeOperation () |
| | Get the graphics operation to call on realization of the viewers graphics windows.
|
| bool | areThreadsRunning () const |
| | Return true if viewer threads are running.
|
| void | stopThreading () |
| | Stop any threads begin run by viewer.
|
| void | startThreading () |
| | Start any threads required by the viewer, as per viewers ThreadingModel.
|
| void | setUpRenderingSupport () |
| | Set up the Operations to render the various viewer cameras on the viewers graphics windows.
|
Protected Types |
typedef std::vector< osg::ref_ptr<
osgViewer::View > > | Views |
typedef std::map< osg::ref_ptr<
osg::Camera >, osg::ref_ptr<
osgUtil::SceneView > > | CameraSceneViewMap |
Protected Member Functions |
| void | constructorInit () |
| void | init () |
| void | checkWindowStatus () |
| unsigned int | computeNumberOfThreadsIncludingMainRequired () |
Protected Attributes |
| Views | _views |
| bool | _firstFrame |
| bool | _done |
| int | _keyEventSetsDone |
| bool | _quitEventSetsDone |
| ThreadingModel | _threadingModel |
| bool | _threadsRunning |
| BarrierPosition | _endBarrierPosition |
| osg::ref_ptr< osg::BarrierOperation > | _startRenderingBarrier |
| osg::ref_ptr< osg::BarrierOperation > | _endRenderingDispatchBarrier |
| unsigned int | _numThreadsOnBarrier |
| CameraSceneViewMap | _cameraSceneViewMap |
| osg::Timer_t | _startTick |
| osg::ref_ptr< osg::FrameStamp > | _frameStamp |
| osg::observer_ptr< osg::Camera > | _cameraWithFocus |
| osg::observer_ptr< osgViewer::View > | _viewWithFocus |
| osg::ref_ptr< osgGA::EventQueue > | _eventQueue |
| osg::ref_ptr< osgGA::EventVisitor > | _eventVisitor |
| osg::ref_ptr< osg::Operation > | _realizeOperation |