21 #include <osg/Drawable>
22 #include <osg/Texture2D>
31 class DtTritonDrawable;
33 class DtTritonHeightMapManager;
57 virtual bool run(osg::Object*
object, osg::Object* data);
85 virtual void operator () (osg::Object* sv);
113 virtual void operator () (osg::RenderInfo& renderInfo)
const;
145 virtual void setTritonCamera(
const Triton::Camera* tritonCamera);
148 virtual const Triton::Camera* tritonCamera(
void)
const;
151 virtual void setupHeightMap(
void );
154 virtual void setHeightMapResolution(
float resolution);
157 virtual float heightMapResolution()
const;
161 virtual void setHeightMapTextureSize(
int pixels);
164 virtual int heightMapTextureSize()
const;
168 virtual bool updateHeightCamera(
unsigned int frameNum,
169 const osg::Vec3& currentPosition,
bool isGeocentric );
172 virtual void setHeightCameraAttachment(
bool enabled);
175 virtual const osg::Matrix& heightMapMatrix()
const;
181 virtual void forceUpdate();
187 virtual osg::Camera* heightCamera();
191 virtual void cleanup();
194 virtual void updateHeightMapMatrix();
197 virtual osg::Matrixd oglRevDepthOrtho(
double left,
double right,
198 double bottom,
double top,
199 double zNear,
double zFar);
254 static void registerInstance(
DtDe& de,
A class to manage automatic periodic updating of a height map generated from the database dynamically...
Definition: DtTritonHeightMapManager.h:122
DtTritonHeightMapManager * myHeightMapManager
Definition: DtTritonHeightMapManager.h:116
osg::View * myOsgView
Definition: DtTritonHeightMapManager.h:227
Cull callback used to prevent the height map camera from rendering anything for any views that are no...
Definition: DtTritonHeightMapManager.h:37
Contains makVrv::DtDrawFBOCallback class.
bool myHeightMapCameraUpdateReady
Definition: DtTritonHeightMapManager.h:206
Virtual base class.
Definition: DtVirtualBaseClass.h:22
int myHeightMapDimension
Definition: DtTritonHeightMapManager.h:217
DtDe & myDe
Definition: DtTritonHeightMapManager.h:220
float myResolution
Definition: DtTritonHeightMapManager.h:208
DtTritonHeightMapManager creator.
Definition: DtTritonHeightMapManager.h:234
bool myHeightCameraAttached
Definition: DtTritonHeightMapManager.h:205
osg::Matrix myHeightMapMatrix
Definition: DtTritonHeightMapManager.h:216
DtSignalConnectionManager myConnections
Definition: DtTritonHeightMapManager.h:224
Contains DLL export macros.
Contains makVrv::DtVirtualBaseClass class.
DtTritonHeightMapManager * myHeightMapManager
Definition: DtTritonHeightMapManager.h:88
#define DT_DLL_VRVTRITON
Definition: vrvTriton.h:19
bool myShadingRateIsSupported
Definition: DtTritonHeightMapManager.h:212
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:24
osg::View * myView
Definition: DtTritonHeightMapManager.h:61
osg::ref_ptr< osg::Texture2D > myDepthTexture
Definition: DtTritonHeightMapManager.h:215
bool mySavedPerfOverlayOn
Definition: DtTritonHeightMapManager.h:209
double myLastUpdateTime
Definition: DtTritonHeightMapManager.h:210
Definition: DtDrawFBOCallback.h:62
DtDe & myDe
Definition: DtTritonHeightMapManager.h:117
Base class to provide boost signal/slot management.
bool myForceUpdate
Definition: DtTritonHeightMapManager.h:207
callback which is connected to the post draw callback for the height map camera to setup the height m...
Definition: DtTritonHeightMapManager.h:93
DtTritonDrawable * myDrawable
Definition: DtTritonHeightMapManager.h:222
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
An OSG Drawable representing Triton's infinite ocean.
Definition: DtTritonDrawable.h:61
osg::ref_ptr< osg::Texture2D > myHeightMap
Definition: DtTritonHeightMapManager.h:214
job added to the main thread job queue by the DtTritonHeightMapPostDrawFBOCallback to update the heig...
Definition: DtTritonHeightMapManager.h:65
const Triton::Camera * myTritonCamera
Definition: DtTritonHeightMapManager.h:229
osg::ref_ptr< osg::Camera > myHeightCamera
Definition: DtTritonHeightMapManager.h:218
osg::Vec3 myLastHeightUpdatePos
Definition: DtTritonHeightMapManager.h:203
unsigned int myHeightUpdateFrame
Definition: DtTritonHeightMapManager.h:204