osgViewer::CompositeViewer Class Reference

Inheritance diagram for osgViewer::CompositeViewer:

osgViewer::ViewerBase osg::Object osg::Referenced

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)
virtual void setViewerStats (osg::Stats *stats)
virtual osg::StatsgetViewerStats ()
virtual const osg::StatsgetViewerStats () const
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
virtual void realize ()
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 ()
virtual bool checkNeedToDoFrame ()
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

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

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::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 osg::Stats* osgViewer::CompositeViewer::getViewerStats (  )  [inline, virtual]

Get the Viewers Stats object.

Implements osgViewer::ViewerBase.

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

Get the Viewers Stats object.

Implements osgViewer::ViewerBase.

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]

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

Implements osgViewer::ViewerBase.

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

set up windows and associated threads.

Implements osgViewer::ViewerBase.

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.

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.

Reimplemented from osgViewer::ViewerBase.

virtual bool osgViewer::CompositeViewer::checkNeedToDoFrame (  )  [virtual]

check to see if the new frame is required, called by run(..) when FrameScheme is set to ON_DEMAND.

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::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]

Get the keyboard and mouse usage of this viewer.

Implements osgViewer::ViewerBase.

void osgViewer::CompositeViewer::constructorInit (  )  [protected]

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:

Generated on Sat Mar 20 12:34:07 2010 for openscenegraph by  doxygen 1.5.6