![]() |
VR-Forces Development_Version Class Documentation
|

Public Member Functions | |
| virtual | ~DtExampleChannel () |
| DTOR. | |
Public Member Functions inherited from makVrv::DtOsgChannel | |
| virtual | ~DtOsgChannel () |
| DTOR. | |
| void | setSensorName (const std::string &sensorName) |
| Set the name of the sensor to use. | |
| virtual void | setClearColor (float r, float g, float b, float a) |
| Set the clear color for the channel. | |
| virtual void | setWindow (DtWindow *view) |
| Set the window the channel is displayed on. | |
| virtual const DtWindow * | window () const |
| Get the window the channel is displayed on. | |
| virtual void | setViewport (int x, int y, int width, int height) |
| Set the viewport. | |
| virtual void | getViewport (int &x, int &y, int &width, int &height) const |
| Get the viewport. | |
| virtual void | setCameraPosition (double x, double y, double z) |
| Set the camera position. | |
| virtual void | setCameraOrientation (double psi, double theta, double phi) |
| Set the camera orientation. | |
| virtual void | setCameraPositionAndOrientation (double x, double y, double z, double psi, double theta, double phi) |
| Set camera position and orientation. | |
| 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. | |
| virtual void | update () |
| Update a channel. | |
| virtual void | connectToObserver () |
| Set up based on current observer parameters, such as modelSet and is2D. | |
| virtual void | setProjectionMatrixAsPerspective (double fovy, double aspectRatio, double zNear, double zFar) |
| Create a symmetrical perspective projection, See OpenGL gluPerspective documentation for further details. | |
| virtual void | setProjectionMatrixAsFrustum (double left, double right, double bottom, double top, double zNear, double zFar) |
| Set to a perspective projection. | |
| virtual osgViewer::View & | view () |
| Window accessor. | |
| virtual DtCameraNode * | sceneCamera () |
| Accessor for the 3D camera. | |
| virtual const DtCameraNode * | sceneCamera () const |
| virtual DtCameraNode * | rttCamera () const |
| Accessor for RTT camera. | |
| virtual DtCameraNode * | overlayCamera () |
| Accessor for the 2D overlay camera. | |
| virtual DtCameraNode * | normalizedOverlayCamera () |
| Accessor for the normalized 2D overlay camera. | |
| virtual void | setRenderToTexture (bool enabled) |
| Toggles whether this channel renders the scene to a texture. | |
| 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 | |
| virtual osg::ref_ptr < osg::Texture2D > | getRenderTexture () |
| Gets the texture the scene was rendered to, if setRenderToTexture was enabled. | |
| virtual osg::ref_ptr < osg::Texture2D > | getDepthTexture () const |
| Returns the depth texture for this channel. | |
| virtual void | setEnablePostProcessors (bool enable) |
| virtual bool | getEnablePostProcessors () |
| virtual bool | useOldChannelOffsetCalcuation () const |
| virtual void | setUseOldChannelOffsetCalcuation (bool enable) |
| int | shadowQuality () const |
| Emitted when the channel's viewport changes dimensions. | |
| virtual std::vector< const osg::Camera * > | getShadowableCameras () const |
| Used by DtOsgShadowTechnique::setChannelShadowState to determine which cameras should have shadows. | |
| *virtual void | setProjectionResizePolicy (DtChannelConfiguration::ProjectionResizePolicy policy) |
| Set the policy used to determine if and how the projection matrix should be adjusted on window resizes. | |
| virtual void | updateProjection () |
| This method is called when ever the channel's projection matrix needs to be updated. | |
| void | projectionUnitsToFrustum (DtChannelConfiguration::ProjectionUnits units, double &left, double zNear, double &right, double &top, double &bottom) |
| Emitted when the channel's viewport changes dimensions. | |
| virtual void | connectChannelToScene () |
| Set the channel's scene graph root. | |
| virtual bool | processMouseEvent (const DtMouseEvent &ev) |
| attempt to handle a mouse event with the channel's overlay | |
| virtual bool | processKeyboardEvent (const DtKeyEvent &ev) |
| attempt to handle a keyboard event with the channel's overlay | |
| void | getWorldToWindowMatrix (osg::Matrix &worldToWindowMatrix) const |
| Get the channel's dynamic overlay if any. | |
| virtual void | moveMouseToScreenLocation (float screenX, float screenY) |
| Move the mouse pointer to the specified location in screen coordinates. | |
| virtual void | projectToScreen (double dbX, double dbY, double dbZ, double &screenX, double &screenY, double &screenZ) |
| Project a point from world coordinates to screen coordinates. | |
| virtual void | projectToWorld (double screenX, double screenY, double &dbX, double &dbY, double &dbZ) |
| project the local world coordinates given screen coordinates | |
| virtual const std::string & | name () |
| Returns the channel's name as defined in its configuration. | |
| virtual void | addPostProcessEffect (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. | |
| virtual void | removePostProcessEffect (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. | |
| virtual void | set3DCullVisitorParams (DtOsgCullVisitorParameters *params) |
| Emitted when the channel's viewport changes dimensions. | |
| virtual void | set2DCullVisitorParams (DtOsgCullVisitorParameters *params) |
| Emitted when the channel's viewport changes dimensions. | |
Public Member Functions inherited from makVrv::DtChannel | |
| virtual | ~DtChannel () |
| DTOR. | |
| DtObserverObject * | findObserver () const |
| Attempt to get the observer for the channel. | |
| unsigned int | currentModelSet () const |
| Get the current model set. | |
| const DtChannelConfiguration & | configuration () const |
| Get the configuration. | |
| virtual void | setObserverName (const std::string &observerName) |
| set the name of the observer to use, and attempt to connect | |
| *virtual DtChannelConfiguration::ProjectionResizePolicy | projectionResizePolicy () const |
| Get the policy used to determine if and how the projection matrix should be adjusted on window resizes. | |
| std::string & | observerName () |
| Retrieve the observer name for this channel. | |
Protected Member Functions | |
| DtExampleChannel (DtDe &de, DtOsgWindow *window, DtChannelConfiguration &channelConfig) | |
| The Object Class has a protected CTOR. It will get called by Creator class. | |
| virtual bool | initialize () |
| Initialize the channel. | |
Protected Member Functions inherited from makVrv::DtOsgChannel | |
| DtOsgChannel (DtDe &de, DtOsgWindow *window, DtChannelConfiguration &config) | |
| Called by Creator object. | |
| void | makeObserverToCameraMatrix (osg::Vec3d &orient, osg::Matrixd &offsetObserverToCamera, osg::Matrixd &observerToCamera) |
| 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. | |
| 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. | |
| virtual double | calculateNearClip (double alt, double zFar) |
| Calculate the dynamic near clipping plane. | |
| virtual double | calculateFarClip (double alt) |
| Calculate the dynamic far clipping plane. | |
| virtual void | projectFor3D () |
| Projects frustum matrix for 3D viewing. | |
| virtual void | projectFor2D () |
| Projects ortho matrix for 2D viewing. | |
| virtual void | stopUsingModelSet (int modelSet) |
| Stop rendering the specified model set on this channel. | |
| virtual void | startUsingModelSet (int modelSet) |
| Start rendering the specified model set on this channel. | |
| virtual void | stopUsingSensor (DtSensor *sensor) |
| Stop applying a sensor to this channel. | |
| virtual void | startUsingSensor (DtSensor *sensor) |
| Apply a sensor to this channel. | |
| virtual void | slot_sensorRemoved (DtSensor *sensor) |
| Called when a sensor is removed or deleted by the sensor manager. | |
| virtual void | slot_visualizerRootAdded (int modelSet, int visualType) |
| called by signal when a new visualizer root is added | |
| virtual void | slot_observerModelSetChanged (DtObserverObject *observer, int modelSet) |
| Called by signal when an observer's model set changes. | |
| virtual void | slot_observerSettingChanged (DtObserverObject *observer, int setting, bool value) |
| Called by signal when an observer's visual setting changes. | |
| virtual void | slot_observerSettingRemoved (DtObserverObject *observer, int setting) |
| Called by signal when an observer's visual setting is removed. | |
| virtual void | slot_channelAdded (DtChannelManager *mgr, DtChannel *channel) |
| slot to be called when a new channel is added | |
| virtual void | slot_channelDestroyed (DtChannelManager *mgr, DtChannel *channel) |
| slot to be called when a channel is removed | |
| virtual void | slot_windowConfigurationModified (const std::string &deName, const std::string &oldWindowName, const DtWindowConfiguration &config) |
| slot to be called when the window configuration changes. | |
| virtual void | slot_onCoordinateSystemChanged () |
| receive signals from the shared state about coordinate system changes | |
| virtual void | throttleDatabasePager (DtChannelManager *mgr, DtChannel *channel) |
| slot to be called when a channel is added or removed. | |
| void | stopUsingModelSetWork (int modelSet) |
| Stop rendering the specified model set on this channel. | |
| void | startUsingModelSetWork (int modelSet) |
| Start rendering the specified model set on this channel. | |
| void | initializeRenderTextureColor (int format, int sourceFormat, int sourceType) |
| Create and initialize render texture color buffer. | |
| void | initializeRenderTextureDepth () |
| Create and initialize render texture depth buffer. | |
| void | enableLighting (osg::ref_ptr< osg::Camera > camera, bool enable) |
| virtual void | initializeNormalized2DCamera () |
| virtual void | initialize2DCamera (int w, int h) |
| virtual void | initializeSceneCamera () |
| virtual void | initializeRenderTexture (int format, int sourceFormat=GL_RGBA, int sourceType=GL_UNSIGNED_BYTE) |
| virtual void | initializeRTTCamera () |
| void | clearRttCamera () |
| virtual void | recreateRTTCamera () |
| void | setShadowState (bool enable) |
| Add drawables to render overlays to their respective cameras. | |
| virtual void | addOverlayDrawablesToCameras () |
| Add drawables to render overlays to their respective cameras. | |
| virtual void | initializeSignalConnections () |
| Connect channel's slots to signals from other objects. | |
Protected Member Functions inherited from makVrv::DtChannel | |
| DtChannel (DtDe &de, DtChannelConfiguration &) | |
| The constructor for an abstract class is not public. | |
| void | observerAdded (const std::string &observerName) |
| void | observerRemoved (const std::string &observerName) |
Friends | |
| class | DtExampleChannelCreator |
| The Object Class should specify the Creator class as a friend. | |
Additional Inherited Members | |
Public Types inherited from makVrv::DtOsgChannel | |
| typedef std::list< std::string > | PostProcessorEffectList |
| Emitted when the channel's viewport changes dimensions. | |
Public Attributes inherited from makVrv::DtOsgChannel | |
| boost::signal< void(int, int, int, int)> | signal_viewportChanged |
| Emitted when the channel's viewport changes dimensions. | |
Protected Types inherited from makVrv::DtOsgChannel | |
| typedef std::map< int, DtChannelSpecificGroup * > | VisualTypeMap |
Protected Attributes inherited from makVrv::DtOsgChannel | |
| osg::ref_ptr< osgViewer::View > | myView |
| DtOsgWindow * | myOsgWindow |
| DtOsgObserverObject * | myOsgObserverObject |
| int | myRenderTextureFormat |
| int | myRenderTextureSourceFormat |
| int | myRenderTextureSourceType |
| int | myRenderTextureFormatDirty |
| DtSensor * | mySensor |
| osg::ref_ptr< osg::Group > | myRoot |
| osg::ref_ptr< DtCameraNode > | mySceneCamera |
| osg::ref_ptr< DtCameraNode > | my2DCamera |
| osg::ref_ptr< DtCameraNode > | myNormalized2DCamera |
| osg::ref_ptr< osg::Texture2D > | myRenderTexture |
| The textures the 3D scene renders into when post processing is on. | |
| osg::ref_ptr< osg::Texture2D > | myDepthTexture |
| osg::ref_ptr< DtCameraNode > | myRTTCamera |
| Slave camera configured to render to myRenderTexture. | |
| bool | myIsUsingTrackballManipulator |
| bool | myCoordinateSystemChanged |
| bool | myRenderToTextureFlag |
| bool | myShadowState |
| PostProcessorEffectList | myPostProcessorEffects |
| osg::Node::NodeMask | myOldSceneCameraNodeMask |
| DtLight * | myFlashlight |
| bool | myEnablePostProcessors |
| bool | myUseOldChannelOffsetCalcuation |
|
virtual |
DTOR.
|
protected |
The Object Class has a protected CTOR. It will get called by Creator class.
|
protectedvirtual |
Initialize the channel.
Must call this on an instance of this class before using it. Returns false if initialization failed.
Reimplemented from makVrv::DtOsgChannel.
|
friend |
The Object Class should specify the Creator class as a friend.