Public Types |
typedef std::vector< osg::ref_ptr<
osgGA::CameraManipulator > > | CameraManipList |
Public Methods |
| | Viewer () |
| virtual | ~Viewer () |
| virtual void | init (osg::Node *rootnode) |
| | init is deprecated, you should use addViewport instead.
|
| virtual unsigned int | addViewport (osgUtil::SceneView *sv, float x=0.0, float y=0.0, float width=1.0, float height=1.0) |
| virtual unsigned int | addViewport (osg::Node *, float x=0.0, float y=0.0, float width=1.0, float height=1.0) |
| const unsigned int | getNumViewports () const |
| osgUtil::SceneView * | getViewportSceneView (unsigned int pos) |
| virtual bool | open () |
| virtual bool | run () |
| virtual float | app (unsigned int viewport) |
| virtual float | cull (unsigned int viewport) |
| virtual float | draw (unsigned int viewport) |
| long | initClock () |
| double | clockSeconds () |
| osg::Timer_t | updateFrameTick () |
| double | frameSeconds () |
| double | frameRate () |
| void | help (std::ostream &fout) |
| unsigned int | registerCameraManipulator (osgGA::CameraManipulator *cm, unsigned int viewport=0) |
| void | selectCameraManipulator (unsigned int pos, unsigned int viewport=0) |
| void | setEventHandler (osgGA::GUIEventHandler *handler, unsigned int viewport=0) |
| virtual void | requestRedraw () |
| | requestRedraw() requests a single redraw.
|
| virtual void | requestContinuousUpdate (bool) |
| | requestContinousUpdate(bool) is for en/disabling a throw or idle callback to be requested by a GUIEventHandler (typically a CameraManipulator, though other GUIEventHandler's may also provide functionality).
|
| virtual void | requestWarpPointer (int x, int y) |
| | requestWarpPointer(int,int) is requesting a repositioning of the mouse pointer to a specified x,y location on the window.
|
| void | readCommandLine (std::vector< std::string > &commandLine) |
| | read the command line string list, removing any matched control sequences.
|
| void | setDisplaySettings (osg::DisplaySettings *ds) |
| osg::DisplaySettings * | getDisplaySettings () |
| const osg::DisplaySettings * | getDisplaySettings () const |
Protected Types |
| typedef std::vector< ViewportDef > | ViewportList |
Protected Methods |
| virtual void | clear () |
| virtual void | display () |
| virtual void | reshape (GLint w, GLint h) |
| virtual void | mouseMotion (int x, int y) |
| virtual void | mousePassiveMotion (int x, int y) |
| virtual void | mouse (int button, int state, int x, int y) |
| virtual void | keyboard (unsigned char key, int x, int y) |
| void | setFocusedViewport (unsigned int pos) |
| int | mapWindowXYToSceneView (int x, int y) |
| void | showStats (const unsigned int i) |
| osg::Timer_t | clockTick () |
| osg::Timer_t | frameTick () |
Protected Attributes |
| ViewportList | _viewportList |
| unsigned int | _focusedViewport |
| std::string | _saveFileName |
| bool | _viewFrustumCullingActive |
| bool | _smallFeatureCullingActive |
| int | polymode |
| int | texture |
| int | backface |
| int | lighting |
| int | flat_shade |
| float | frRate |
| int | _printStats |
| StatsRecord | times [3] |
| bool | _useDisplayLists |
| osg::Timer | _timer |
| osg::Timer_t | _initialTick |
| osg::Timer_t | _lastFrameTick |
| osg::Timer_t | _frameTick |
| osg::ref_ptr< osg::FrameStamp > | _frameStamp |
| osg::ref_ptr< osg::DisplaySettings > | _displaySettings |
Static Protected Attributes |
| Viewer * | s_theViewer |
Please note, this viewer class has been developed via a rather haphazard path and needs a total rewrite. It currently suffices for osg demos but shouldn't be viewed as the be all and end of osg viewer classes. Someone please rewrite it :-)