20 #include <osgEarth/DecalLayer>
21 #include <osgEarth/FeatureSource>
22 #include <osgEarth/VirtualProgram>
23 #include <osgEarthSplat/RoadSurfaceLayer>
24 #include <osgEarth/FeatureImageLayer>
25 #include <osgEarth/Geometry>
26 #include <osgEarth/Feature>
27 #include <osgEarth/Threading>
28 #include <osgEarthProcedural/LifeMapLayer>
32 class LandCoverDictionary;
39 class DtDynamicTerrainGeometry;
40 class DtDynamicTerrainChange;
41 class DtDynamicTerrainSwitch;
42 class DtDynamicTerrainRasterLibrary;
43 class DtObserverObject;
73 virtual DtString description()
const override;
99 virtual bool isInDefaultState()
const;
102 virtual bool lastStateWasDefaultState()
const;
107 virtual void iterateCommands(
const boost::function<
void(
const DtDynamicTerrainChange&)>& callback)
const override;
110 virtual void reloadShaders();
113 virtual void buildTrackStyleMap();
120 virtual const osgEarth::Style* findPersistentTrackStyle(
const std::string& trackType,
const std::string& soilType,
const std::string& trackDepth)
const;
143 virtual void sendTrackUpdates();
146 virtual bool parseTrackParameters(
const DtDynamicTerrainChange &change, std::string& trackId, std::string& trackType, std::string& soilType, std::string& trackDepth)
const;
150 virtual void slot_observerSettingRemoved(
DtObserverObject* observer,
int setting);
154 virtual void slot_observerSettingChanged(
DtObserverObject* observer,
int setting,
bool value);
158 virtual void setupTrackUpdatesEnabled();
161 bool destroyDynamicProp(
const std::string&
id);
164 void destroyAllDynamicProp();
167 DtProp* addDynamicPropModel(
const std::string& modelDefinition,
const DtVector& center,
double orientation);
osg::ref_ptr< osgEarth::Contrib::DecalLandCoverLayer > myDecalLandCoverLayer
Definition: DtOsgEarthDynamicTerrainFeature.h:192
std::map< std::string, osg::ref_ptr< osgEarth::Feature > > myGeometryRefs
Definition: DtOsgEarthDynamicTerrainFeature.h:197
Contains makVrv::DtDynamicTerrainLine class.
std::multimap< std::string, DtProp * > DynamicPropMap
List of props added for craters on runway or debris around OSM buildings.
Definition: DtOsgEarthDynamicTerrainFeature.h:213
bool myTrackUpdatesEnabled
Definition: DtOsgEarthDynamicTerrainFeature.h:208
Definition: DtDynamicTerrainFeature.h:316
osg::ref_ptr< osgEarth::Contrib::DecalImageLayer > myDecalLifeMapLayer
Definition: DtOsgEarthDynamicTerrainFeature.h:184
TrackTypeToStyleMap myTrackTypeToStyleMap
Definition: DtOsgEarthDynamicTerrainFeature.h:205
DtDynamicTerrainRasterLibrary This class is used to managed rasters and out-the-window images appl...
Definition: DtDynamicTerrainRasterLibrary.h:95
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
std::map< std::string, osgEarth::Style > TrackTypeToStyleMap
Definition: DtOsgEarthDynamicTerrainFeature.h:45
Represents (possibly infinite) area of space.
Definition: DtDynamicTerrainGeometry.h:20
DtDe & myDe
Definition: DtOsgEarthDynamicTerrainFeature.h:201
Definition: DtOsgEarthDynamicFidManager.h:35
osg::ref_ptr< osgEarth::CoverageLayer > myDecalCoverageLayer
Definition: DtOsgEarthDynamicTerrainFeature.h:188
osg::ref_ptr< osgEarth::MapNode > myMapNode
Definition: DtOsgEarthDynamicTerrainFeature.h:173
DtOsgEarthDynamicTerrainFeature is a special DtDynamicTerrainFeature which listens to all the dynamic...
Definition: DtOsgEarthDynamicTerrainFeature.h:54
osg::ref_ptr< osgEarth::Splat::RoadSurfaceLayer > myTracksLayer
Definition: DtOsgEarthDynamicTerrainFeature.h:195
Contains makVrv::DtDynamicTerrainGeometry class.
DtOsgEarthDynamicFidManager * myDynamicFidManager
Definition: DtOsgEarthDynamicTerrainFeature.h:216
Facade object for a scene prop.
Definition: DtProp.h:34
osg::ref_ptr< osg::Image > ImageRef
Definition: DtOsgEarthDynamicTerrainFeature.h:200
DtSignalConnectionManager myConnections
Definition: DtOsgEarthDynamicTerrainFeature.h:204
DynamicPropMap myDynamicProps
Definition: DtOsgEarthDynamicTerrainFeature.h:214
DtDynamicTerrainRasterLibrary * myRasterLibrary
Definition: DtOsgEarthDynamicTerrainFeature.h:202
const DtString myTerrainDeformationStateName
Definition: DtOsgEarthDynamicTerrainFeature.h:171
const DtString myTracksStateName
Definition: DtOsgEarthDynamicTerrainFeature.h:170
osgEarth::LandCoverDictionary * myLandCoverDictionary
Definition: DtOsgEarthDynamicTerrainFeature.h:203
int myChangeCount
Definition: DtOsgEarthDynamicTerrainFeature.h:175
osg::ref_ptr< osgEarth::FeatureImageLayer > myTracksDebugLayer
Definition: DtOsgEarthDynamicTerrainFeature.h:210
osg::ref_ptr< DtOsgEarthMemoryFeatureSource > myFeatureSource
Definition: DtOsgEarthDynamicTerrainFeature.h:196
This abstract base class defines the interface for OS-specific keyboard and mouse event listeners...
Definition: DtObserverObject.h:32
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
const DtString myCraterStateName
Definition: DtOsgEarthDynamicTerrainFeature.h:169
Interface which abstracts the concept of a individually identifiable "thing" in the terrain...
Definition: DtDynamicTerrainFeature.h:83
osg::ref_ptr< osgEarth::Contrib::DecalImageLayer > myDecalCoverageRasterLayer
Definition: DtOsgEarthDynamicTerrainFeature.h:186
osg::ref_ptr< osgEarth::Contrib::DecalImageLayer > myDecalImageLayer
Definition: DtOsgEarthDynamicTerrainFeature.h:178
Contains OSG related utility functions.
Contains makVrv::DtDynamicTerrainFeature class.
Base class to provide boost signal/slot management.
osg::ref_ptr< osgEarth::Contrib::DecalElevationLayer > myDecalElevLayer
Definition: DtOsgEarthDynamicTerrainFeature.h:181
Command which can be given to the dynamic terrain system to perform some change. This class is a simp...
Definition: DtDynamicTerrainChange.h:42
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
Contains makVrv::DtOsgEarthMemoryFeatureSource class.
osg::ref_ptr< osgEarth::VirtualProgram > myTerrainEngineVirtualProgram
Definition: DtOsgEarthDynamicTerrainFeature.h:198