![]() |
VR-Forces Developer's Guide
|
class for managing the planar reflections used by triton drawable.
Public Member Functions | |
| virtual | ~DtTritonPlanarReflectionManager () |
| virtual void | enableReflection (bool enabled) |
| virtual void | removePlanarReflection () |
| virtual DtPlanarReflectionCamera * | getOrCreatePlanarReflection (osg::RenderInfo &renderInfo, double seaLevel, bool &isNewReflection) |
| virtual DtPlanarReflectionCamera * | planarReflectionCamera () |
| virtual void | updateReflectionMatrix (const osg::Vec3 ¤tPosition, double seaLevel) |
| virtual const osg::Matrixd & | reflectionMatrix (void) const |
| virtual const osg::Plane & | reflectionPlane (void) const |
| virtual void | setPlanarReflectionEnabled (bool enabled) |
Public Attributes | |
| friend | DtTritonPlanarReflectionManagerCreator |
Protected Member Functions | |
| DtTritonPlanarReflectionManager (DtDe &de) | |
| virtual DtPlanarReflectionCamera * | setupPlanarReflections (osg::RenderInfo &renderInfo, double seaLevel) |
| virtual osg::Node * | createReflectionWorldGraph (makVrv::DtOsgRenderer &osgRenderer, const osg::Matrix &localToWorld, const osg::Vec3 ¤tPos, double seaLevel) |
| virtual void | slot_coordinateSystemChanged () |
| virtual void | slot_planarReflectionTextureSizeChanged (void) |
| virtual void | slot_oceanPlanarReflectionsEnabledChanged () |
Protected Attributes | |
| DtDe & | myDe |
| osg::ref_ptr < DtPlanarReflectionCamera > | myPlanarReflectionCamera |
| osg::Plane | myReflectionPlane |
| osg::Matrixd | myReflectionMatrix |
| DtVector | myLastGeocentricReference |
| DtSignalConnectionManager | myConnections |
| DtCoordinateConverter * | myCoordinateConverter = nullptr |
Private Member Functions | |
| DtTritonPlanarReflectionManager ()=delete | |
| DtTritonPlanarReflectionManager (const DtTritonPlanarReflectionManager &other)=delete | |
| DtTritonPlanarReflectionManager & | operator= (const DtTritonPlanarReflectionManager &other)=delete |
|
virtual |
|
protected |
constructor
|
privatedelete |
Default Constructor not implemented.
|
privatedelete |
Copy Constructor not implemented – Copy Not Allowed.
|
privatedelete |
Assignment Operator Not implemented – Assignment Not Allowed.
|
virtual |
get/set whether or not planar reflections are enabled, the setter removes/adds the planar reflection cameras from the scene
|
virtual |
slightly different from setPlanarReflectionsEnabled in that it just changes the enable flag for each of the planar reflections
|
virtual |
remove all the Planar reflection objects from the scene and set the reflection camera to a nullptr
|
virtual |
get or create the planar reflection manager for the current camera based on the renderInfo returns raw pointer since the planar reflection reference pointer is held by the manager Should not return NULL
| isNewReflection | - (out) will become true for a newly created reflection otherwise false |
|
virtual |
accessor for the DtPlanarReflection object for a camera. SensorFX needs access to setup the shaders correctly. returns raw pointer since the planar reflection reference pointer is held by the manager Can return NULL if the camera passed in does not have a planar reflection associated with it.
|
virtual |
update the reflection matrix for the planar reflections based on the current position
|
virtual |
get the reflection matrix for the last rendered position
|
virtual |
get the reflection plane for the last rendered position
|
protectedvirtual |
create a new planar reflection based on the render info returns a raw pointer that may or may not have any referece pointers associated with it. the returned pointer should be put in a ref pointer in the caller function.
|
protectedvirtual |
setup the scene graph to render the reflected world.
|
protectedvirtual |
slot for when the coordinate system changes
|
protectedvirtual |
For when the planar reflection width/height changes.
|
protectedvirtual |
| friend makVrv::DtTritonPlanarReflectionManager::DtTritonPlanarReflectionManagerCreator |
friend class so only the creator can create this class
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
local clone of the current system wide coordinate system converter. for thread safety.