![]() |
VR-Forces 5.0.3 Developer's Guide
|
A class to manage automatic periodic updating of a height map generated from the database dynamically.
Public Member Functions | |
| virtual | ~DtHeightMapManager () |
| virtual void | setupHeightMap (void) |
| virtual void | setHeightMapResolution (float resolution) |
| virtual float | heightMapResolution () const |
| virtual void | setHeightMapTextureSize (int pixels) |
| virtual int | heightMapTextureSize () const |
| virtual bool | updateHeightCamera (unsigned int frameNum, const osg::Vec3d ¤tPosition, bool isGeocentric) |
| virtual void | setHeightCameraAttachment (bool enabled) |
| virtual bool | heightCameraAttached () const |
| virtual const osg::Matrix & | heightMapMatrix () const |
| virtual const osg::ref_ptr < osg::Texture2D > | heightMapTexture () const |
| virtual void | slot_terrainDataChanged (DtTerrainPatchObject &tpo) |
| virtual void | slot_wireframeModeChanged () |
| virtual void | slot_coordinateSystemChanged () |
| virtual osg::Camera * | heightCamera () |
| virtual void | syncHeightMapToGpu (const osg::State *state, const osg::Camera *camera) |
| virtual void | postDrawFBOCallback (osg::RenderInfo &renderInfo) |
Protected Member Functions | |
| DtHeightMapManager (DtDe &de, osg::View *view) | |
| virtual void | cleanup () |
| virtual void | updateHeightMapMatrix () |
| virtual osg::Matrixd | oglRevDepthOrtho (double left, double right, double bottom, double top, double zNear, double zFar) |
| virtual void | computeBasis (const osg::Vec3d &inGeocentricPos, osg::Matrixd &rotOut) |
Protected Attributes | |
| osg::Vec3d | myLastHeightReferencePos |
| osg::Matrixd | myHeightReferenceBasis |
| osg::Vec3d | myLastHeightUpdatePos |
| unsigned int | myHeightUpdateFrame |
| bool | myHeightCameraAttached |
| bool | myHeightMapCameraUpdateReady |
| bool | myForceUpdate |
| float | myResolution |
| bool | mySavedPerfOverlayOn |
| double | myLastUpdateTime |
| bool | myShadingRateIsSupported |
| osg::ref_ptr< osg::Texture2D > | myHeightMap |
| osg::ref_ptr< osg::Texture2D > | myDepthTexture |
| osg::Matrix | myHeightMapMatrix |
| int | myHeightMapDimension |
| osg::ref_ptr< osg::Camera > | myHeightCamera |
| DtDe & | myDe |
| DtSignalConnectionManager | myConnections |
| osg::View * | myOsgView |
| DtCoordinateSystem * | myCoordinateSystem = nullptr |
Private Member Functions | |
| DtHeightMapManager ()=delete | |
| DtHeightMapManager (const DtHeightMapManager &other)=delete | |
| DtHeightMapManager & | operator= (const DtHeightMapManager &other)=delete |
Friends | |
| class | DtHeightMapManagerCreator |
|
virtual |
destructor
|
protected |
constructor
|
privatedelete |
Default Constructor not implemented.
|
privatedelete |
Copy Constructor not implemented – Copy Not Allowed.
|
privatedelete |
Assignment Operator Not implemented – Assignment Not Allowed.
|
virtual |
Sets up the height map's resources.
|
virtual |
Set the height map resolution in meters per texel.
|
virtual |
Gets the meters represented by one texel of the height map.
|
virtual |
Set the texture size length and width. The pixel value will be.
|
virtual |
Get the texture size length and width.
|
virtual |
Updates the height map as needed; call once per frame. Returns true if there is a new height map ready.
|
virtual |
Attaches or detaches the height map camera from the scene graph.
|
virtual |
Returns the height camera attatched state.
|
virtual |
Retrieve the matrix to transform world coordinate to texture coords.
|
virtual |
Retrieve the height map itself.
|
virtual |
Handles the terrain data changed signal.
|
virtual |
Handles the wireframe mode changed signal.
|
virtual |
slot for when the coordinate system changes
|
virtual |
get the height camera being used by this height map manager
|
virtual |
Called from DtDrawableUpdateHeightMapJob to sync the height map to the GPU.
|
virtual |
Called from DtHeightMapPostDrawFBOCallback for post draw.
|
protectedvirtual |
clean up this manager, called by the destuctor and the release gl objects for the drawable.
|
protectedvirtual |
Helper function for updating the height map matrix.
|
protectedvirtual |
get the reverse depth buffer setup for an orthographic camera. used when reverse z is turned on.
|
protectedvirtual |
Computes a round earth basis rotation matrix for the given geocentric position.
| inGeocentricPos | The geocentric reference position. |
| rotOut | The computed basis rotation transform. |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
local clone of the system wide coordinate system. for thread safety.