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

Abstract VRECKO viewer class. More...

#include <Viewer.h>

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

Public Member Functions

virtual osgViewer::ViewerBase * getViewer ()=0
 
virtual void addView (osgViewer::View *view)=0
 
virtual void setDisplaySettings (osg::DisplaySettings *ds1, osg::DisplaySettings *ds2=NULL)=0
 
virtual void setFusionDistance (osgUtil::SceneView::FusionDistanceMode mode, float value=1.0f)=0
 
virtual void addEventHandler (osgGA::GUIEventHandler *eventHandler)=0
 
virtual void setSceneData (osg::Node *node)=0
 
virtual void camera_setViewMatrixAsLookAt (const osg::Vec3d &eye, const osg::Vec3d &center, const osg::Vec3d &up)=0
 
virtual void setLight (osg::Light *light)=0
 
virtual osg::Light * getLight ()=0
 
virtual osg::Camera * getCamera (int screenNum=0)=0
 
virtual int getStereoMode ()=0
 
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

Abstract VRECKO viewer class.

Member Function Documentation

virtual void vrecko::ViewerBase::addEventHandler ( osgGA::GUIEventHandler *  eventHandler)
pure virtual

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

Implemented in vrecko::CompositeViewer, and vrecko::Viewer.

virtual void vrecko::ViewerBase::addView ( osgViewer::View *  view)
pure virtual

Adds new view to existing viewer

Implemented in vrecko::CompositeViewer, and vrecko::Viewer.

virtual void vrecko::ViewerBase::camera_setViewMatrixAsLookAt ( const osg::Vec3d &  eye,
const osg::Vec3d &  center,
const osg::Vec3d &  up 
)
pure virtual

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

Implemented in vrecko::CompositeViewer, and vrecko::Viewer.

bool vrecko::ViewerBase::done ( )
inline

Return true if viewer's work is done and should exit the frame loop.

void vrecko::ViewerBase::frame ( double  simulationTime = USE_REFERENCE_TIME)
inline
virtual osg::Camera* vrecko::ViewerBase::getCamera ( int  screenNum = 0)
pure virtual

Get the master camera of the view.

Implemented in vrecko::CompositeViewer, and vrecko::Viewer.

void vrecko::ViewerBase::getCameras ( osgViewer::ViewerBase::Cameras &  cameras,
bool  onlyActive = true 
)
inline
void vrecko::ViewerBase::getContexts ( osgViewer::ViewerBase::Contexts &  contexts,
bool  onlyValid = true 
)
inline
virtual osg::Light* vrecko::ViewerBase::getLight ( )
pure virtual

Get the global lighting if assigned.

Implemented in vrecko::CompositeViewer, and vrecko::Viewer.

virtual int vrecko::ViewerBase::getStereoMode ( )
pure virtual

Get stereo mode

Implemented in vrecko::CompositeViewer, and vrecko::Viewer.

virtual osgViewer::ViewerBase* vrecko::ViewerBase::getViewer ( )
pure virtual
void vrecko::ViewerBase::getWindows ( osgViewer::ViewerBase::Windows &  windows,
bool  onlyValid = true 
)
inline
void vrecko::ViewerBase::realize ( )
inline

Set up windows and associated threads.

virtual void vrecko::ViewerBase::setDisplaySettings ( osg::DisplaySettings *  ds1,
osg::DisplaySettings *  ds2 = NULL 
)
pure virtual

Set the DisplaySettings object associated with this view.

Parameters
ds1first screen
ds2second screen

Implemented in vrecko::CompositeViewer, and vrecko::Viewer.

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

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

Implemented in vrecko::CompositeViewer, and vrecko::Viewer.

virtual void vrecko::ViewerBase::setLight ( osg::Light *  light)
pure virtual

Get the global light.

Implemented in vrecko::CompositeViewer, and vrecko::Viewer.

virtual void vrecko::ViewerBase::setSceneData ( osg::Node *  node)
pure virtual

Set the scene graph that the View will use.

Implemented in vrecko::CompositeViewer, and vrecko::Viewer.

void vrecko::ViewerBase::setThreadingModel ( osgViewer::ViewerBase::ThreadingModel  threadingModel)
inline

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