Public Member Functions | |
CompositeViewer () | |
CompositeViewer (const CompositeViewer &, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
CompositeViewer (osg::ArgumentParser &arguments) | |
META_Object (osgViewer, CompositeViewer) | |
virtual | ~CompositeViewer () |
bool | readConfiguration (const std::string &filename) |
read the viewer configuration from a configuration file. | |
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 |
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) |
osg::FrameStamp * | getFrameStamp () |
const osg::FrameStamp * | getFrameStamp () const |
virtual double | elapsedTime () |
virtual osg::FrameStamp * | getViewerFrameStamp () |
void | setEventQueue (osgGA::EventQueue *eventQueue) |
osgGA::EventQueue * | getEventQueue () |
const osgGA::EventQueue * | getEventQueue () const |
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 |
osgViewer::View * | getViewWithFocus () |
const osgViewer::View * | getViewWithFocus () const |
virtual void | getCameras (Cameras &cameras, bool onlyActive=true) |
virtual void | getContexts (Contexts &contexts, bool onlyValid=true) |
virtual void | getWindows (Windows &windows, 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 Types | |
typedef std::vector < osg::ref_ptr < osgViewer::View > > | RefViews |
Protected Member Functions | |
void | constructorInit () |
virtual void | viewerInit () |
Protected Attributes | |
RefViews | _views |
bool | _firstFrame |
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 |
typedef std::vector< osg::ref_ptr<osgViewer::View> > osgViewer::CompositeViewer::RefViews [protected] |
osgViewer::CompositeViewer::CompositeViewer | ( | ) |
osgViewer::CompositeViewer::CompositeViewer | ( | const CompositeViewer & | , | |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY | |||
) |
osgViewer::CompositeViewer::CompositeViewer | ( | osg::ArgumentParser & | arguments | ) |
virtual osgViewer::CompositeViewer::~CompositeViewer | ( | ) | [virtual] |
osgViewer::CompositeViewer::META_Object | ( | osgViewer | , | |
CompositeViewer | ||||
) |
bool osgViewer::CompositeViewer::readConfiguration | ( | const std::string & | filename | ) | [virtual] |
void osgViewer::CompositeViewer::addView | ( | osgViewer::View * | view | ) |
void osgViewer::CompositeViewer::removeView | ( | osgViewer::View * | view | ) |
osgViewer::View* osgViewer::CompositeViewer::getView | ( | unsigned | i | ) | [inline] |
const osgViewer::View* osgViewer::CompositeViewer::getView | ( | unsigned | i | ) | const [inline] |
unsigned int osgViewer::CompositeViewer::getNumViews | ( | ) | const [inline] |
virtual bool osgViewer::CompositeViewer::isRealized | ( | ) | const [virtual] |
virtual void osgViewer::CompositeViewer::realize | ( | ) | [virtual] |
virtual void osgViewer::CompositeViewer::setStartTick | ( | osg::Timer_t | tick | ) | [virtual] |
void osgViewer::CompositeViewer::setReferenceTime | ( | double | time = 0.0 |
) |
osg::FrameStamp* osgViewer::CompositeViewer::getFrameStamp | ( | ) | [inline] |
const osg::FrameStamp* osgViewer::CompositeViewer::getFrameStamp | ( | ) | const [inline] |
virtual double osgViewer::CompositeViewer::elapsedTime | ( | ) | [virtual] |
Implements osgViewer::ViewerBase.
virtual osg::FrameStamp* osgViewer::CompositeViewer::getViewerFrameStamp | ( | ) | [inline, virtual] |
Implements osgViewer::ViewerBase.
void osgViewer::CompositeViewer::setEventQueue | ( | osgGA::EventQueue * | eventQueue | ) | [inline] |
osgGA::EventQueue* osgViewer::CompositeViewer::getEventQueue | ( | ) | [inline] |
const osgGA::EventQueue* osgViewer::CompositeViewer::getEventQueue | ( | ) | const [inline] |
virtual int osgViewer::CompositeViewer::run | ( | ) | [virtual] |
Execute a main frame loop.
Equivialant to while (!viewer.done()) viewer.frame(); Also calls realize() if the viewer is not already realized, and installs trackball manipulator if one is not already assigned.
Implements osgViewer::ViewerBase.
virtual void osgViewer::CompositeViewer::advance | ( | double | simulationTime = USE_REFERENCE_TIME |
) | [virtual] |
Implements osgViewer::ViewerBase.
virtual void osgViewer::CompositeViewer::eventTraversal | ( | ) | [virtual] |
Implements osgViewer::ViewerBase.
virtual void osgViewer::CompositeViewer::updateTraversal | ( | ) | [virtual] |
Implements osgViewer::ViewerBase.
void osgViewer::CompositeViewer::setCameraWithFocus | ( | osg::Camera * | camera | ) |
osg::Camera* osgViewer::CompositeViewer::getCameraWithFocus | ( | ) | [inline] |
const osg::Camera* osgViewer::CompositeViewer::getCameraWithFocus | ( | ) | const [inline] |
osgViewer::View* osgViewer::CompositeViewer::getViewWithFocus | ( | ) | [inline] |
const osgViewer::View* osgViewer::CompositeViewer::getViewWithFocus | ( | ) | const [inline] |
virtual void osgViewer::CompositeViewer::getCameras | ( | Cameras & | cameras, | |
bool | onlyActive = true | |||
) | [virtual] |
virtual void osgViewer::CompositeViewer::getContexts | ( | Contexts & | contexts, | |
bool | onlyValid = true | |||
) | [virtual] |
virtual void osgViewer::CompositeViewer::getWindows | ( | Windows & | windows, | |
bool | onlyValid = true | |||
) | [virtual] |
virtual void osgViewer::CompositeViewer::getAllThreads | ( | Threads & | threads, | |
bool | onlyActive = true | |||
) | [virtual] |
virtual void osgViewer::CompositeViewer::getOperationThreads | ( | OperationThreads & | threads, | |
bool | onlyActive = true | |||
) | [virtual] |
virtual void osgViewer::CompositeViewer::getScenes | ( | Scenes & | scenes, | |
bool | onlyValid = true | |||
) | [virtual] |
virtual void osgViewer::CompositeViewer::getViews | ( | Views & | views, | |
bool | onlyValid = true | |||
) | [virtual] |
virtual void osgViewer::CompositeViewer::getUsage | ( | osg::ApplicationUsage & | usage | ) | const [virtual] |
void osgViewer::CompositeViewer::constructorInit | ( | ) | [protected] |
virtual void osgViewer::CompositeViewer::viewerInit | ( | ) | [protected, virtual] |
Implements osgViewer::ViewerBase.
RefViews osgViewer::CompositeViewer::_views [protected] |
bool osgViewer::CompositeViewer::_firstFrame [protected] |
Reimplemented from osgViewer::ViewerBase.
osg::Timer_t osgViewer::CompositeViewer::_startTick [protected] |