osgViewer::CompositeViewer Class Reference

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

Inheritance diagram for osgViewer::CompositeViewer:

Inheritance graph
[legend]

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.
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 ()
void setEventQueue (osgGA::EventQueue *eventQueue)
osgGA::EventQueuegetEventQueue ()
const osgGA::EventQueuegetEventQueue () 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::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 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


Detailed Description

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


Member Typedef Documentation

typedef std::vector< osg::ref_ptr<osgViewer::View> > osgViewer::CompositeViewer::RefViews [protected]


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.

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.

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]

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

RefViews osgViewer::CompositeViewer::_views [protected]

bool osgViewer::CompositeViewer::_firstFrame [protected]

Reimplemented from osgViewer::ViewerBase.

osg::Timer_t osgViewer::CompositeViewer::_startTick [protected]

osg::ref_ptr<osg::FrameStamp> osgViewer::CompositeViewer::_frameStamp [protected]

osg::observer_ptr<osg::Camera> osgViewer::CompositeViewer::_cameraWithFocus [protected]

osg::observer_ptr<osgViewer::View> osgViewer::CompositeViewer::_viewWithFocus [protected]

osg::ref_ptr<osgGA::EventQueue> osgViewer::CompositeViewer::_eventQueue [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:53 2007 for the OpenSceneGraph by doxygen 1.5.3.