gramods
Classes | Public Member Functions | Static Public Attributes | List of all members
gramods::gmGraphics::HmdView Class Reference

View that reads off head tracking and calls the renderers to output the rendered contents to a HMD via OpenVR, and also displays the results in the current view. More...

#include <HmdView.hh>

Inheritance diagram for gramods::gmGraphics::HmdView:
Inheritance graph
[legend]
Collaboration diagram for gramods::gmGraphics::HmdView:
Collaboration graph
[legend]

Classes

struct  Impl
 

Public Member Functions

void renderFullPipeline (ViewSettings settings) override
 Dispatches specified renders, both method argument and class members. More...
 
void traverse (Visitor *visitor) override
 Propagates the specified visitor. More...
 
void setShowEye (size_t t)
 Sets if left eye (0, default), right eye (1) or both eyes (2) should be shown in the view. More...
 
void setOpenVR (std::shared_ptr< gmCore::OpenVR > openvr)
 Set the OpenVR instance. More...
 
- Public Member Functions inherited from gramods::gmGraphics::ViewBase
void addNode (std::shared_ptr< Node > node)
 Adds a scenegraph to the view. More...
 
void setViewpoint (std::shared_ptr< Viewpoint > viewpoint)
 Sets the viewpoint to use in the views rendered by this ViewBase. More...
 
void addViewpoint (std::shared_ptr< Viewpoint > viewpoint)
 Adds a viewpoint to use in the views rendered by this ViewBase. More...
 
void traverse (Visitor *visitor) override
 Propagates the specified visitor. More...
 
- Public Member Functions inherited from gramods::gmCore::Object
 Object ()
 Initializes internal data. More...
 
virtual ~Object ()
 Cleaning up internal data. More...
 
virtual void initialize ()
 Called to initialize the Object. More...
 
virtual void accept (Visitor *visitor)
 Calls the visitors apply method with this as argument. More...
 
bool isInitialized ()
 Returns true if the Object is initialized. More...
 

Static Public Attributes

static gramods::gmCore::OFactory::OFactoryInformation _gm_ofi
 
- Static Public Attributes inherited from gramods::gmGraphics::View
static gramods::gmCore::OFactory::OFactoryInformation _gm_ofi
 
- Static Public Attributes inherited from gramods::gmGraphics::ViewBase
static gramods::gmCore::OFactory::OFactoryInformation _gm_ofi
 

Additional Inherited Members

- Protected Member Functions inherited from gramods::gmGraphics::ViewBase
void populateViewSettings (ViewSettings &settings)
 Adds the dispatcher's local renderers and viewpoint, if set. More...
 
- Protected Attributes inherited from gramods::gmGraphics::ViewBase
Node::list nodes
 
std::vector< std::shared_ptr< Viewpoint > > viewpoints
 

Detailed Description

View that reads off head tracking and calls the renderers to output the rendered contents to a HMD via OpenVR, and also displays the results in the current view.

Member Function Documentation

◆ renderFullPipeline()

void gramods::gmGraphics::HmdView::renderFullPipeline ( ViewSettings  settings)
overridevirtual

Dispatches specified renders, both method argument and class members.

The default implementation calls the renderers but with a default Camera, and should be overloaded by sub classes to implement their respective effects.

Reimplemented from gramods::gmGraphics::ViewBase.

◆ setOpenVR()

void gramods::gmGraphics::HmdView::setOpenVR ( std::shared_ptr< gmCore::OpenVR openvr)

Set the OpenVR instance.

XML-attribute: openVR

◆ setShowEye()

void gramods::gmGraphics::HmdView::setShowEye ( size_t  t)

Sets if left eye (0, default), right eye (1) or both eyes (2) should be shown in the view.

◆ traverse()

void gramods::gmGraphics::HmdView::traverse ( Visitor visitor)
overridevirtual

Propagates the specified visitor.

See also
Object::Visitor

Reimplemented from gramods::gmCore::Object.


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