|
| virtual void | resetSensor () |
| | Resets the HMD's sensor. More...
|
| |
| virtual void | onPreTick () |
| | Calls into the OVR SDK to begin a new frame & sets myFrameStarted. More...
|
| |
| virtual void | onPostTick () |
| | Calls into the OVR SDK to end the frame & resets myFrameStarted. More...
|
| |
| virtual void | onShutdown () |
| | Sets myOculusInitialized to false and zeros the myHMD pointer. More...
|
| |
virtual std::vector< const
osg::Camera * > | getShadowableCameras () const |
| | Add the RTT cameras to the list of shadowable cameras. More...
|
| |
| virtual DtQuat | hmdOrientation () |
| |
| virtual DtVector | hmdPosition () |
| |
|
Calls ovrSession_GetLastError to get any errors from the OVR SDK and outputs them as warnings
Setting this to false will disable mirroring and destroy myMirrorTexture. In most cases this should not be called directly and the state should instead be set via DtOculusSettingsManager::setMirroring so that the settings file is in sync.
|
| virtual void | setMirroring (int view) |
| |
| virtual int | mirroring () |
| |
| virtual | ~DtOsgChannel () |
| | DTOR. More...
|
| |
| virtual void | setSensorName (const std::string &sensorName) |
| | Set the name of the sensor to use. More...
|
| |
| virtual void | setClearColor (float r, float g, float b, float a) |
| | Set the clear color for the channel. More...
|
| |
| virtual void | setWindow (DtWindow *view) |
| | Set the window the channel is displayed on. More...
|
| |
| virtual const DtWindow * | window () const |
| | Get the window the channel is displayed on. More...
|
| |
| virtual void | setViewport (int x, int y, int width, int height) |
| | Set the viewport. More...
|
| |
| virtual void | clearFrameBufferIfChanged () |
| | If something that would mess with the area of the frame buffer outside the current channel needs to be cleaned up then this fucntion will clear the framebuffer. More...
|
| |
| virtual void | getViewport (int &x, int &y, int &width, int &height) const |
| | Get the viewport. More...
|
| |
| virtual void | setCameraPosition (double x, double y, double z) |
| | Set the camera position. More...
|
| |
| virtual void | setCameraOrientation (double psi, double theta, double phi) |
| | Set the camera orientation. More...
|
| |
| virtual void | setCameraPositionAndOrientation (double x, double y, double z, double psi, double theta, double phi) |
| | Set camera position and orientation. More...
|
| |
| virtual void | setCameraPositionAndOrientation (osg::Vec3d &pos, osg::Quat &orient) |
| |
| virtual void | getCameraPositionAndOrientation (osg::Vec3d &position, osg::Quat &rotation) const |
| | Get the camera position and orientation. More...
|
| |
| virtual void | setChannelEnabled (bool enabled) |
| | Enable/Disable the channel. More...
|
| |
| virtual bool | channelEnabled () const |
| | Enable/Disable the channel. More...
|
| |
| virtual void | connectToObserver () |
| | Set up based on current observer parameters, such as modelSet and is2D. More...
|
| |
| virtual osgViewer::View & | view () |
| | Window accessor. More...
|
| |
| virtual DtCameraNode * | sceneCamera () |
| | Accessor for the 3D camera. More...
|
| |
| virtual const DtCameraNode * | sceneCamera () const |
| | Accessor for the 3D camera. More...
|
| |
| virtual DtCameraNode * | rttCamera () const |
| | Accessor for RTT camera. More...
|
| |
| virtual DtCameraNode * | activeMainCamera () |
| | Accessor for which ever camera is currently the main render camera. More...
|
| |
| virtual const DtCameraNode * | activeMainCamera () const |
| | Accessor for which ever camera is currently the main render camera. More...
|
| |
| virtual DtCameraNode * | overlayCamera () |
| | Accessor for the 2D overlay camera. More...
|
| |
| virtual DtCameraNode * | normalizedOverlayCamera () |
| | Accessor for the normalized 2D overlay camera. More...
|
| |
| virtual void | setRenderToTexture (bool enabled) |
| | Toggles whether this channel renders the scene to a texture. More...
|
| |
| virtual void | setRenderToTextureFormat (int format, int sourceFormat, int sourceType) |
| | sets the render to texture format for the rttCamera, this was separated from the setRenderToTexture format function so that the SensorFX module could use HDR rendere to texture More...
|
| |
virtual osg::ref_ptr
< osg::Texture > | allocateRenderTexture (int width, int height) const |
| | Allocate a new texture and set its size, allows custom channel (DtVirtualRealityChannel) to override. More...
|
| |
virtual osg::ref_ptr
< osg::Texture > | getRenderTexture () |
| | Gets the texture the scene was rendered to, if setRenderToTexture was enabled. More...
|
| |
virtual osg::ref_ptr
< osg::Texture > | getOcculsionTexture () |
| |
virtual osg::ref_ptr
< osg::Texture > | getDepthTexture () const |
| | Returns the depth texture for this channel. More...
|
| |
| virtual void | depthTextureUsesStencilBuffer (bool useStencil) |
| | Set the depth texture in RTT mode to use a stencil buffer. More...
|
| |
| virtual bool | depthTextureUsesStencilBuffer () |
| | Return if the depth texture should be using stencil buffer. More...
|
| |
| virtual void | setEnablePostProcessors (bool enable) |
| |
| virtual bool | getEnablePostProcessors () |
| |
| virtual bool | useOldChannelOffsetCalcuation () const |
| |
| virtual void | setUseOldChannelOffsetCalcuation (bool enable) |
| |
| virtual bool | forceHdrLuminanceOverride () |
| | should the HDR post processor force the luminance scalar to 1.0 for this channel used for when the sky is turned off (XR mode) More...
|
| |
| virtual void | setForceHdrLuminanceOverride (bool force) |
| |
| virtual void | clearStateGraph (void) |
| | osg maintains an internal cache of StateSets in a StateGraph More...
|
| |
| virtual void | setEnableHdrPassthrough (bool flag) |
| | getter/setter for the whether the HDR post processor More...
|
| |
| virtual bool | enableHdrPassthrough () |
| |
| virtual void | setHdrOutputScale (float scale) |
| | set the hdr output scale to use with this channel it does not necessarily match the shared state when correlation is turned off More...
|
| |
| virtual float | hdrOutputScale () |
| | get the hdr output scale to use with this channel it does not necessarily match the shared state when correlation is turned off More...
|
| |
| virtual void | screenCapture () |
| | Takes Screen capture of the current channel. More...
|
| |
| virtual void | setOcclusionTextureEnabled (bool enabled) |
| | enable or disable the creation of an occlusion texture, used for some screen space effects More...
|
| |
| virtual void | initOcclusionTexture () |
| | init occlusion texture, used for some screen space effects More...
|
| |
| virtual int | shadowQuality () const |
| |
| *virtual void | setProjectionResizePolicy (DtChannelConfiguration::ProjectionResizePolicy policy) |
| | Set the policy used to determine if and how the projection matrix should be adjusted on window resizes. More...
|
| |
| virtual void | projectionUnitsToFrustum (DtChannelConfiguration::ProjectionUnits units, double &left, double zNear, double &right, double &top, double &bottom) |
| |
| virtual void | connectChannelToScene () |
| | Set the channel's scene graph root. More...
|
| |
| virtual bool | processMouseEvent (const DtMouseEvent &ev) |
| | attempt to handle a mouse event with the channel's overlay More...
|
| |
| virtual bool | processKeyboardEvent (const DtKeyEvent &ev) |
| | attempt to handle a keyboard event with the channel's overlay More...
|
| |
| virtual void | getWorldToWindowMatrix (osg::Matrix &worldToWindowMatrix) const |
| | Get the channel's dynamic overlay if any. More...
|
| |
| virtual void | moveMouseToScreenLocation (float screenX, float screenY) |
| | Move the mouse pointer to the specified location in screen coordinates. More...
|
| |
| virtual void | projectToScreen (double dbX, double dbY, double dbZ, double &screenX, double &screenY, double &screenZ) |
| | Project a point from world coordinates to screen coordinates. More...
|
| |
| virtual void | projectToWorld (double screenX, double screenY, double &dbX, double &dbY, double &dbZ) |
| | project the local world coordinates given screen coordinates More...
|
| |
| virtual DtIntersectorResult | findWorldIntersection (double screenX, double screenY) |
| | project the screen coordinates and intersects the world More...
|
| |
| virtual const std::string & | name () |
| | Returns the channel's name as defined in its configuration. More...
|
| |
| virtual void | addPostProcessEffect (const std::string &postProcessorEffect) |
| | Add post processor effect names to be enabled during the DtOsgChannel update function The order of the effects is set in the DtPostProcessorFactory. More...
|
| |
| virtual void | removePostProcessEffect (const std::string &postProcessorEffect) |
| | Remove post processor effect names to be enabled during the DtOsgChannel update function The order of the effects is set in the DtPostProcessorFactory. More...
|
| |
| virtual void | set3DCullVisitorParams (DtOsgCullVisitorParameters *params) |
| |
| virtual void | set2DCullVisitorParams (DtOsgCullVisitorParameters *params) |
| |
| virtual | ~DtChannel () |
| | DTOR. More...
|
| |
| DtObserverObject * | findObserver () const |
| | Attempt to get the observer for the channel. More...
|
| |
| unsigned int | currentModelSet () const |
| | Get the current model set. More...
|
| |
| const DtChannelConfiguration & | configuration () const |
| | Get the configuration. More...
|
| |
| virtual void | setObserverName (const std::string &observerName) |
| | set the name of the observer to use, and attempt to connect More...
|
| |
*virtual
DtChannelConfiguration::ProjectionResizePolicy | projectionResizePolicy () const |
| | Get the policy used to determine if and how the projection matrix should be adjusted on window resizes. More...
|
| |
| std::string & | observerName () |
| | Retrieve the observer name for this channel. More...
|
| |
|
| | DtOculusChannel (DtDe &de, DtOsgWindow *window, DtChannelConfiguration &config) |
| | Zeros out the memory for myEyeRenderPose, myEyeRenderDesc, myEyeFov and myEyeTexture. More...
|
| |
| virtual | ~DtOculusChannel () |
| | DTOR. More...
|
| |
| virtual void | update () |
| | Sets up the cull visitor & updates the RTT cameras. More...
|
| |
| virtual void | updateProjection () |
| | Overridden to prevent the projection matrix on my2DCamera from being reset based on the window's viewport size. More...
|
| |
| virtual void | projectFor3D () |
| | Projects frustum matrix for 3D viewing based on the field of view returned from the HMD. More...
|
| |
| virtual void | setupCullVisitor (const osg::observer_ptr< osg::Camera > &camera) |
| | Attaches a DtOsgCullVistorCallback to the RTT cameras. More...
|
| |
| osg::Camera * | createRTTCamera (int eye) |
| | Sets up an RTT camera. More...
|
| |
| virtual float | getPixelsPerDisplayPixel () |
| | Specifies the ratio of the number of render target pixels to display pixels at the center of distortion. More...
|
| |
| void | blitMirrorTexture (osg::GraphicsContext *gc) |
| | If isMirroring(), the contents of myMirrorTexture will be copied to the VR-Vantage window. More...
|
| |
| void | updateEyes (double znear=0.015, double zfar=10000) |
| |
|
| virtual bool | initialize () |
| | Installs myOculusDrawable and registers DtOculusChannel::onShutdown. More...
|
| |
| virtual void | initializeOculusDevice (osg::RenderInfo &renderInfo) |
| | Configures the HMD created in the plugin, including the rendering & tracking configuration. More...
|
| |
| virtual void | initializeOculusChannel () |
| | Sets up the RTT textures & cameras. More...
|
| |
| | DtOsgChannel (DtDe &de, DtOsgWindow *window, DtChannelConfiguration &config) |
| | Called by Creator object. More...
|
| |
| virtual void | makeObserverToCameraMatrix (osg::Vec3d &orient, osg::Matrixd &offsetObserverToCamera, osg::Matrixd &observerToCamera) |
| |
| virtual void | makeObserverToCameraMatrix (osg::Quat &qObserverToWorld, osg::Matrixd &offsetObserverToCamera, osg::Matrixd &observerToCamera) |
| |
| virtual void | calculateNearFar (double &zNear, double &zFar) |
| | Calculates near/far depending on visual mode. More...
|
| |
| virtual bool | useAttachedForNearClip (double alt) |
| | When using dynamic clipping plane calculations, determine if channel's view is attached to an entity and that entity should be taken into consideration. More...
|
| |
| virtual double | calculateNearClip (double alt, double zFar) |
| | Calculate the dynamic near clipping plane. More...
|
| |
| virtual double | calculateFarClip (double alt) |
| | Calculate the dynamic far clipping plane. More...
|
| |
| virtual double | calculateNearClipMagClamp (double zNear, double zFar, float magLevel=2.) |
| | When the NEAR_FAR_DYNAMIC_CLAMP_NEAR_CLIP policy is enabled, this is called with the calculated near and far dynamic clipping planes. More...
|
| |
| virtual void | projectFor2D () |
| | Projects ortho matrix for 2D viewing. More...
|
| |
| virtual void | connectRttCameraToScene () |
| | This method is called by initializeRTTCamera and connectChannelToScene to handle the scene setup (including the overlay cameras) for the rtt camera. More...
|
| |
| virtual void | stopUsingModelSet (int modelSet) |
| | Stop rendering the specified model set on this channel. More...
|
| |
| virtual void | startUsingModelSet (int modelSet) |
| | Start rendering the specified model set on this channel. More...
|
| |
| virtual void | stopUsingSensor (DtSensor *sensor) |
| | Stop applying a sensor to this channel. More...
|
| |
| virtual void | startUsingSensor (DtSensor *sensor) |
| | Apply a sensor to this channel. More...
|
| |
| virtual void | slot_sensorRemoved (DtSensor *sensor) |
| | Called when a sensor is removed or deleted by the sensor manager. More...
|
| |
| virtual void | slot_visualizerRootAdded (int modelSet, int visualType) |
| | called by signal when a new visualizer root is added More...
|
| |
| virtual void | slot_observerModelSetChanged (DtObserverObject *observer, int modelSet) |
| | Called by signal when an observer's model set changes. More...
|
| |
| virtual void | slot_observerSettingChanged (DtObserverObject *observer, int setting, bool value) |
| | Called by signal when an observer's visual setting changes. More...
|
| |
| virtual void | slot_observerSettingRemoved (DtObserverObject *observer, int setting) |
| | Called by signal when an observer's visual setting is removed. More...
|
| |
| virtual void | slot_windowConfigurationModified (const std::string &deName, const std::string &oldWindowName, const DtWindowConfiguration &config) |
| | slot to be called when the window configuration changes. More...
|
| |
| virtual void | slot_channelConfigurationModified (const std::string &deName, const std::string &windowName, const std::string &oldChannelName, const DtChannelConfiguration &channelConfig) |
| | slot to be called when the channel configuration changes. More...
|
| |
| virtual void | slot_onCoordinateSystemChanged () |
| | receive signals from the shared state about coordinate system changes More...
|
| |
| virtual void | observerRemoved (const std::string &observerName) |
| | connects to signal_observerRemoved so the channel can update it's observer when the observer is removed. More...
|
| |
| virtual void | updateMultiSampleOverrideSetting () |
| | helper function for getting the imgui setting for the multi sample override More...
|
| |
| virtual void | getRenderTextureAttachmentInfo (unsigned int &level, unsigned int &face, unsigned int &sampleBuffers, unsigned int &samples) |
| | Get the rtt camera attachment values, allows custom channels (DtVirtualRealityChannel) to override. More...
|
| |
| virtual void | initializeRenderTextureColor () |
| | Create and initialize render texture color buffer. More...
|
| |
| virtual void | initializeRenderTextureDepth () |
| | Create and initialize render texture depth buffer. More...
|
| |
| virtual void | enableLighting (osg::ref_ptr< osg::Camera > camera, bool enable) |
| |
| virtual void | calculateAndSetFocusPointDistance (double zNear, double zFar) |
| | Calculate the focus point if the lod scale center is enabled and the zoom magnification is higher than the limit. More...
|
| |
| osgViewer::CompositeViewer * | getOrCreateViewer () |
| | Returns the CompositeViewer for the channel. More...
|
| |
| virtual void | initializeNormalized2DCamera () |
| |
| virtual void | initialize2DCamera (int w, int h) |
| |
| virtual void | initializeSceneCamera () |
| |
| virtual void | initializeRenderTexture () |
| |
| virtual void | initializeRTTCamera () |
| |
| virtual void | clearRttCamera () |
| |
| virtual void | recreateRTTCamera () |
| |
| virtual void | setShadowState (bool enable) |
| |
| virtual void | addOverlayDrawablesToCameras () |
| | Add drawables to render overlays to their respective cameras. More...
|
| |
| virtual void | initializeSignalConnections () |
| | Connect channel's slots to signals from other objects. More...
|
| |
| | DtChannel (DtDe &de, DtChannelConfiguration &) |
| | The constructor for an abstract class is not public. More...
|
| |
| virtual void | observerAdded (const std::string &observerName) |
| | connected to the signal_observerAdded so the channel can connect to the correct observer when it is added More...
|
| |
Extension of OSG channel for Oculus Rift support.