VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends
makVrv::DtTritonHeightMapManager Class Reference

A class to manage automatic periodic updating of a height map generated from the database dynamically. More...

Public Member Functions

virtual ~DtTritonHeightMapManager ()
 destructor More...
 
virtual void setTritonCamera (const Triton::Camera *tritonCamera)
 Set the triton camera that is used by this triton height map manager. More...
 
virtual const Triton::Camera * tritonCamera (void) const
 Get the triton camera that is used by this triton height map manager. More...
 
virtual void setupHeightMap (void)
 Sets up the height map's resources. More...
 
virtual void setHeightMapResolution (float resolution)
 Set the height map resolution in meters per texel. More...
 
virtual float heightMapResolution () const
 Gets the meters represented by one texel of the height map. More...
 
virtual void setHeightMapTextureSize (int pixels)
 Set the texture size length and width. More...
 
virtual int heightMapTextureSize () const
 Get the texture size length and width. More...
 
virtual bool updateHeightCamera (unsigned int frameNum, const osg::Vec3 &currentPosition, bool isGeocentric)
 Updates the height map as needed; call once per frame. More...
 
virtual void setHeightCameraAttachment (bool enabled)
 Attaches or detaches the height map camera from the scene graph. More...
 
virtual const osg::Matrix & heightMapMatrix () const
 Retrieve the matrix to transform world coordinate to texture coords. More...
 
virtual const osg::ref_ptr
< osg::Texture2D > 
heightMapTexture () const
 Retrieve the height map itself. More...
 
virtual void forceUpdate ()
 Force a height map update on the next frame. More...
 
virtual DtTritonDrawabletritonDrawable ()
 get the triton drawable associated with this height map manager More...
 
virtual osg::Camera * heightCamera ()
 get the height camera being used by this height map manager More...
 

Protected Member Functions

 DtTritonHeightMapManager (DtTritonDrawable *parentDrawable, DtDe &de, osg::View *view)
 constructor More...
 
virtual void cleanup ()
 clean up this manager, called by the destuctor and the release gl objects for the drawable. More...
 
virtual void updateHeightMapMatrix ()
 Helper function for updating the height map matrix. More...
 
virtual osg::Matrixd oglRevDepthOrtho (double left, double right, double bottom, double top, double zNear, double zFar)
 get the reverse depth buffer setup for an orthographic camera. used when reverse z is turned on. More...
 

Protected Attributes

osg::Vec3 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
 
DtDemyDe
 
DtTritonDrawablemyDrawable
 
DtSignalConnectionManager myConnections
 
osg::View * myOsgView
 
const Triton::Camera * myTritonCamera
 

Private Member Functions

 DtTritonHeightMapManager ()
 Default Constructor not implemented. More...
 
 DtTritonHeightMapManager (const DtTritonHeightMapManager &other)
 Copy Constructor not implemented – Copy Not Allowed. More...
 
DtTritonHeightMapManageroperator= (const DtTritonHeightMapManager &other)
 Assignment Operator Not implemented – Assignment Not Allowed. More...
 

Friends

class DtTritonHeightMapManagerCreator
 

Detailed Description

A class to manage automatic periodic updating of a height map generated from the database dynamically.

Constructor & Destructor Documentation

virtual makVrv::DtTritonHeightMapManager::~DtTritonHeightMapManager ( )
virtual

destructor

makVrv::DtTritonHeightMapManager::DtTritonHeightMapManager ( DtTritonDrawable parentDrawable,
DtDe de,
osg::View *  view 
)
protected

constructor

makVrv::DtTritonHeightMapManager::DtTritonHeightMapManager ( )
private

Default Constructor not implemented.

makVrv::DtTritonHeightMapManager::DtTritonHeightMapManager ( const DtTritonHeightMapManager other)
private

Copy Constructor not implemented – Copy Not Allowed.

Member Function Documentation

DtTritonHeightMapManager& makVrv::DtTritonHeightMapManager::operator= ( const DtTritonHeightMapManager other)
private

Assignment Operator Not implemented – Assignment Not Allowed.

virtual void makVrv::DtTritonHeightMapManager::setTritonCamera ( const Triton::Camera *  tritonCamera)
virtual

Set the triton camera that is used by this triton height map manager.

virtual const Triton::Camera* makVrv::DtTritonHeightMapManager::tritonCamera ( void  ) const
virtual

Get the triton camera that is used by this triton height map manager.

