22 #include <matrix/vlVector.h>
24 #include <osg/ref_ptr>
25 #include <osg/Texture2D>
45 class DtChannelManager;
46 class DtSubmitOverlayCallback;
47 class DtVirtualRealityProvider;
48 class DtVirtualRealityChannel;
72 virtual const std::string& className()
const;
76 virtual bool onStart();
79 virtual bool onStop();
82 virtual bool onTick();
85 virtual bool isVrAvailable();
91 virtual void resetHmd();
94 virtual void triggerAction1();
105 virtual void setMirrorChannel(
const std::string& val);
127 virtual void setObserverForHmd(
const std::string& obsName);
130 void handleEnableMixedRealityChanged(
bool val);
133 void handleEnableRealWorldDepthTestingChanged(
bool val);
151 virtual void installMixedRealityMaskingObject(osg::Group* mountTo, osg::Vec3
offset,
152 bool followObserver,
const std::string& modelFileOrShapeName);
155 virtual void uninstallMixedRealityMaskingObject();
158 virtual void startMasking();
161 virtual void stopMasking();
164 virtual void setOrientationSmoothingEnabled(
bool enabled);
167 virtual void setOrientationSmoothingParams(
double alpha,
double threshold);
200 virtual void handleOverlayDimensionsChanged(
float val);
203 virtual void handleResolutionScaleChanged(
int scale);
206 virtual void handleEnableVRSChanged(
bool enable);
210 void installResetKeyMap();
214 void installAction1KeyMap();
217 virtual void handleEnabledChanged(
bool val);
220 virtual void handleObserverLost(
DtObserver* obs);
228 virtual bool getPose(
DtVector& position,
DtQuat& orienation,
int index)
const;
231 virtual void updatePoseInformation();
234 void slot_hdrEnabledChanged(
bool enabled);
240 void slot_windowToBeDestroyed(
DtWindow* window);
Diagonal crossing liens.
Definition: DtTacticalGraphicUtilities.h:93
DtWindowConfiguration myHmdWindowConfig
Definition: DtVirtualRealityDriver.h:249
Abstract Base class.
Definition: DtWindow.h:25
double myOriFilterAlpha
Definition: DtVirtualRealityDriver.h:274
Contains DLL export macros.
DtVrRenderMode
Virtual reality render mode.
Definition: vrvVirtualReality.h:52
bool myOriSmoothingEnabled
Definition: DtVirtualRealityDriver.h:273
DtDe & myDe
Definition: DtVirtualRealityDriver.h:243
boost::signalslib::signal< void()> signal_vrResolutionChanged
Signal emitted when the resolution changes.
Definition: DtVirtualRealityDriver.h:180
DtVrEyeToChannelMap myChannels
Definition: DtVirtualRealityDriver.h:252
Contains makVrv::DtDe class.
This owns a list of channel configurations.
Definition: DtWindowConfiguration.h:28
std::string myMirrorObserverRestore
Definition: DtVirtualRealityDriver.h:267
Contains makArchives::DtVirtualRealitySettingsRecord class.
osg::ref_ptr< osg::Texture2D > myOverlayDepthTexture
Definition: DtVirtualRealityDriver.h:260
This class provides the OSG-specific implementation of a DtChannel.
Definition: DtOsgChannel.h:52
A driver that manages virtual reality HMD and input devices.
Definition: DtVirtualRealityDriver.h:52
boost::signalslib::signal< void()> signal_vrOverlayChanged
Signal emitted when the overlay dimensions change.
Definition: DtVirtualRealityDriver.h:183
#define DT_DLL_VRVVR
Definition: vrvVirtualReality.h:19
DtMirroring
Definition: DtVirtualRealitySettingsRecord.h:28
DtEye
A virtual reality eye.
Definition: vrvVirtualReality.h:37
DtSignalConnectionManager myConnections
Definition: DtVirtualRealityDriver.h:281
The abstract Channel Class.
Definition: DtChannel.h:35
A facade for a DtObserverObject.
Definition: DtObserver.h:37
Contains makVrv:DtAgentManager class.
The DtDriver is an abstract class. Developers derive from this to create logic that "directs" things ...
Definition: DtDriver.h:31
DtVirtualRealityChannel * myStereoOverlayChannel
Definition: DtVirtualRealityDriver.h:269
DtObserver * myHmdObserver
Definition: DtVirtualRealityDriver.h:247
vrvVirtualReality::DtVrRenderMode myRenderMode
Definition: DtVirtualRealityDriver.h:254
boost::signalslib::signal< void()> signal_reset
Signal emitted when the VR system is reset.
Definition: DtVirtualRealityDriver.h:174
This owns a list of window configurations.
Definition: DtDisplayConfiguration.h:47
double myLastTime
Definition: DtVirtualRealityDriver.h:279
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
An abstract interface that provides VR System API services. Providers are created and provided to the...
Definition: DtVirtualRealityProvider.h:47
Contains makVrv::DtQuat class.
A VRV channel that represents the eyes of the HMD A Virtual Reality channel can render in a few diffe...
Definition: DtVirtualRealityChannel.h:30
The DtAgentManager manages the distributed scene object framework. This includes the objects and upda...
Definition: DtAgentManager.h:38
std::map< vrvVirtualReality::DtEye, DtVirtualRealityChannel * > DtVrEyeToChannelMap
Definition: DtVirtualRealityDriver.h:251
Contains makVrv:DtDriver class.
bool myUseMixedRealityMask
Definition: DtVirtualRealityDriver.h:256
Base class for handling DtChannels. Derived classes should override the tick() method and advance the...
Definition: DtChannelManager.h:32
double myOriFilterThreshold
Definition: DtVirtualRealityDriver.h:275
An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel...
Definition: DtSubmitOverlayCallback.h:30
boost::signalslib::signal< void(bool)> signal_vrRunningChaned
Signal emitted when the VR system is started or stoped.
Definition: DtVirtualRealityDriver.h:177
osg::ref_ptr< osg::MatrixTransform > myOverlayQuad
Definition: DtVirtualRealityDriver.h:270
Base class to provide boost signal/slot management.
osg::Quat mySmoothedOri
Definition: DtVirtualRealityDriver.h:277
bool myOriSmoothingInit
Definition: DtVirtualRealityDriver.h:276
DtOsgWindow * myHmdWindow
Definition: DtVirtualRealityDriver.h:248
makArchives::DtVirtualRealitySettingsRecord::DtMirroring myMirroring
Definition: DtVirtualRealityDriver.h:264
DtVirtualRealityProvider * myVrProvider
Definition: DtVirtualRealityDriver.h:244
osg::ref_ptr< osg::Texture2D > myOverlayTexture
Definition: DtVirtualRealityDriver.h:259
osg::ref_ptr< DtSubmitOverlayCallback > myOverlaySubmitCallback
Definition: DtVirtualRealityDriver.h:261
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
boost::signalslib::signal< void()> signal_tick
Signal emitted after the driver's tick. Useful for doing anything with the VR system that needs to ha...
Definition: DtVirtualRealityDriver.h:171
A utility Quaternion class.
Definition: DtQuat.h:19
osg::Quat myLastHmdOri
Definition: DtVirtualRealityDriver.h:278
voidpf uLong offset
Definition: ioapi.h:42
A basic OSG display window, used to get the osg context for a display window.
Definition: DtOsgWindow.h:36
DtOsgChannel * myMirrorChannel
Definition: DtVirtualRealityDriver.h:266
std::string myMirrorChannelName
Definition: DtVirtualRealityDriver.h:265