![]() |
VR-Forces 5.0.3 Developer's Guide
|
A driver that manages virtual reality HMD and input devices.

Public Attributes | |
| boost::signalslib::signal< void()> | signal_tick |
| boost::signalslib::signal< void()> | signal_reset |
| boost::signalslib::signal < void(bool)> | signal_vrRunningChaned |
| boost::signalslib::signal< void()> | signal_vrResolutionChanged |
| boost::signalslib::signal< void()> | signal_vrOverlayChanged |
Protected Types | |
| typedef std::map < vrvVirtualReality::DtEye, DtVirtualRealityChannel * > | DtVrEyeToChannelMap |
Private Member Functions | |
| DtVirtualRealityDriver () | |
| DtVirtualRealityDriver (const DtVirtualRealityDriver &orig) | |
| DtVirtualRealityDriver & | operator= (const DtVirtualRealityDriver &) |
|
protected |
|
private |
prevent default constructor
|
private |
prevent copy construction
| makVrv::DtVirtualRealityDriver::DtVirtualRealityDriver | ( | DtAgentManager & | am | ) |
CTOR.
|
virtual |
DTOR.
|
private |
prevent assignment
|
virtual |
name of this driver. Returns "DtVirtualRealityDriver"
Implements makVrv::DtDriver.
|
virtual |
Starts the VR system and creates an HMD window/channels and begins rendering to the HMD. This will fail if an HMD is not present or cannot be initialized.
Implements makVrv::DtDriver.
|
virtual |
Stops the VR system and destroys the HMD window/channels and stops rendering to the HMD.
Implements makVrv::DtDriver.
|
virtual |
Ticks the VR system and updates the position/orientation of the HMD and controllers.
Implements makVrv::DtDriver.
|
virtual |
if VR is avialable
|
virtual |
return the render mode being used
|
virtual |
Resets the sitting position of HMD.
|
virtual |
trigger generic action for the provider
|
virtual |
Enables/disables mirroring of an HMD eye channel on a monitor so other people can see what the user of the HMD is seeing.
|
virtual |
Get the current state of mirroring the HMD to a monitor.
|
virtual |
Sets the display channel using a window and channel name (i.e. "Window 1:Channel 1") that will mirror what the HMD is seeing.
|
virtual |
Get the overlay callback that will called to display an overlay. This can be used to adjust the offset of the overlay window. This will return 0 if the driver is not started.
|
virtual |
Get the HMD position relative to the HMD Observer in an East-North-Up coordinate system. This will return false and a zero vector and identity quaternion if the HMD is not present.
|
virtual |
get an eye channel. This will return null if the driver has not started
|
virtual |
get the mirror channel. This will return null if the driver has not started
|
virtual |
Get the HMD Observer that represents the Head of the VR system. This can return 0 if there is no HMD system or VR is not enabled.
|
virtual |
instead of using the default HMD observer, use another existing observer. If the string "" or the observer cannot be found, then the default HMD Observer is used.
| void makVrv::DtVirtualRealityDriver::handleEnableMixedRealityChanged | ( | bool | val | ) |
handle changing the enable mixed reality mask setting
| void makVrv::DtVirtualRealityDriver::handleEnableRealWorldDepthTestingChanged | ( | bool | val | ) |
handle changing the enable real world depth testing setting
|
virtual |
set thes provider used by the driver for communicating with the virtual reality device
|
virtual |
returns the VR subsystem pointer. May return 0 if the VR system is not initialized
|
virtual |
returns the overlay texture to optionally display in the mirror channel
|
virtual |
returns the channel which has it's overlay camera active and rendering, left eye or multiview eye in multiview mode
|
virtual |
initialize an the overlay of a given channel to be displayed in the HMD
|
virtual |
create and add a mixed reality masking object into the scene
|
virtual |
unistall mixed reality masking object and delete
|
virtual |
start masking, causes the mask to render and position to be updated
|
virtual |
stop masking, causes the mask to be remove and stops position updates
|
virtual |
enable/disable smoothing of the hmd orientation
|
virtual |
set the smoothing alpha and threshold for hmd orienation smoothing
|
protectedvirtual |
find a window for the HMD channels to live in.
|
protectedvirtual |
Create a channel for the given eye of an HMD. Takes an optional prototype display settings that will have an HMD_Window defined with settings otherwise defaults are used.
|
protectedvirtual |
install virtual program shaders and uniforms for the channel
|
protectedvirtual |
uninstall the overlay callbacks that draw the channel's overlay in the HMD
|
protectedvirtual |
handle the overlay dimensions changing (width, aspect, distance)
|
protectedvirtual |
handle the resolution scale changing
|
protectedvirtual |
handle the VRS enable state changing
|
protected |
register reset function with key map manager and bind to keypad minus key if available. If the key is not available, the user will need to manually bind to an available key.
|
protected |
register VR action1 function with key map manager and bind to f9 if available. If the key is not available, the user will need to manually bind to an available key.
|
protectedvirtual |
callback for enabling/disabling VR.
|
protectedvirtual |
callback for enabling/disabling VR.
|
protectedvirtual |
Update the mirror texture to be displayed on a channel, or turn it off.
|
protectedvirtual |
get pose information for given object (HMD, controller, or tracker) if this fails to find the given object by index, it will return a zero vector and identity quat the HMD is always index 0.
|
protectedvirtual |
called to update the pose information from the VR system
|
protected |
handle the HDR enabled state changing
|
protected |
, listen for channel destroyed in case the mirror channel is destroyed
|
protected |
Listen for window destroyed in case the VR window is destroyed.
| boost::signalslib::signal<void()> makVrv::DtVirtualRealityDriver::signal_tick |
Signal emitted after the driver's tick. Useful for doing anything with the VR system that needs to happen every frame when VR is active.
| boost::signalslib::signal<void()> makVrv::DtVirtualRealityDriver::signal_reset |
Signal emitted when the VR system is reset.
| boost::signalslib::signal<void(bool)> makVrv::DtVirtualRealityDriver::signal_vrRunningChaned |
Signal emitted when the VR system is started or stoped.
| boost::signalslib::signal<void()> makVrv::DtVirtualRealityDriver::signal_vrResolutionChanged |
Signal emitted when the resolution changes.
| boost::signalslib::signal<void()> makVrv::DtVirtualRealityDriver::signal_vrOverlayChanged |
Signal emitted when the overlay dimensions change.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |