14 #ifndef OSGVIEWER_CompositeViewer
15 #define OSGVIEWER_CompositeViewer 1
17 #include <osg/ArgumentParser>
18 #include <osgUtil/UpdateVisitor>
19 #include <osgViewer/GraphicsWindow>
20 #include <osgViewer/View>
40 bool readConfiguration(
const std::string& filename);
63 virtual bool isRealized()
const;
66 virtual void realize();
70 void setReferenceTime(
double time=0.0);
75 virtual double elapsedTime();
88 virtual bool checkNeedToDoFrame();
91 virtual bool checkEvents();
95 virtual void eventTraversal();
97 virtual void updateTraversal();
107 virtual void getCameras(Cameras& cameras,
bool onlyActive=
true);
109 virtual void getContexts(Contexts& contexts,
bool onlyValid=
true);
111 virtual void getAllThreads(Threads& threads,
bool onlyActive=
true);
113 virtual void getOperationThreads(OperationThreads& threads,
bool onlyActive=
true);
115 virtual void getScenes(Scenes& scenes,
bool onlyValid=
true);
117 virtual void getViews(Views& views,
bool onlyValid=
true);
125 void constructorInit();
127 virtual void viewerInit();
133 typedef std::vector< osg::ref_ptr<osgViewer::View> >
RefViews;
osg::observer_ptr< osg::Camera > _cameraWithFocus
virtual osg::FrameStamp * getViewerFrameStamp()
virtual osg::Stats * getViewerStats()
osg::FrameStamp * getFrameStamp()
const osg::FrameStamp * getFrameStamp() const
#define USE_REFERENCE_TIME
unsigned long long Timer_t
#define META_Object(library, name)
osg::Camera * getCameraWithFocus()
osgViewer::View * getView(unsigned i)
virtual const osg::Stats * getViewerStats() const
osg::ref_ptr< osg::FrameStamp > _frameStamp
const osgViewer::View * getViewWithFocus() const
osg::ref_ptr< osgGA::GUIEventAdapter > _previousEvent
osgViewer::View * getViewWithFocus()
unsigned int getNumViews() const
std::vector< osg::ref_ptr< osgViewer::View > > RefViews
osg::ref_ptr< osg::Stats > _stats
virtual void setViewerStats(osg::Stats *stats)
const osg::Camera * getCameraWithFocus() const
osg::observer_ptr< osgViewer::View > _viewWithFocus
const osgViewer::View * getView(unsigned i) const