vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vrecko::Viewer Class Reference

Child class for classic one screen viewer - used for QUAD_STEREO. More...

#include <Viewer.h>

Inheritance diagram for vrecko::Viewer:
vrecko::ViewerBase

Public Member Functions

 Viewer (int stereoMode)
 
virtual osgViewer::ViewerBase * getViewer ()
 
virtual void addView (osgViewer::View *view)
 
virtual void setDisplaySettings (osg::DisplaySettings *ds1, osg::DisplaySettings *ds2=NULL)
 
virtual void setFusionDistance (osgUtil::SceneView::FusionDistanceMode mode, float value=1.0f)
 
virtual void addEventHandler (osgGA::GUIEventHandler *eventHandler)
 
virtual void setSceneData (osg::Node *node)
 
virtual void camera_setViewMatrixAsLookAt (const osg::Vec3d &eye, const osg::Vec3d &center, const osg::Vec3d &up)
 
virtual void setLight (osg::Light *light)
 
virtual osg::Light * getLight ()
 
virtual osg::Camera * getCamera (int screenNum=0)
 
virtual int getStereoMode ()
 
- Public Member Functions inherited from vrecko::ViewerBase
bool done ()
 
void realize ()
 
void setThreadingModel (osgViewer::ViewerBase::ThreadingModel threadingModel)
 
void getWindows (osgViewer::ViewerBase::Windows &windows, bool onlyValid=true)
 
void getCameras (osgViewer::ViewerBase::Cameras &cameras, bool onlyActive=true)
 
void getContexts (osgViewer::ViewerBase::Contexts &contexts, bool onlyValid=true)
 
void frame (double simulationTime=USE_REFERENCE_TIME)
 

Detailed Description

Child class for classic one screen viewer - used for QUAD_STEREO.

Constructor & Destructor Documentation

Viewer::Viewer ( int  stereoMode)

Viewer class

Member Function Documentation

virtual void vrecko::Viewer::addEventHandler ( osgGA::GUIEventHandler *  eventHandler)
inlinevirtual

Add an EventHandler that adds handling of events to the View.

Implements vrecko::ViewerBase.

virtual void vrecko::Viewer::addView ( osgViewer::View *  view)
inlinevirtual

Not supported in this mode

Implements vrecko::ViewerBase.

virtual void vrecko::Viewer::camera_setViewMatrixAsLookAt ( const osg::Vec3d &  eye,
const osg::Vec3d &  center,
const osg::Vec3d &  up 
)
inlinevirtual

Set to the position and orientation of view matrix, using the same convention as gluLookAt.

Implements vrecko::ViewerBase.

virtual osg::Camera* vrecko::Viewer::getCamera ( int  screenNum = 0)
inlinevirtual

Get the master camera of the view.

Implements vrecko::ViewerBase.

virtual osg::Light* vrecko::Viewer::getLight ( )
inlinevirtual

Get the global lighting if assigned.

Implements vrecko::ViewerBase.

virtual int vrecko::Viewer::getStereoMode ( )
inlinevirtual

Get stereo mode

Implements vrecko::ViewerBase.

virtual osgViewer::ViewerBase* vrecko::Viewer::getViewer ( )
inlinevirtual

Implements vrecko::ViewerBase.

virtual void vrecko::Viewer::setDisplaySettings ( osg::DisplaySettings *  ds1,
osg::DisplaySettings *  ds2 = NULL 
)
inlinevirtual

Set the DisplaySettings object associated with this view.

Parameters
ds1first screen
ds2second screen

Implements vrecko::ViewerBase.

virtual void vrecko::Viewer::setFusionDistance ( osgUtil::SceneView::FusionDistanceMode  mode,
float  value = 1.0f 
)
inlinevirtual

Set the FusionDistanceMode and Value. Note, is used only when working in stereo.

Implements vrecko::ViewerBase.

virtual void vrecko::Viewer::setLight ( osg::Light *  light)
inlinevirtual

Get the global light.

Implements vrecko::ViewerBase.

virtual void vrecko::Viewer::setSceneData ( osg::Node *  node)
inlinevirtual

Set the scene graph that the View will use.

Implements vrecko::ViewerBase.


The documentation for this class was generated from the following files: