OpenSceneGraph 2.8.3

osgViewer::CompositeViewer Class Reference

CompsiteViewer holds a or more views to a one more scenes. More...

Inheritance diagram for osgViewer::CompositeViewer:

List of all members.

Public Member Functions

 CompositeViewer ()
 CompositeViewer (const CompositeViewer &, const osg::CopyOp &copyop=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.
virtual void setViewerStats (osg::Stats *stats)
 Set the Stats object used for collect various frame related timing and scene graph stats.
virtual osg::StatsgetViewerStats ()
 Get the Viewers Stats object.
virtual const osg::StatsgetViewerStats () const
 Get the Viewers Stats object.
void addView (osgViewer::View *view)
void removeView (osgViewer::View *view)
osgViewer::ViewgetView (unsigned i)
const osgViewer::ViewgetView (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::FrameStampgetFrameStamp ()
const osg::FrameStampgetFrameStamp () const
virtual double elapsedTime ()
virtual osg::FrameStampgetViewerFrameStamp ()
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::CameragetCameraWithFocus ()
const osg::CameragetCameraWithFocus () const
osgViewer::ViewgetViewWithFocus ()
const osgViewer::ViewgetViewWithFocus () 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 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::ref_ptr< osg::Stats_stats
osg::Timer_t _startTick
osg::ref_ptr< osg::FrameStamp_frameStamp
osg::observer_ptr< osg::Camera_cameraWithFocus
osg::observer_ptr
< osgViewer::View
_viewWithFocus

Detailed Description

CompsiteViewer holds a or more views to a one more scenes.


Member Typedef Documentation


Constructor & Destructor Documentation

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]

Member Function Documentation

void osgViewer::CompositeViewer::addView ( osgViewer::View view)
virtual void osgViewer::CompositeViewer::advance ( double  simulationTime = USE_REFERENCE_TIME) [virtual]

Implements osgViewer::ViewerBase.

void osgViewer::CompositeViewer::constructorInit ( ) [protected]
virtual double osgViewer::CompositeViewer::elapsedTime ( ) [virtual]

Implements osgViewer::ViewerBase.

virtual void osgViewer::CompositeViewer::eventTraversal ( ) [virtual]

Implements osgViewer::ViewerBase.

virtual void osgViewer::CompositeViewer::getAllThreads ( Threads threads,
bool  onlyActive = true 
) [virtual]

Implements osgViewer::ViewerBase.

virtual void osgViewer::CompositeViewer::getCameras ( Cameras cameras,
bool  onlyActive = true 
) [virtual]

Implements osgViewer::ViewerBase.

const osg::Camera* osgViewer::CompositeViewer::getCameraWithFocus ( ) const [inline]
osg::Camera* osgViewer::CompositeViewer::getCameraWithFocus ( ) [inline]
virtual void osgViewer::CompositeViewer::getContexts ( Contexts contexts,
bool  onlyValid = true 
) [virtual]

Implements osgViewer::ViewerBase.

const osg::FrameStamp* osgViewer::CompositeViewer::getFrameStamp ( ) const [inline]
osg::FrameStamp* osgViewer::CompositeViewer::getFrameStamp ( ) [inline]
unsigned int osgViewer::CompositeViewer::getNumViews ( ) const [inline]
virtual void osgViewer::CompositeViewer::getOperationThreads ( OperationThreads threads,
bool  onlyActive = true 
) [virtual]

Implements osgViewer::ViewerBase.

virtual void osgViewer::CompositeViewer::getScenes ( Scenes scenes,
bool  onlyValid = true 
) [virtual]

Implements osgViewer::ViewerBase.

virtual void osgViewer::CompositeViewer::getUsage ( osg::ApplicationUsage usage) const [virtual]

Get the keyboard and mouse usage of this viewer.

Implements osgViewer::ViewerBase.

const osgViewer::View* osgViewer::CompositeViewer::getView ( unsigned  i) const [inline]
osgViewer::View* osgViewer::CompositeViewer::getView ( unsigned  i) [inline]
virtual osg::FrameStamp* osgViewer::CompositeViewer::getViewerFrameStamp ( ) [inline, virtual]

Implements osgViewer::ViewerBase.

virtual const osg::Stats* osgViewer::CompositeViewer::getViewerStats ( ) const [inline, virtual]

Get the Viewers Stats object.

Implements osgViewer::ViewerBase.

virtual osg::Stats* osgViewer::CompositeViewer::getViewerStats ( ) [inline, virtual]

Get the Viewers Stats object.

Implements osgViewer::ViewerBase.

virtual void osgViewer::CompositeViewer::getViews ( Views views,
bool  onlyValid = true 
) [virtual]

Implements osgViewer::ViewerBase.

osgViewer::View* osgViewer::CompositeViewer::getViewWithFocus ( ) [inline]
const osgViewer::View* osgViewer::CompositeViewer::getViewWithFocus ( ) const [inline]
virtual bool osgViewer::CompositeViewer::isRealized ( ) const [virtual]

Get whether at least of one of this viewers windows are realized.

Implements osgViewer::ViewerBase.

osgViewer::CompositeViewer::META_Object ( osgViewer  ,
CompositeViewer   
)
bool osgViewer::CompositeViewer::readConfiguration ( const std::string &  filename) [virtual]

read the viewer configuration from a configuration file.

Implements osgViewer::ViewerBase.

virtual void osgViewer::CompositeViewer::realize ( ) [virtual]

set up windows and associated threads.

Implements osgViewer::ViewerBase.

void osgViewer::CompositeViewer::removeView ( osgViewer::View view)
virtual int osgViewer::CompositeViewer::run ( ) [virtual]

Execute a main frame loop.

Equivalent 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.

void osgViewer::CompositeViewer::setCameraWithFocus ( osg::Camera camera)
void osgViewer::CompositeViewer::setReferenceTime ( double  time = 0.0)
virtual void osgViewer::CompositeViewer::setStartTick ( osg::Timer_t  tick) [virtual]
virtual void osgViewer::CompositeViewer::setViewerStats ( osg::Stats stats) [inline, virtual]

Set the Stats object used for collect various frame related timing and scene graph stats.

Implements osgViewer::ViewerBase.

virtual void osgViewer::CompositeViewer::updateTraversal ( ) [virtual]

Implements osgViewer::ViewerBase.

virtual void osgViewer::CompositeViewer::viewerInit ( ) [protected, virtual]

Implements osgViewer::ViewerBase.


Member Data Documentation

Reimplemented from osgViewer::ViewerBase.


The documentation for this class was generated from the following file:

osg logo
Generated at Tue Mar 22 2011 13:20:31 for the OpenSceneGraph by doxygen 1.7.3.