14 #ifndef OSGVIEWER_Viewer
15 #define OSGVIEWER_Viewer 1
17 #include <osg/ArgumentParser>
18 #include <osgGA/EventVisitor>
19 #include <osgUtil/UpdateVisitor>
20 #include <osgViewer/GraphicsWindow>
21 #include <osgViewer/View>
56 virtual bool readConfiguration(
const std::string& filename);
59 virtual bool isRealized()
const;
62 virtual void realize();
65 void setReferenceTime(
double time=0.0);
68 virtual void setSceneData(
osg::Node* node);
76 virtual double elapsedTime();
88 virtual bool checkNeedToDoFrame();
91 virtual bool checkEvents();
95 virtual void eventTraversal();
97 virtual void updateTraversal();
99 virtual void getCameras(Cameras& cameras,
bool onlyActive=
true);
101 virtual void getContexts(Contexts& contexts,
bool onlyValid=
true);
103 virtual void getAllThreads(Threads& threads,
bool onlyActive=
true);
105 virtual void getOperationThreads(OperationThreads& threads,
bool onlyActive=
true);
107 virtual void getScenes(Scenes& scenes,
bool onlyValid=
true);
109 virtual void getViews(Views& views,
bool onlyValid=
true);
117 void constructorInit();
#define USE_REFERENCE_TIME
virtual const osg::Stats * getViewerStats() const
unsigned long long Timer_t
#define META_Object(library, name)
GLint GLenum GLsizei width
virtual void setViewerStats(osg::Stats *stats)
GLint GLenum GLsizei GLsizei height
virtual osg::FrameStamp * getViewerFrameStamp()
virtual osg::Stats * getViewerStats()
virtual void viewerInit()