![]() |
VR-Forces Developer's Guide
|
DtOsgEarthDynamicTerrainFeature is a special DtDynamicTerrainFeature which listens to all the dynamic terrain change requests and translates them into osgEarth specific dynamic terrain layers. Explosive crater changes are turned into decals on the imagery, elevation, and land use layers. Persistant Vehicle Tracks are turned into features which are passed to a RoadSurfaceLayer for baking into an imagery layer.

Protected Types | |
| typedef osg::ref_ptr< osg::Image > | ImageRef |
| typedef std::multimap < std::string, DtProp * > | DynamicPropMap |
Protected Types inherited from makVrv::DtDisconnectable | |
| enum | State { NotUsed, InUse, Disconnected } |
| typedef tbb::spin_mutex | Mutex |
Protected Member Functions | |
| virtual void | processChanges (const DtDynamicTerrainChange &command) |
| virtual void | removeTerrainChange (const DtDynamicTerrainChange &change) override |
| virtual void | removeTerrainPersistentTrackChange (const DtDynamicTerrainChange &change) |
| virtual void | removeTerrainDeformationChange (const DtDynamicTerrainChange &change) |
| virtual void | sendTrackUpdates () |
| virtual bool | parseTrackParameters (const DtDynamicTerrainChange &change, std::string &trackId, std::string &trackType, std::string &soilType, std::string &trackDepth) const |
| virtual void | slot_observerSettingRemoved (DtObserverObject *observer, int setting) |
| virtual void | slot_observerSettingChanged (DtObserverObject *observer, int setting, bool value) |
| virtual void | setupTrackUpdatesEnabled () |
| bool | destroyDynamicProp (const std::string &id) |
| void | destroyAllDynamicProp () |
| DtProp * | addDynamicPropModel (const std::string &modelDefinition, const DtVector ¢er, double orientation) |
Protected Member Functions inherited from makVrv::DtDynamicTerrainFeature | |
| void | indexDoubleAscending (const DtString &key) |
| void | indexDoubleDescending (const DtString &key) |
| void | indexIntAscending (const DtString &key) |
| void | indexIntDescending (const DtString &key) |
| void | indexStringAscending (const DtString &key) |
| void | indexStringDescending (const DtString &key) |
| void | setupIndex (const DtString &key, DtDynamicTerrainIndex *index) |
Additional Inherited Members | |
Public Types inherited from makVrv::DtDynamicTerrainFeature | |
| typedef boost::function< void(const DtDynamicTerrainFeature &)> | Callback |
| typedef boost::function< void(const DtDynamicTerrainFeature &, const DtDynamicTerrainChanges &)> | ChangeCallback |
Static Public Member Functions inherited from makVrv::DtDynamicTerrainFeature | |
| static unsigned long long | GetObjectCount () |
| static unsigned long long | GetObjectCount () |
| static bool | Create (const boost::shared_ptr< DtDynamicTerrainFeature > &featureInfo, const boost::shared_ptr< RequestInfo > &reqInfo) |
| static unsigned long long | GetObjectCount () |
|
protected |
|
protected |
List of props added for craters on runway or debris around OSM buildings.
|
explicit |
constructor
|
virtual |
destructor
|
delete |
default constructor not implemented
|
delete |
Copy Constructor not implemented – Copy Not Allowed.
|
delete |
Assignment Operator Not implemented – Assignment Not Allowed.
|
overridevirtual |
Feature description functions Allows feature to describe itself (for a gui mostly). These can all be called from query callbacks. None of the values returned by these functions have any meaning besides informational.
A description of what is in the feature, how it is setup, configuration, etc.
Implements makVrv::DtDynamicTerrainFeature.
|
overridevirtual |
geometry for this feature. Currently always null since osgEarth cares about all of them
Implements makVrv::DtDynamicTerrainFeature.
|
overridevirtual |
check to see if this feature cares about this command (checks state to see if it is in the command)
Implements makVrv::DtDynamicTerrainFeature.
|
overridevirtual |
always true since this feature cares about
Implements makVrv::DtDynamicTerrainFeature.
|
overridevirtual |
apply a change state. DtDynamicTerrainFeature pure virtual method implementation
Implements makVrv::DtDynamicTerrainFeature.
|
virtual |
add a decal for this crater state change on the dynamic terrain
|
virtual |
add a decal for this persistent track state change on the dynamic terrain
|
virtual |
add a decal for this linear state change on the dynamic terrain (Berm/Ditch)
|
virtual |
add a decal for this tank scrape deformation
|
virtual |
for now it is never in the default state
Implements makVrv::DtDynamicTerrainFeature.
|
virtual |
for now there is never a last default state of true either
Implements makVrv::DtDynamicTerrainFeature.
|
overridevirtual |
This is currently called by the dynamic terrain page logic. We haven't decided what (if any) behavior we might want here, but we don't want the default, so we override this for now and do nothing.
Reimplemented from makVrv::DtDynamicTerrainFeature.
|
virtual |
hooked up to the shared state signal for reloading the shaders and reloads the track layer shaders
|
virtual |
search the model definitions for Persistent Tracks definitions and build a style for each
|
virtual |
find the style for the track based on the parameters. trackType is required to match exactly this function will try to find styles with and without the soilType and the trackDepth. If there is an entry with all 3 keys that will match first then it will look for just trackType and soilType, then it will look for trackType and trackDepth lastly it will try and find a style for just this trackType.
|
protectedvirtual |
Convert DtDynamicTerrainLine to osgEarth::Feature.
helper function for applying a change state.
|
overrideprotectedvirtual |
Remove a terrain change calls the more specific terrain change function based on the change.
Reimplemented from makVrv::DtDynamicTerrainFeature.
|
protectedvirtual |
Remove a persistent track change state.
|
protectedvirtual |
Remove a terrain deformation change state.
|
protectedvirtual |
send the osgEarth Features down to the RoadSurfaceLayer for the tracks. This needs to be done when the show treads setting changes to true on at least one observer or if it is true then when a new track update comes across the network
|
protectedvirtual |
utility function for reading the parameters for a track change into strings
|
protectedvirtual |
Check to see if the show treads setting changed and setup the myTrackUpdatesEnabled based on the setting.
|
protectedvirtual |
Check to see if the show treads setting changed and setup the myTrackUpdatesEnabled based on the setting.
|
protectedvirtual |
Update the myTrackUpdatesEnabled flag based on the show treads observer mode settings for the active observer objects.
|
protected |
destroy dynamic props (craters, debris, ..)
|
protected |
destroy all dynamic props (craters, debris, ..)
|
protected |
add dynamic props model (crater on runway or debris)
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |