osgViewer::Viewer Class Reference
List of all members.
Public Member Functions |
| Viewer () |
| Viewer (osg::ArgumentParser &arguments) |
| Viewer (const osgViewer::Viewer &viewer, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) |
virtual | ~Viewer () |
| META_Object (osgViewer, Viewer) |
virtual void | take (View &rhs) |
virtual void | setViewerStats (osg::Stats *stats) |
virtual osg::Stats * | getViewerStats () |
virtual const osg::Stats * | getViewerStats () const |
virtual bool | readConfiguration (const std::string &filename) |
virtual bool | isRealized () const |
virtual void | realize () |
virtual void | setStartTick (osg::Timer_t tick) |
void | setReferenceTime (double time=0.0) |
virtual void | setSceneData (osg::Node *node) |
virtual GraphicsWindowEmbedded * | setUpViewerAsEmbeddedInWindow (int x, int y, int width, int height) |
virtual double | elapsedTime () |
virtual osg::FrameStamp * | getViewerFrameStamp () |
virtual int | run () |
virtual void | advance (double simulationTime=USE_REFERENCE_TIME) |
virtual void | eventTraversal () |
virtual void | updateTraversal () |
void | setCameraWithFocus (osg::Camera *camera) |
osg::Camera * | getCameraWithFocus () |
const osg::Camera * | getCameraWithFocus () 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 |
Protected Member Functions |
void | constructorInit () |
virtual void | viewerInit () |
Protected Attributes |
osg::observer_ptr< osg::Camera > | _cameraWithFocus |
Detailed Description
Viewer holds a single view on to a single scene.
Constructor & Destructor Documentation
osgViewer::Viewer::Viewer |
( |
|
) |
|
virtual osgViewer::Viewer::~Viewer |
( |
|
) |
[virtual] |
Member Function Documentation
virtual void osgViewer::Viewer::advance |
( |
double |
simulationTime = USE_REFERENCE_TIME |
) |
[virtual] |
void osgViewer::Viewer::constructorInit |
( |
|
) |
[protected] |
virtual double osgViewer::Viewer::elapsedTime |
( |
|
) |
[virtual] |
virtual void osgViewer::Viewer::eventTraversal |
( |
|
) |
[virtual] |
virtual void osgViewer::Viewer::getAllThreads |
( |
Threads & |
threads, |
|
|
bool |
onlyActive = true | |
|
) |
| | [virtual] |
virtual void osgViewer::Viewer::getCameras |
( |
Cameras & |
cameras, |
|
|
bool |
onlyActive = true | |
|
) |
| | [virtual] |
const osg::Camera* osgViewer::Viewer::getCameraWithFocus |
( |
|
) |
const [inline] |
osg::Camera* osgViewer::Viewer::getCameraWithFocus |
( |
|
) |
[inline] |
virtual void osgViewer::Viewer::getContexts |
( |
Contexts & |
contexts, |
|
|
bool |
onlyValid = true | |
|
) |
| | [virtual] |
virtual void osgViewer::Viewer::getOperationThreads |
( |
OperationThreads & |
threads, |
|
|
bool |
onlyActive = true | |
|
) |
| | [virtual] |
virtual void osgViewer::Viewer::getScenes |
( |
Scenes & |
scenes, |
|
|
bool |
onlyValid = true | |
|
) |
| | [virtual] |
virtual osg::FrameStamp* osgViewer::Viewer::getViewerFrameStamp |
( |
|
) |
[inline, virtual] |
virtual const osg::Stats* osgViewer::Viewer::getViewerStats |
( |
|
) |
const [inline, virtual] |
virtual osg::Stats* osgViewer::Viewer::getViewerStats |
( |
|
) |
[inline, virtual] |
virtual void osgViewer::Viewer::getViews |
( |
Views & |
views, |
|
|
bool |
onlyValid = true | |
|
) |
| | [virtual] |
virtual bool osgViewer::Viewer::isRealized |
( |
|
) |
const [virtual] |
osgViewer::Viewer::META_Object |
( |
osgViewer |
, |
|
|
Viewer |
| |
|
) |
| | |
virtual bool osgViewer::Viewer::readConfiguration |
( |
const std::string & |
filename |
) |
[virtual] |
virtual void osgViewer::Viewer::realize |
( |
|
) |
[virtual] |
virtual int osgViewer::Viewer::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.
Implements osgViewer::ViewerBase.
void osgViewer::Viewer::setCameraWithFocus |
( |
osg::Camera * |
camera |
) |
[inline] |
void osgViewer::Viewer::setReferenceTime |
( |
double |
time = 0.0 |
) |
|
virtual void osgViewer::Viewer::setSceneData |
( |
osg::Node * |
node |
) |
[virtual] |
Set the sene graph data that viewer with view.
Reimplemented from osgViewer::View.
virtual void osgViewer::Viewer::setStartTick |
( |
osg::Timer_t |
tick |
) |
[virtual] |
virtual GraphicsWindowEmbedded* osgViewer::Viewer::setUpViewerAsEmbeddedInWindow |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height | |
|
) |
| | [virtual] |
Convenience method for setting up the viewer so it can be used embedded in an external managed window. Returns the GraphicsWindowEmbedded that can be used by applications to pass in events to the viewer.
virtual void osgViewer::Viewer::setViewerStats |
( |
osg::Stats * |
stats |
) |
[inline, virtual] |
Set the Stats object used for collect various frame related timing and scene graph stats.
Implements osgViewer::ViewerBase.
virtual void osgViewer::Viewer::take |
( |
View & |
rhs |
) |
[virtual] |
Take all the settings, Camera and Slaves from the passed in view(er), leaving it empty.
virtual void osgViewer::Viewer::updateTraversal |
( |
|
) |
[virtual] |
virtual void osgViewer::Viewer::viewerInit |
( |
|
) |
[inline, protected, virtual] |
Member Data Documentation
The documentation for this class was generated from the following file: