14#ifndef OSGVIEWER_Viewer
15#define OSGVIEWER_Viewer 1
#define USE_REFERENCE_TIME
Definition ViewerBase:30
unsigned long long Timer_t
Definition Timer:24
The osgViewer library provides high level viewer functionality designed to make it easier to write a ...
Definition ApplicationUsage:26
Definition ArgumentParser:28
Camera - is a subclass of Transform which represents encapsulates the settings of a Camera.
Definition Camera:45
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Class which encapsulates the frame number, reference time and calendar time of specific frame,...
Definition FrameStamp:35
Base class for all internal nodes in the scene graph.
Definition Node:72
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
View - maintains a master camera view and a list of slave cameras that are relative to this master ca...
Definition View:30
osg::Stats * getStats()
Get the Viewers Stats object.
Definition View:47
virtual void releaseGLObjects(osg::State *=0) const
If State is non-zero, this function releases any associated OpenGL objects for the specified graphics...
void setStats(osg::Stats *stats)
Set the Stats object used to collect various frame related timing and scene graph stats.
Definition View:44
virtual void resizeGLObjectBuffers(unsigned int maxSize)
Resize any per context GLObject buffers to specified size.
osg::FrameStamp * getFrameStamp()
Get the frame stamp of the view.
Definition View:90
Event class for storing Keyboard, mouse and window events.
Definition GUIEventAdapter:82
Definition GraphicsWindow:218
View holds a single view on a scene, this view may be composed of one or more slave cameras.
Definition View:76
virtual void setSceneData(osg::Node *node)
Set the scene graph that the View will use.
Viewer holds a single view on to a single scene.
Definition Viewer:28
virtual void realize()
set up windows and associated threads.
virtual void resizeGLObjectBuffers(unsigned int maxSize)
Resize any per context GLObject buffers to specified size.
Definition Viewer:117
virtual void setSceneData(osg::Node *node)
Set the sene graph data that viewer with view.
virtual osg::FrameStamp * getViewerFrameStamp()
Definition Viewer:80
virtual bool readConfiguration(const std::string &filename)
read the viewer configuration from a configuration file.
virtual bool checkNeedToDoFrame()
check to see if the new frame is required, called by run(..) when FrameScheme is set to ON_DEMAND.
virtual void advance(double simulationTime=USE_REFERENCE_TIME)
virtual osg::Stats * getViewerStats()
Get the Viewers Stats object.
Definition Viewer:49
virtual void take(osg::View &rhs)
Take all the settings, Camera and Slaves from the passed in view(er), leaving it empty.
virtual const osg::Stats * getViewerStats() const
Get the Viewers Stats object.
Definition Viewer:52
Viewer(osg::ArgumentParser &arguments)
virtual void viewerInit()
Definition Viewer:124
virtual bool isRealized() const
Get whether at least of one of this viewers windows are realized.
virtual double elapsedTime()
void reprojectPointerData(osgGA::GUIEventAdapter &source_event, osgGA::GUIEventAdapter &dest_event)
virtual void eventTraversal()
virtual int run()
Execute a main frame loop.
void generatePointerData(osgGA::GUIEventAdapter &event)
virtual void releaseGLObjects(osg::State *state=0) const
If State is non-zero, this function releases any associated OpenGL objects for the specified graphics...
Definition Viewer:118
virtual void updateTraversal()
virtual void getUsage(osg::ApplicationUsage &usage) const
Get the keyboard and mouse usage of this viewer.
virtual bool checkEvents()
check to see if events have been received, return true if events are now available.
virtual void getContexts(Contexts &contexts, bool onlyValid=true)
virtual void setViewerStats(osg::Stats *stats)
Set the Stats object used to collect various frame related timing and scene graph stats.
Definition Viewer:46
void generateSlavePointerData(osg::Camera *camera, osgGA::GUIEventAdapter &event)
virtual void getAllThreads(Threads &threads, bool onlyActive=true)
virtual void getCameras(Cameras &cameras, bool onlyActive=true)
virtual void getOperationThreads(OperationThreads &threads, bool onlyActive=true)
void setReferenceTime(double time=0.0)
Viewer(const osgViewer::Viewer &viewer, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
virtual void getScenes(Scenes &scenes, bool onlyValid=true)
META_Object(osgViewer, Viewer)
virtual GraphicsWindowEmbedded * setUpViewerAsEmbeddedInWindow(int x, int y, int width, int height)
Convenience method for setting up the viewer so it can be used embedded in an external managed window...
virtual void setStartTick(osg::Timer_t tick)
virtual void getViews(Views &views, bool onlyValid=true)
std::vector< OpenThreads::Thread * > Threads
Definition ViewerBase:272
std::vector< osg::OperationThread * > OperationThreads
Definition ViewerBase:275
std::vector< osgViewer::View * > Views
Definition ViewerBase:281
std::vector< osg::Camera * > Cameras
Definition ViewerBase:263
std::vector< osg::GraphicsContext * > Contexts
Definition ViewerBase:266
std::vector< osgViewer::Scene * > Scenes
Definition ViewerBase:278
#define OSGVIEWER_EXPORT
Definition Export:40