OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
opencover::VRViewer Class Reference

#include <VRViewer.h>

Inheritance diagram for opencover::VRViewer:
Inheritance graph
[legend]
Collaboration diagram for opencover::VRViewer:
Collaboration graph
[legend]

Public Member Functions

void setUpRenderingSupport ()
 
virtual void update ()
 
virtual void frame ()
 
void handleEvents ()
 
void redrawHUD (double interval)
 
virtual void startThreading ()
 
void addCamera (osg::Camera *camera)
 
void removeCamera (osg::Camera *camera)
 
void addPreRenderCamera (osg::Camera *camera)
 
void removePreRenderCamera (osg::Camera *camera)
 
void setClearColor (const osg::Vec4 &color)
 
void setRenderToTexture (bool)
 
osg::Texture2D * getTexture ()
 
void flipStereo ()
 
void setFrustumAndView (int i)
 
void setSeparation (float stereoSep)
 
 VRViewer ()
 
virtual ~VRViewer ()
 
void config ()
 
virtual void getCameras (Cameras &cameras, bool onlyActive=true)
 
virtual void getContexts (Contexts &contexts, bool onlyValid=true)
 
virtual void getScenes (Scenes &scenes, bool onlyValid=true)
 
void updateViewerMat (const osg::Matrix &mat)
 
void setViewerMat (osg::Matrix &mat)
 
osg::Matrix & getViewerMat ()
 
osg::Vec3 & getViewerPos ()
 
osg::Vec3 & getInitialViewerPos ()
 
void setInitialViewerPos (osg::Vec3 &po)
 
void culling (bool enable, osg::CullSettings::CullingModeValues mode=osg::CullSettings::ENABLE_ALL_CULLING, bool once=false)
 
void forceCompile ()
 
angleStructgetAngleStruct ()
 
float getSeparation ()
 
osg::Vec4 getBackgroundColor ()
 
void statistics (bool enable)
 
void overwriteViewAndProjectionMatrix (bool state)
 
bool isMatrixOverwriteOn ()
 
osg::Node::NodeMask getCullMask ()
 
osg::Node::NodeMask getCullMaskLeft ()
 
osg::Node::NodeMask getCullMaskRight ()
 

Static Public Member Functions

static VRViewerinstance ()
 
static void freezeCallback (void *viewer, buttonSpecCell *spec)
 
static void stereoSepCallback (void *viewer, buttonSpecCell *spec)
 
static void orthographicCallback (void *, buttonSpecCell *spec)
 
static void statisticsCallback (void *sceneGraph, buttonSpecCell *spec)
 

Public Attributes

std::list< osg::ref_ptr
< osg::Camera > > 
myCameras
 
std::list< osg::ref_ptr
< osg::Camera > > 
myPreRenderCameras
 
bool clearWindow
 

Static Public Attributes

static int unsyncedFrames
 

Friends

class OpenCOVER
 

Constructor & Destructor Documentation

opencover::VRViewer::VRViewer ( )
virtual opencover::VRViewer::~VRViewer ( )
virtual

Member Function Documentation

void opencover::VRViewer::addCamera ( osg::Camera *  camera)
void opencover::VRViewer::addPreRenderCamera ( osg::Camera *  camera)
void opencover::VRViewer::config ( )
void opencover::VRViewer::culling ( bool  enable,
osg::CullSettings::CullingModeValues  mode = osg::CullSettings::ENABLE_ALL_CULLING,
bool  once = false 
)
void opencover::VRViewer::flipStereo ( )
void opencover::VRViewer::forceCompile ( )
virtual void opencover::VRViewer::frame ( )
virtual

Dispatch the cull and draw for each of the Camera's for this frame.

static void opencover::VRViewer::freezeCallback ( void *  viewer,
buttonSpecCell spec 
)
static
angleStruct* opencover::VRViewer::getAngleStruct ( )
inline
osg::Vec4 opencover::VRViewer::getBackgroundColor ( )
inline
virtual void opencover::VRViewer::getCameras ( Cameras &  cameras,
bool  onlyActive = true 
)
virtual
virtual void opencover::VRViewer::getContexts ( Contexts &  contexts,
bool  onlyValid = true 
)
virtual
osg::Node::NodeMask opencover::VRViewer::getCullMask ( )
osg::Node::NodeMask opencover::VRViewer::getCullMaskLeft ( )
osg::Node::NodeMask opencover::VRViewer::getCullMaskRight ( )
osg::Vec3& opencover::VRViewer::getInitialViewerPos ( )
inline
virtual void opencover::VRViewer::getScenes ( Scenes &  scenes,
bool  onlyValid = true 
)
virtual
float opencover::VRViewer::getSeparation ( )
inline
osg::Texture2D* opencover::VRViewer::getTexture ( )
inline
osg::Matrix& opencover::VRViewer::getViewerMat ( )
inline
osg::Vec3& opencover::VRViewer::getViewerPos ( )
inline
void opencover::VRViewer::handleEvents ( )
static VRViewer* opencover::VRViewer::instance ( )
static
bool opencover::VRViewer::isMatrixOverwriteOn ( )
inline
static void opencover::VRViewer::orthographicCallback ( void *  ,
buttonSpecCell spec 
)
static
void opencover::VRViewer::overwriteViewAndProjectionMatrix ( bool  state)
inline
void opencover::VRViewer::redrawHUD ( double  interval)
void opencover::VRViewer::removeCamera ( osg::Camera *  camera)
void opencover::VRViewer::removePreRenderCamera ( osg::Camera *  camera)
void opencover::VRViewer::setClearColor ( const osg::Vec4 &  color)
void opencover::VRViewer::setFrustumAndView ( int  i)
void opencover::VRViewer::setInitialViewerPos ( osg::Vec3 &  po)
inline
void opencover::VRViewer::setRenderToTexture ( bool  )
void opencover::VRViewer::setSeparation ( float  stereoSep)
void opencover::VRViewer::setUpRenderingSupport ( )
void opencover::VRViewer::setViewerMat ( osg::Matrix &  mat)
inline
virtual void opencover::VRViewer::startThreading ( )
virtual

Start any threads required by the viewer.

void opencover::VRViewer::statistics ( bool  enable)
static void opencover::VRViewer::statisticsCallback ( void *  sceneGraph,
buttonSpecCell spec 
)
static
static void opencover::VRViewer::stereoSepCallback ( void *  viewer,
buttonSpecCell spec 
)
static
virtual void opencover::VRViewer::update ( )
virtual

Updated the scene. Handle any queued up events, do an update traversal and set the CameraGroup's setViewByMatrix if any camera manipulators are active.

void opencover::VRViewer::updateViewerMat ( const osg::Matrix &  mat)

Friends And Related Function Documentation

friend class OpenCOVER
friend

Member Data Documentation

bool opencover::VRViewer::clearWindow
std::list<osg::ref_ptr<osg::Camera> > opencover::VRViewer::myCameras
std::list<osg::ref_ptr<osg::Camera> > opencover::VRViewer::myPreRenderCameras
int opencover::VRViewer::unsyncedFrames
static

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