gramods
|
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>
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... | |
![]() | |
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... | |
![]() | |
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 gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
![]() | |
static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
Additional Inherited Members | |
![]() | |
void | populateViewSettings (ViewSettings &settings) |
Adds the dispatcher's local renderers and viewpoint, if set. More... | |
![]() | |
Node::list | nodes |
std::vector< std::shared_ptr< Viewpoint > > | viewpoints |
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.
|
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.
void gramods::gmGraphics::HmdView::setOpenVR | ( | std::shared_ptr< gmCore::OpenVR > | openvr | ) |
Set the OpenVR instance.
XML-attribute: openVR
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.
|
overridevirtual |
Propagates the specified visitor.
Reimplemented from gramods::gmCore::Object.