21 #include <osg/Drawable>
22 #include <osg/Texture2D>
28 class DtHeightMapManager;
29 class DtTerrainPatchObject;
54 virtual bool run(osg::Object*
object, osg::Object* data);
83 virtual void operator () (osg::RenderInfo& renderInfo)
const;
118 virtual void setupHeightMap(
void );
121 virtual void setHeightMapResolution(
float resolution);
124 virtual float heightMapResolution()
const;
128 virtual void setHeightMapTextureSize(
int pixels);
131 virtual int heightMapTextureSize()
const;
135 virtual bool updateHeightCamera(
unsigned int frameNum,
136 const osg::Vec3d& currentPosition,
bool isGeocentric );
139 virtual void setHeightCameraAttachment(
bool enabled);
142 virtual bool heightCameraAttached()
const;
145 virtual const osg::Matrix& heightMapMatrix()
const;
154 virtual void slot_wireframeModeChanged();
157 virtual osg::Camera* heightCamera();
160 virtual void syncHeightMapToGpu(
const osg::State* state,
const osg::Camera* camera);
163 virtual void postDrawFBOCallback(osg::RenderInfo& renderInfo);
167 virtual void cleanup();
170 virtual void updateHeightMapMatrix();
173 virtual osg::Matrixd oglRevDepthOrtho(
double left,
double right,
174 double bottom,
double top,
175 double zNear,
double zFar);
180 virtual void computeBasis(
const osg::Vec3d& inGeocentricPos, osg::Matrixd& rotOut);
236 static void registerInstance(
DtDe& de,
273 boost::signalslib::signal<void(DtHeightMapManager& manager, const osg::State* state, const osg::Camera* camera)>
signal_syncHeightMapToGpu;
The signaler object for the DtHeightMapManager class.
Definition: DtHeightMapManager.h:248
bool myHeightCameraAttached
Definition: DtHeightMapManager.h:188
Contains makVrv::DtDrawFBOCallback class.
Virtual base class.
Definition: DtVirtualBaseClass.h:19
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::Matrixd myHeightReferenceBasis
Definition: DtHeightMapManager.h:185
DtDe & myDe
Definition: DtHeightMapManager.h:204
boost::signalslib::signal< void(DtHeightMapManager &manager, const osg::State *state, const osg::Camera *camera)> signal_syncHeightMapToGpu
emitted when height map should be synced to gpu
Definition: DtHeightMapManager.h:273
float myResolution
Definition: DtHeightMapManager.h:191
boost::signalslib::signal< void(DtHeightMapManager &manager)> signal_heightMapChanged
Emitted when the height map changes.
Definition: DtHeightMapManager.h:267
double myLastUpdateTime
Definition: DtHeightMapManager.h:193
bool myForceUpdate
Definition: DtHeightMapManager.h:190
A DtTerrainPatchObject contains the methods for loading a file as a terrain.
Definition: DtTerrainPatchObject.h:37
osg::View * myOsgView
Definition: DtHeightMapManager.h:209
bool myHeightMapCameraUpdateReady
Definition: DtHeightMapManager.h:189
Contains makVrv::DtVirtualBaseClass class.
osg::Vec3d myLastHeightReferencePos
Definition: DtHeightMapManager.h:184
osg::ref_ptr< osg::Camera > myHeightCamera
Definition: DtHeightMapManager.h:201
bool myShadingRateIsSupported
Definition: DtHeightMapManager.h:195
osg::ref_ptr< osg::Texture2D > myDepthTexture
Definition: DtHeightMapManager.h:198
unsigned int myHeightUpdateFrame
Definition: DtHeightMapManager.h:187
osg::View * myView
Definition: DtHeightMapManager.h:58
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
DtHeightMapManager creator.
Definition: DtHeightMapManager.h:216
int myHeightMapDimension
Definition: DtHeightMapManager.h:200
DtDe & myDe
Definition: DtHeightMapManager.h:87
DtHeightMapManager * myHeightMapManager
Definition: DtHeightMapManager.h:86
bool mySavedPerfOverlayOn
Definition: DtHeightMapManager.h:192
osg::ref_ptr< osg::Texture2D > myHeightMap
Definition: DtHeightMapManager.h:197
boost::signalslib::signal< void()> signal_cameraChanged
Emitted when an associated camera has changed.
Definition: DtHeightMapManager.h:270
osg::Matrix myHeightMapMatrix
Definition: DtHeightMapManager.h:199
Definition: DtDrawFBOCallback.h:62
Base class to provide boost signal/slot management.
DtSignalConnectionManager myConnections
Definition: DtHeightMapManager.h:206
A class to manage automatic periodic updating of a height map generated from the database dynamically...
Definition: DtHeightMapManager.h:94
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Cull callback used to prevent the height map camera from rendering anything for any views that are no...
Definition: DtHeightMapManager.h:34
callback which is connected to the post draw callback for the height map camera to setup the height m...
Definition: DtHeightMapManager.h:63
bool myHeightMapUseReverseZ
Definition: DtHeightMapManager.h:202
osg::Vec3d myLastHeightUpdatePos
Definition: DtHeightMapManager.h:186