OpenSceneGraph
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
osgViewer::CompositeViewer Class Reference

CompositeViewer holds one or more views to one or more scenes. More...

Inheritance diagram for osgViewer::CompositeViewer:
Inheritance graph
[legend]

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. More...
 
virtual void setViewerStats (osg::Stats *stats)
 Set the Stats object used to collect various frame related timing and scene graph stats. More...
 
virtual osg::StatsgetViewerStats ()
 Get the Viewers Stats object. More...
 
virtual const osg::StatsgetViewerStats () const
 Get the Viewers Stats object. More...
 
void addView (osgViewer::View *view)
 
template<class T >
void addView (const osg::ref_ptr< T > &view)
 
void removeView (osgViewer::View *view)
 
template<class T >
void removeView (const osg::ref_ptr< T > &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 viewer's windows are realized. More...
 
virtual void realize ()
 Set up windows and associated threads. More...
 
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. More...
 
virtual bool checkNeedToDoFrame ()
 Check to see if the new frame is required, called by run() when FrameScheme is set to ON_DEMAND. More...
 
virtual bool checkEvents ()
 check to see if events have been received, return true if events are now available. More...
 
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. More...
 
- Public Member Functions inherited from osgViewer::ViewerBase
 ViewerBase ()
 
 ViewerBase (const ViewerBase &vb)
 
void setUseConfigureAffinity (bool flag)
 Set whether the setUpThreading() method should call configureAffinity() to set up up the processor affinity of viewer threads. More...
 
bool getUseConfigureAffinity () const
 get whether the setUpThreading() method should call configureAffinity() to set up up the processor affinity of viewer threads. More...
 
virtual void configureAffinity ()
 analyse the viewer configuration and select an appropriate Affinity for main thread, and any graphics, camera threads and database pagers that are required. More...
 
virtual void setProcessorAffinity (const OpenThreads::Affinity &affinity)
 Set the processor affinity of main thread. More...
 
OpenThreads::AffinitygetProcessorAffinity ()
 
const OpenThreads::AffinitygetProcessorAffinity () const
 
virtual void setThreadingModel (ThreadingModel threadingModel)
 Set the threading model the rendering traversals will use. More...
 
ThreadingModel getThreadingModel () const
 Get the threading model the rendering traversals will use. More...
 
virtual ThreadingModel suggestBestThreadingModel ()
 Let the viewer suggest the best threading model for the viewers camera/window setup and the hardware available. More...
 
virtual void setUpThreading ()
 Set up the threading and processor affinity as per the viewers threading model. More...
 
bool areThreadsRunning () const
 Return true if viewer threads are running. More...
 
virtual void stopThreading ()
 Stop any threads being run by viewer. More...
 
virtual void startThreading ()
 Start any threads required by the viewer. More...
 
void setEndBarrierPosition (BarrierPosition bp)
 Set the position of the end barrier. More...
 
BarrierPosition getEndBarrierPosition () const
 Get the end barrier position. More...
 
void setEndBarrierOperation (osg::BarrierOperation::PreBlockOp op)
 Set the end barrier operation. More...
 
osg::BarrierOperation::PreBlockOp getEndBarrierOperation () const
 Get the end barrier operation. More...
 
void setDone (bool done)
 Set the done flag to signal the viewer's work is done and should exit the frame loop. More...
 
bool done () const
 Return true if viewer's work is done and should exit the frame loop. More...
 
void setEventVisitor (osgGA::EventVisitor *eventVisitor)
 Set the EventVisitor. More...
 
osgGA::EventVisitorgetEventVisitor ()
 Get the EventVisitor. More...
 
const osgGA::EventVisitorgetEventVisitor () const
 Get the const EventVisitor. More...
 
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. More...
 
int getKeyEventSetsDone () const
 get the key event that the viewer checks on each frame to see if the viewer's done flag. More...
 
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 More...
 
bool getQuitEventSetsDone () const
 
void setReleaseContextAtEndOfFrameHint (bool hint)
 Hint to tell the renderingTraversals() method whether to call releaseContext() on the last context that was made current by the thread calling renderingTraverals(). More...
 
bool getReleaseContextAtEndOfFrameHint () const
 Hint to tell the renderingTraversals() method whether to call releaseContext(). More...
 
void setUpdateVisitor (osgUtil::UpdateVisitor *updateVisitor)
 Set the UpdateVisitor. More...
 
osgUtil::UpdateVisitorgetUpdateVisitor ()
 Get the UpdateVisitor. More...
 
const osgUtil::UpdateVisitorgetUpdateVisitor () const
 Get the const UpdateVisitor. More...
 
void setUpdateOperations (osg::OperationQueue *operations)
 Set the Update OperationQueue. More...
 
osg::OperationQueuegetUpdateOperations ()
 Get the Update OperationQueue. More...
 
const osg::OperationQueuegetUpdateOperations () const
 Get the const Update OperationQueue. More...
 
void addUpdateOperation (osg::Operation *operation)
 Add an update operation. More...
 
void removeUpdateOperation (osg::Operation *operation)
 Remove an update operation. More...
 
void setRealizeOperation (osg::Operation *op)
 Set the graphics operation to call on realization of the viewers graphics windows. More...
 
osg::OperationgetRealizeOperation ()
 Get the graphics operation to call on realization of the viewers graphics windows. More...
 
void setCleanUpOperation (osg::Operation *op)
 Set the graphics operation to call before the viewers graphics contexts close. More...
 
osg::OperationgetCleanUpOperation ()
 Get the graphics operation to call before the viewers graphics contexts close. More...
 
void setIncrementalCompileOperation (osgUtil::IncrementalCompileOperation *ico)
 Set the incremental compile operation. More...
 
osgUtil::IncrementalCompileOperationgetIncrementalCompileOperation ()
 Get the incremental compile operation. More...
 
void setRunFrameScheme (FrameScheme fs)
 
FrameScheme getRunFrameScheme () const
 
void setRunMaxFrameRate (double frameRate)
 
double getRunMaxFrameRate () const
 
virtual void frame (double simulationTime=USE_REFERENCE_TIME)
 Render a complete new frame. More...
 
virtual void renderingTraversals ()
 
virtual void getWindows (Windows &windows, bool onlyValid=true)
 
void checkWindowStatus ()
 Check to see if any windows are still open. More...
 
void checkWindowStatus (const Contexts &contexts)
 Check to see if windows are still open using the list of contexts given as a parameter. More...
 
bool getRequestRedraw () const
 
bool getRequestContinousUpdate () const
 
- Public Member Functions inherited from osg::Object
 Object ()
 Construct an object. More...
 
 Object (bool threadSafeRefUnref)
 
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor, optional CopyOp object can be used to control shallow vs deep copying of dynamic data. More...
 
virtual ObjectcloneType () const =0
 Clone the type of an object, with Object* return type. More...
 
virtual Objectclone (const CopyOp &) const =0
 Clone an object, with Object* return type. More...
 
virtual bool isSameKindAs (const Object *) const
 
virtual const char * libraryName () const =0
 return the name of the object's library. More...
 
virtual const char * className () const =0
 return the name of the object's class type. More...
 
std::string getCompoundClassName () const
 return the compound class name that combines the library name and class name. More...
 
virtual NodeasNode ()
 Convert 'this' into a Node pointer if Object is a Node, otherwise return 0. More...
 
virtual const NodeasNode () const
 convert 'const this' into a const Node pointer if Object is a Node, otherwise return 0. More...
 
virtual NodeVisitorasNodeVisitor ()
 Convert 'this' into a NodeVisitor pointer if Object is a NodeVisitor, otherwise return 0. More...
 
virtual const NodeVisitorasNodeVisitor () const
 convert 'const this' into a const NodeVisitor pointer if Object is a NodeVisitor, otherwise return 0. More...
 
virtual StateSetasStateSet ()
 Convert 'this' into a StateSet pointer if Object is a StateSet, otherwise return 0. More...
 
virtual const StateSetasStateSet () const
 convert 'const this' into a const StateSet pointer if Object is a StateSet, otherwise return 0. More...
 
virtual StateAttributeasStateAttribute ()
 Convert 'this' into a StateAttribute pointer if Object is a StateAttribute, otherwise return 0. More...
 
virtual const StateAttributeasStateAttribute () const
 convert 'const this' into a const StateAttribute pointer if Object is a StateAttribute, otherwise return 0. More...
 
virtual Uniform * asUniform ()
 Convert 'this' into a Uniform pointer if Object is a Uniform, otherwise return 0. More...
 
virtual const UniformBaseasUniformBase () const
 convert 'const this' into a const Uniform pointer if Object is a Uniform, otherwise return 0. More...
 
virtual UniformBaseasUniformBase ()
 Convert 'this' into a Uniform pointer if Object is a Uniform, otherwise return 0. More...
 
virtual const Uniform * asUniform () const
 convert 'const this' into a const Uniform pointer if Object is a Uniform, otherwise return 0. More...
 
virtual CameraasCamera ()
 Convert 'this' into a Camera pointer if Node is a Camera, otherwise return 0. More...
 
virtual const CameraasCamera () const
 convert 'const this' into a const Camera pointer if Node is a Camera, otherwise return 0. More...
 
virtual DrawableasDrawable ()
 Convert 'this' into a Drawable pointer if Object is a Drawable, otherwise return 0. More...
 
virtual const DrawableasDrawable () const
 convert 'const this' into a const Drawable pointer if Object is a Drawable, otherwise return 0. More...
 
virtual CallbackasCallback ()
 Convert 'this' into a Callback pointer if Object is a Callback, otherwise return 0. More...
 
virtual const CallbackasCallback () const
 convert 'const this' into a const Callback pointer if Object is a Callback, otherwise return 0. More...
 
virtual CallbackObjectasCallbackObject ()
 Convert 'this' into a CallbackObject pointer if Object is a CallbackObject, otherwise return 0. More...
 
virtual const CallbackObjectasCallbackObject () const
 convert 'const this' into a const CallbackObject pointer if Object is a CallbackObject, otherwise return 0. More...
 
virtual UserDataContainerasUserDataContainer ()
 Convert 'this' into a UserDataContainer pointer if Object is a UserDataContainer, otherwise return 0. More...
 
virtual const UserDataContainerasUserDataContainer () const
 convert 'const this' into a const UserDataContainer pointer if Object is a UserDataContainer, otherwise return 0. More...
 
virtual ValueObjectasValueObject ()
 Convert 'this' into a ValueObject pointer if Object is a ValueObject, otherwise return 0. More...
 
virtual const ValueObjectasValueObject () const
 Convert 'this' into a ValueObject pointer if Object is a ValueObject, otherwise return 0. More...
 
virtual ImageasImage ()
 Convert 'this' into a Image pointer if Object is a Image, otherwise return 0. More...
 
virtual const ImageasImage () const
 Convert 'this' into a Image pointer if Object is a Image, otherwise return 0. More...
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 Set whether to use a mutex to ensure ref() and unref() are thread safe. More...
 
virtual void setName (const std::string &name)
 Set the name of object using C++ style string. More...
 
void setName (const char *name)
 Set the name of object using a C style string. More...
 
const std::string & getName () const
 Get the name of object. More...
 
void setDataVariance (DataVariance dv)
 Set the data variance of this object. More...
 
DataVariance getDataVariance () const
 Get the data variance of this object. More...
 
virtual void computeDataVariance ()
 Compute the DataVariance based on an assessment of callback etc. More...
 
void setUserDataContainer (osg::UserDataContainer *udc)
 set the UserDataContainer object. More...
 
template<class T >
void setUserDataContainer (const ref_ptr< T > &udc)
 
osg::UserDataContainergetUserDataContainer ()
 get the UserDataContainer attached to this object. More...
 
const osg::UserDataContainergetUserDataContainer () const
 get the const UserDataContainer attached to this object. More...
 
osg::UserDataContainergetOrCreateUserDataContainer ()
 Convenience method that returns the UserDataContainer, and if one doesn't already exist creates and assigns a DefaultUserDataContainer to the Object and then return this new UserDataContainer. More...
 
virtual void setUserData (Referenced *obj)
 Set user data, data must be subclassed from Referenced to allow automatic memory handling. More...
 
template<class T >
void setUserData (const ref_ptr< T > &ud)
 
virtual ReferencedgetUserData ()
 Get user data. More...
 
virtual const ReferencedgetUserData () const
 Get const user data. More...
 
template<typename T >
bool getUserValue (const std::string &name, T &value) const
 Convenience method that casts the named UserObject to osg::TemplateValueObject<T> and gets the value. More...
 
template<typename T >
void setUserValue (const std::string &name, const T &value)
 Convenience method that creates the osg::TemplateValueObject<T> to store the specified value and adds it as a named UserObject. More...
 
virtual void resizeGLObjectBuffers (unsigned int)
 Resize any per context GLObject buffers to specified size. More...
 
virtual void releaseGLObjects (osg::State *=0) const
 If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. More...
 
template<typename T >
BoolValueObject UCharValueObject UShortValueObject UIntValueObject DoubleValueObject Vec3fValueObject Vec2dValueObject Vec4dValueObject PlaneValueObject MatrixdValueObject BoundingBoxdValueObject BoundingSpheredValueObject bool getUserValue (const std::string &name, T &value) const
 provide implementation of osg::Object::getUserValue(..) template More...
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 Deprecated, Referenced is now always uses thread safe ref/unref, use default Referenced() constructor instead. More...
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
bool getThreadSafeRefUnref () const
 Get whether a mutex is used to ensure ref() and unref() are thread safe. More...
 
OpenThreads::MutexgetRefMutex () const
 Get the mutex used to ensure thread safety of ref()/unref(). More...
 
int ref () const
 Increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
int unref () const
 Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
 
int unref_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
 
int referenceCount () const
 Return the number of pointers currently referencing this object. More...
 
ObserverSetgetObserverSet () const
 Get the ObserverSet if one is attached, otherwise return NULL. More...
 
ObserverSetgetOrCreateObserverSet () const
 Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet. More...
 
void addObserver (Observer *observer) const
 Add a Observer that is observing this object, notify the Observer when this object gets deleted. More...
 
void removeObserver (Observer *observer) const
 Remove Observer that is observing this object. More...
 

Protected Types

typedef std::vector< osg::ref_ptr< osgViewer::View > > RefViews
 

Protected Member Functions

void constructorInit ()
 
virtual void viewerInit ()
 
void generateSlavePointerData (osg::Camera *camera, osgGA::GUIEventAdapter &event)
 
void generatePointerData (osgGA::GUIEventAdapter &event)
 
void reprojectPointerData (osgGA::GUIEventAdapter &source_event, osgGA::GUIEventAdapter &dest_event)
 
- Protected Member Functions inherited from osgViewer::ViewerBase
void viewerBaseInit ()
 
void makeCurrent (osg::GraphicsContext *gc)
 
void releaseContext ()
 
- Protected Member Functions inherited from osg::Object
virtual ~Object ()
 Object destructor. More...
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

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
 
osg::ref_ptr< osgGA::GUIEventAdapter_previousEvent
 
- Protected Attributes inherited from osgViewer::ViewerBase
bool _firstFrame
 
bool _done
 
int _keyEventSetsDone
 
bool _quitEventSetsDone
 
bool _releaseContextAtEndOfFrameHint
 
bool _useConfigureAffinity
 
OpenThreads::Affinity _affinity
 
ThreadingModel _threadingModel
 
bool _threadsRunning
 
bool _requestRedraw
 
bool _requestContinousUpdate
 
FrameScheme _runFrameScheme
 
double _runMaxFrameRate
 
BarrierPosition _endBarrierPosition
 
osg::BarrierOperation::PreBlockOp _endBarrierOperation
 
osg::ref_ptr< osg::BarrierOperation_startRenderingBarrier
 
osg::ref_ptr< osg::BarrierOperation_endRenderingDispatchBarrier
 
osg::ref_ptr< osg::EndOfDynamicDrawBlock_endDynamicDrawBlock
 
osg::ref_ptr< osgGA::EventVisitor_eventVisitor
 
osg::ref_ptr< osg::OperationQueue_updateOperations
 
osg::ref_ptr< osgUtil::UpdateVisitor_updateVisitor
 
osg::ref_ptr< osg::Operation_realizeOperation
 
osg::ref_ptr< osg::Operation_cleanUpOperation
 
osg::ref_ptr< osgUtil::IncrementalCompileOperation_incrementalCompileOperation
 
osg::observer_ptr< osg::GraphicsContext_currentContext
 
- Protected Attributes inherited from osg::Object
std::string _name
 
DataVariance _dataVariance
 
osg::UserDataContainer_userDataContainer
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Additional Inherited Members

- Public Types inherited from osgViewer::ViewerBase
enum  ThreadingModel {
  SingleThreaded, CullDrawThreadPerContext, ThreadPerContext = CullDrawThreadPerContext, DrawThreadPerContext,
  CullThreadPerCameraDrawThreadPerContext, ThreadPerCamera = CullThreadPerCameraDrawThreadPerContext, AutomaticSelection
}
 
enum  BarrierPosition { BeforeSwapBuffers, AfterSwapBuffers }
 
enum  FrameScheme { ON_DEMAND, CONTINUOUS }
 
typedef std::vector< osg::Camera * > Cameras
 
typedef std::vector< osg::GraphicsContext * > Contexts
 
typedef std::vector< osgViewer::GraphicsWindow * > Windows
 
typedef std::vector< OpenThreads::Thread * > Threads
 
typedef std::vector< osg::OperationThread * > OperationThreads
 
typedef std::vector< osgViewer::Scene * > Scenes
 
typedef std::vector< osgViewer::View * > Views
 
- Public Types inherited from osg::Object
enum  DataVariance { DYNAMIC, STATIC, UNSPECIFIED }
 
- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 Get the optional global Referenced mutex, this can be shared between all osg::Referenced. More...
 
static void setDeleteHandler (DeleteHandler *handler)
 Set a DeleteHandler to which deletion of all referenced counted objects will be delegated. More...
 
static DeleteHandlergetDeleteHandler ()
 Get a DeleteHandler. More...
 

Detailed Description

CompositeViewer holds one or more views to one or more scenes.

Member Typedef Documentation

◆ RefViews

Constructor & Destructor Documentation

◆ CompositeViewer() [1/3]

osgViewer::CompositeViewer::CompositeViewer ( )

◆ CompositeViewer() [2/3]

osgViewer::CompositeViewer::CompositeViewer ( const CompositeViewer ,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)

◆ CompositeViewer() [3/3]

osgViewer::CompositeViewer::CompositeViewer ( osg::ArgumentParser arguments)

◆ ~CompositeViewer()

virtual osgViewer::CompositeViewer::~CompositeViewer ( )
virtual

Member Function Documentation

◆ addView() [1/2]

void osgViewer::CompositeViewer::addView ( osgViewer::View view)

◆ addView() [2/2]

template<class T >
void osgViewer::CompositeViewer::addView ( const osg::ref_ptr< T > &  view)
inline

References addView(), and osg::ref_ptr< T >::get().

Referenced by addView().

◆ advance()

virtual void osgViewer::CompositeViewer::advance ( double  simulationTime = USE_REFERENCE_TIME)
virtual

Implements osgViewer::ViewerBase.

◆ checkEvents()

virtual bool osgViewer::CompositeViewer::checkEvents ( )
virtual

check to see if events have been received, return true if events are now available.

Implements osgViewer::ViewerBase.

◆ checkNeedToDoFrame()

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.

◆ constructorInit()

void osgViewer::CompositeViewer::constructorInit ( )
protected

◆ elapsedTime()

virtual double osgViewer::CompositeViewer::elapsedTime ( )
virtual

Implements osgViewer::ViewerBase.

◆ eventTraversal()

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

Implements osgViewer::ViewerBase.

◆ generatePointerData()

void osgViewer::CompositeViewer::generatePointerData ( osgGA::GUIEventAdapter event)
protected

◆ generateSlavePointerData()

void osgViewer::CompositeViewer::generateSlavePointerData ( osg::Camera camera,
osgGA::GUIEventAdapter event 
)
protected

◆ getAllThreads()

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

Implements osgViewer::ViewerBase.

◆ getCameras()

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

Implements osgViewer::ViewerBase.

◆ getCameraWithFocus() [1/2]

osg::Camera* osgViewer::CompositeViewer::getCameraWithFocus ( )
inline

◆ getCameraWithFocus() [2/2]

const osg::Camera* osgViewer::CompositeViewer::getCameraWithFocus ( ) const
inline

◆ getContexts()

virtual void osgViewer::CompositeViewer::getContexts ( Contexts contexts,
bool  onlyValid = true 
)
virtual

Implements osgViewer::ViewerBase.

◆ getFrameStamp() [1/2]

osg::FrameStamp* osgViewer::CompositeViewer::getFrameStamp ( )
inline

◆ getFrameStamp() [2/2]

const osg::FrameStamp* osgViewer::CompositeViewer::getFrameStamp ( ) const
inline

◆ getNumViews()

unsigned int osgViewer::CompositeViewer::getNumViews ( ) const
inline

◆ getOperationThreads()

virtual void osgViewer::CompositeViewer::getOperationThreads ( OperationThreads threads,
bool  onlyActive = true 
)
virtual

Implements osgViewer::ViewerBase.

◆ getScenes()

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

Implements osgViewer::ViewerBase.

◆ getUsage()

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

Get the keyboard and mouse usage of this viewer.

Implements osgViewer::ViewerBase.

◆ getView() [1/2]

osgViewer::View* osgViewer::CompositeViewer::getView ( unsigned  i)
inline

◆ getView() [2/2]

const osgViewer::View* osgViewer::CompositeViewer::getView ( unsigned  i) const
inline

◆ getViewerFrameStamp()

virtual osg::FrameStamp* osgViewer::CompositeViewer::getViewerFrameStamp ( )
inlinevirtual

Implements osgViewer::ViewerBase.

References USE_REFERENCE_TIME.

◆ getViewerStats() [1/2]

virtual osg::Stats* osgViewer::CompositeViewer::getViewerStats ( )
inlinevirtual

Get the Viewers Stats object.

Implements osgViewer::ViewerBase.

◆ getViewerStats() [2/2]

virtual const osg::Stats* osgViewer::CompositeViewer::getViewerStats ( ) const
inlinevirtual

Get the Viewers Stats object.

Implements osgViewer::ViewerBase.

◆ getViews()

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

Implements osgViewer::ViewerBase.

◆ getViewWithFocus() [1/2]

osgViewer::View* osgViewer::CompositeViewer::getViewWithFocus ( )
inline

◆ getViewWithFocus() [2/2]

const osgViewer::View* osgViewer::CompositeViewer::getViewWithFocus ( ) const
inline

◆ isRealized()

virtual bool osgViewer::CompositeViewer::isRealized ( ) const
virtual

Get whether at least of one of this viewer's windows are realized.

Implements osgViewer::ViewerBase.

◆ META_Object()

osgViewer::CompositeViewer::META_Object ( osgViewer  ,
CompositeViewer   
)

◆ readConfiguration()

bool osgViewer::CompositeViewer::readConfiguration ( const std::string &  filename)
virtual

Read the viewer configuration from a configuration file.

Implements osgViewer::ViewerBase.

◆ realize()

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

Set up windows and associated threads.

Implements osgViewer::ViewerBase.

◆ removeView() [1/2]

void osgViewer::CompositeViewer::removeView ( osgViewer::View view)

◆ removeView() [2/2]

template<class T >
void osgViewer::CompositeViewer::removeView ( const osg::ref_ptr< T > &  view)
inline

References osg::ref_ptr< T >::get(), and removeView().

Referenced by removeView().

◆ reprojectPointerData()

void osgViewer::CompositeViewer::reprojectPointerData ( osgGA::GUIEventAdapter source_event,
osgGA::GUIEventAdapter dest_event 
)
protected

◆ run()

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.

◆ setCameraWithFocus()

void osgViewer::CompositeViewer::setCameraWithFocus ( osg::Camera camera)

◆ setReferenceTime()

void osgViewer::CompositeViewer::setReferenceTime ( double  time = 0.0)

◆ setStartTick()

virtual void osgViewer::CompositeViewer::setStartTick ( osg::Timer_t  tick)
virtual

◆ setViewerStats()

virtual void osgViewer::CompositeViewer::setViewerStats ( osg::Stats stats)
inlinevirtual

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

Implements osgViewer::ViewerBase.

◆ updateTraversal()

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

Implements osgViewer::ViewerBase.

◆ viewerInit()

virtual void osgViewer::CompositeViewer::viewerInit ( )
protectedvirtual

Implements osgViewer::ViewerBase.

Member Data Documentation

◆ _cameraWithFocus

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

◆ _firstFrame

bool osgViewer::CompositeViewer::_firstFrame
protected

◆ _frameStamp

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

◆ _previousEvent

osg::ref_ptr<osgGA::GUIEventAdapter> osgViewer::CompositeViewer::_previousEvent
protected

◆ _startTick

osg::Timer_t osgViewer::CompositeViewer::_startTick
protected

◆ _stats

osg::ref_ptr<osg::Stats> osgViewer::CompositeViewer::_stats
protected

◆ _views

RefViews osgViewer::CompositeViewer::_views
protected

◆ _viewWithFocus

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

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