|
Public Types |
typedef std::list< osg::ref_ptr<
osgGA::GUIEventHandler > > | EventHandlers |
Public Member Functions |
| | View () |
| | View (const osgViewer::View &view, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) |
| | META_Object (osgViewer, View) |
| Scene * | getScene () |
| const Scene * | getScene () const |
| virtual void | setSceneData (osg::Node *node) |
| | Set the scene graph that the View will use.
|
| osg::Node * | getSceneData () |
| | Get the View's scene graph.
|
| const osg::Node * | getSceneData () const |
| | Get the const View's scene graph.
|
| void | setEventQueue (osgGA::EventQueue *eventQueue) |
| osgGA::EventQueue * | getEventQueue () |
| const osgGA::EventQueue * | getEventQueue () const |
| void | setCameraManipulator (osgGA::MatrixManipulator *manipulator) |
| | Set the CameraManipulator that moves the View's master Camera position in response to events.
|
| osgGA::MatrixManipulator * | getCameraManipulator () |
| | Get the View's CameraManipulator.
|
| const osgGA::MatrixManipulator * | getCameraManipulator () const |
| | Get the const View's CameraManipulator.
|
| void | home () |
| | Set the view to the CameraManipulator's home position, if non is attached home() is does nothing.
|
| void | addEventHandler (osgGA::GUIEventHandler *eventHandler) |
| | Add an EventHandler that adds handling of events to the View.
|
| EventHandlers & | getEventHandlers () |
| | Get the View's list of EventHandlers.
|
| const EventHandlers & | getEventHandlers () const |
| | Get the const View's list of EventHandlers.
|
| void | setCoordinateSystemNodePath (const osg::NodePath &nodePath) |
| | Set the NodePath to any active CoordinateSystemNode present in the Scene.
|
| osg::NodePath | getCoordinateSystemNodePath () const |
| | Get the NodePath to any active CoordinateSystemNode present in the Scene.
|
| void | computeActiveCoordinateSystemNodePath () |
| | Compute the NodePath to any active CoordinateSystemNode present in the Scene.
|
| void | setDisplaySettings (osg::DisplaySettings *ds) |
| | Set the DsplaySettings object associated with this view.
|
| osg::DisplaySettings * | getDisplaySettings () |
| | Set the DsplaySettings object associated with this view.
|
| const osg::DisplaySettings * | getDisplaySettings () const |
| | Set the DsplaySettings object associated with this view.
|
| void | setFusionDistance (osgUtil::SceneView::FusionDistanceMode mode, float value=1.0f) |
| | Set the FusionDistanceMode and Value.
|
| osgUtil::SceneView::FusionDistanceMode | getFusionDistanceMode () const |
| | Get the FusionDistanceMode.
|
| float | getFusionDistanceValue () const |
| | Get the FusionDistanceValue.
|
| void | setUpViewAcrossAllScreens () |
| | Convinience method for creating slave Cameras and associated GraphicsWindows across all screens.
|
| void | setUpViewInWindow (int x, int y, int width, int height, unsigned int screenNum=0) |
| | Convinience method for a single Camara on a single window.
|
| void | setUpViewOnSingleScreen (unsigned int screenNum=0) |
| | Convinience method for a single Camara associated with a single full screen GraphicsWindow.
|
| bool | containsCamera (const osg::Camera *camera) const |
| | Return true if this view contains a specified camera.
|
| const osg::Camera * | getCameraContainingPosition (float x, float y, float &local_x, float &local_y) const |
| | Get the camera which contains the pointer position x,y specified master cameras window/eye coords.
|
| bool | computeIntersections (float x, float y, osgUtil::LineSegmentIntersector::Intersections &intersections, osg::Node::NodeMask traversalMask=0xffffffff) |
| | Compute intersections between a ray through the specified master cameras window/eye coords and a specified node.
|
| bool | computeIntersections (float x, float y, osg::NodePath &nodePath, osgUtil::LineSegmentIntersector::Intersections &intersections, osg::Node::NodeMask traversalMask=0xffffffff) |
| | Compute intersections between a ray through the specified master cameras window/eye coords and a specified nodePath's subgraph.
|
| virtual void | requestRedraw () |
| | requestRedraw() requests a single redraw.
|
| virtual void | requestContinuousUpdate (bool needed=true) |
| | requestContinousUpdate(bool) is for en/disabling a throw or idle callback to be requested by a GUIEventHandler (typically a MatrixManipulator, though other GUIEventHandler's may also provide functionality).
|
| virtual void | requestWarpPointer (float x, float y) |
| | requestWarpPointer(int,int) is requesting a repositioning of the mouse pointer to a specified x,y location on the window.
|
| void | assignSceneDataToCameras () |
| void | init () |
Protected Types |
typedef std::vector< osg::observer_ptr<
osg::Node > > | ObserveredNodePath |
Protected Member Functions |
| virtual | ~View () |
Protected Attributes |
| osg::ref_ptr< osgViewer::Scene > | _scene |
| osg::ref_ptr< osgGA::EventQueue > | _eventQueue |
| osg::ref_ptr< osgGA::MatrixManipulator > | _cameraManipulator |
| EventHandlers | _eventHandlers |
| ObserveredNodePath | _coordinateSystemNodePath |
| osg::ref_ptr< osg::DisplaySettings > | _displaySettings |
| osgUtil::SceneView::FusionDistanceMode | _fusionDistanceMode |
| float | _fusionDistanceValue |