virtual void makVrv::DtTritonHeightMapManager::setupHeightMap ( void  )
virtual

Sets up the height map's resources.

virtual void makVrv::DtTritonHeightMapManager::setHeightMapResolution ( float  resolution)
virtual

Set the height map resolution in meters per texel.

virtual float makVrv::DtTritonHeightMapManager::heightMapResolution ( ) const
virtual

Gets the meters represented by one texel of the height map.

virtual void makVrv::DtTritonHeightMapManager::setHeightMapTextureSize ( int  pixels)
virtual

Set the texture size length and width.

The pixel value will be

virtual int makVrv::DtTritonHeightMapManager::heightMapTextureSize ( ) const
virtual

Get the texture size length and width.

virtual bool makVrv::DtTritonHeightMapManager::updateHeightCamera ( unsigned int  frameNum,
const osg::Vec3 &  currentPosition,
bool  isGeocentric 
)
virtual

Updates the height map as needed; call once per frame.

Returns true if there is a new height map ready.

virtual void makVrv::DtTritonHeightMapManager::setHeightCameraAttachment ( bool  enabled)
virtual

Attaches or detaches the height map camera from the scene graph.

virtual const osg::Matrix& makVrv::DtTritonHeightMapManager::heightMapMatrix ( ) const
virtual

Retrieve the matrix to transform world coordinate to texture coords.

virtual const osg::ref_ptr<osg::Texture2D> makVrv::DtTritonHeightMapManager::heightMapTexture ( ) const
virtual

Retrieve the height map itself.

virtual void makVrv::DtTritonHeightMapManager::forceUpdate ( )
virtual

Force a height map update on the next frame.

virtual DtTritonDrawable* makVrv::DtTritonHeightMapManager::tritonDrawable ( )
virtual

get the triton drawable associated with this height map manager

virtual osg::Camera* makVrv::DtTritonHeightMapManager::heightCamera ( )
virtual

get the height camera being used by this height map manager

virtual void makVrv::DtTritonHeightMapManager::cleanup ( )
protectedvirtual

clean up this manager, called by the destuctor and the release gl objects for the drawable.

virtual void makVrv::DtTritonHeightMapManager::updateHeightMapMatrix ( )
protectedvirtual

Helper function for updating the height map matrix.

virtual osg::Matrixd makVrv::DtTritonHeightMapManager::oglRevDepthOrtho ( double  left,
double  right,
double  bottom,
double  top,
double  zNear,
double  zFar 
)
protectedvirtual

get the reverse depth buffer setup for an orthographic camera. used when reverse z is turned on.

Friends And Related Function Documentation

friend class DtTritonHeightMapManagerCreator
friend

Member Data Documentation

osg::Vec3 makVrv::DtTritonHeightMapManager::myLastHeightUpdatePos
protected
unsigned int makVrv::DtTritonHeightMapManager::myHeightUpdateFrame
protected
bool makVrv::DtTritonHeightMapManager::myHeightCameraAttached
protected
bool makVrv::DtTritonHeightMapManager::myHeightMapCameraUpdateReady
protected
bool makVrv::DtTritonHeightMapManager::myForceUpdate
protected
float makVrv::DtTritonHeightMapManager::myResolution
protected
bool makVrv::DtTritonHeightMapManager::mySavedPerfOverlayOn
protected
double makVrv::DtTritonHeightMapManager::myLastUpdateTime
protected
bool makVrv::DtTritonHeightMapManager::myShadingRateIsSupported
protected
osg::ref_ptr<osg::Texture2D> makVrv::DtTritonHeightMapManager::myHeightMap
protected
osg::ref_ptr<osg::Texture2D> makVrv::DtTritonHeightMapManager::myDepthTexture
protected
osg::Matrix makVrv::DtTritonHeightMapManager::myHeightMapMatrix
protected
int makVrv::DtTritonHeightMapManager::myHeightMapDimension
protected
osg::ref_ptr<osg::Camera> makVrv::DtTritonHeightMapManager::myHeightCamera
protected
DtDe& makVrv::DtTritonHeightMapManager::myDe
protected
DtTritonDrawable* makVrv::DtTritonHeightMapManager::myDrawable
protected
DtSignalConnectionManager makVrv::DtTritonHeightMapManager::myConnections
protected
osg::View* makVrv::DtTritonHeightMapManager::myOsgView
protected
const Triton::Camera* makVrv::DtTritonHeightMapManager::myTritonCamera
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)