VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Classes | Protected Member Functions | Friends
DtVrfTerrain Class Reference

Replaces DtTerrain so we can supply our own DtFeatureLayer type. More...

Inheritance diagram for DtVrfTerrain:
Inheritance graph
[legend]

Classes

class  Creator
 VRV creator. More...

Protected Member Functions

 DtVrfTerrain (makVrv::DtDe &de, makVrv::DtAgentManagerInterface &agentManager)
makVrv::DtFeatureLayeraddFeatureLayer (const std::string &featureLayerFilename, makArchives::DtTerrainOperationRecord::TargetApplication target)
 Taken from DtTerrain::addFeatureLayer just with new DtVrfVrvFeatureLayer type.
- Protected Member Functions inherited from makVrv::DtTerrain
void executeTerrainOperation (const makArchives::DtTerrainOperationRecord &operation, const makArchives::DtTerrainRecord &terrainRec)
 Execute a terrain operation. For example, adding a terrain patch.
void addTerrainOperationRecord (const makArchives::DtTerrainOperationRecord &operation)
 Add a terrain operations record and emit signal_terrainOperationAdded.
void removeTerrainOperationRecord (const makArchives::DtTerrainOperationRecord &operation)
 Remove a previously added record.
void removeTerrainOperationRecord (int id)
 Removed a terrain operations record and emit signal_terrainOperationAdded.
void clearTerrainOperations ()
 Remove all terrain operations from myTerrainOperationsMap emitting signals.

Friends

class Creator

Additional Inherited Members

- Public Types inherited from makVrv::DtTerrain
typedef std::list
< DtTerrainPatch * > 
TerrainPatches
typedef std::list
< DtFeatureLayer * > 
FeatureLayers
typedef std::list< DtOceanLayer * > OceanLayers
typedef std::map< int,
makArchives::DtTerrainOperationRecord
TerrainOperationsMap
 Map of terrain operation ids, to terrain operations.
- Public Member Functions inherited from makVrv::DtTerrain
 DtTerrain (DtDe &de, DtAgentManagerInterface &sceneManagerInterface)
 CTOR.
 ~DtTerrain ()
 DTOR.
void clear ()
 Clear the terrain.
bool isPropNameUsed (const std::string &propName) const
 Checks whether a prop name is in use.
virtual bool getTerrainIntersection (double x, double y, double z, double upX, double upY, double upZ, double &retX, double &retY, double &retZ)
 Get the closest intersection to x,y,z.
virtual void clearElevationCache ()
 If any of the terrain's patch objects is using an elevation cache, clear them (otherwise do nothing).
virtual const std::string * findOptionalParameter (const std::string &name) const
 Find an optional parameter.
virtual void setOptionalParameter (const std::string &name, const std::string &value)
 Set an optional parameter.
virtual void setOptionalParameters (const makArchives::DtTerrainRecord::OptionalParameterMap &)
 Set an optional parameters.
virtual void removeOptionalParameter (const std::string &name)
 Remove an optional parameter.
const
makArchives::DtTerrainRecord::OptionalParameterMap
optionalParameters () const
 Get the optional parameters.
bool globalScaleTerrain () const
 Checks to see if the terrain is a global scale terrain.
void updateGlobalScaleTerrain ()
 Rechecks if the terrain is of global scale.
virtual void getRecord (makArchives::DtTerrainRecord &rec)
 Fill out a DtTerrainRecord with the current terrain info. Called by saveTerrain().
virtual void setFromRecord (const makArchives::DtTerrainRecord &rec)
 Populate a DtTerrain from a DtTerrainRecord. Called by loadTerrain().
virtual DtTerrainPatchaddTerrainPatch (const makArchives::DtTerrainPatchRecord &rec)
 Create and add a new terrain patch driver.
virtual DtTerrainPatchaddTerrainPatch (const std::string &terrainDefinitionName)
 Create and add a new terrain patch driver.
virtual DtTerrainPatchfindTerrainPatch (const std::string &terrainDefinitionName)
 Return the DtTerrainPatchObjectAgent with the name terrainName.
virtual DtTerrainPatchfindTerrainPatch (DtUniqueID id)
 Return the DtTerrainPatchObjectAgent with the unique id.
virtual bool removeTerrainPatch (const std::string &terrainDefinitionName)
 Find and delete a terrain.
const TerrainPatchesterrainPatches () const
 Get the terrain drivers.
TerrainPatchesterrainPatches ()
 Get the terrain drivers.
virtual const
TerrainOperationsMap
terrainOperationsMap () const
virtual DtFeatureLayeraddFeatureLayer (const makArchives::DtFeatureLayerRecord &rec, makArchives::DtTerrainOperationRecord::TargetApplication target=makArchives::DtTerrainOperationRecord::VisualizationAndSimulation)
 Add a feature layer.
virtual void removeFeatureLayer (const std::string &featureLayerFilename)
 Remove a feature layer. Emits signal_terrainPatchToBeDeleted.
virtual const FeatureLayersfeatureLayers () const
 Accessor for FeatureLayers.
virtual FeatureLayersfeatureLayers ()
 Accessor for FeatureLayers.
virtual DtFeatureLayerfindFeatureLayer (const std::string &featureLayerFilename)
 Return the DtFeatureLayer with the name featureLayerFilename.
virtual DtBuoyLayerbuoyLayer ()
 Return the buoy layer.
virtual DtDynamicFeatureLayerdynamicFeatureLayer ()
 Return the dynamic feature layer.
virtual DtNavigationLightManagernavigationLightManager ()
 Return the nav light manager.
virtual
DtNavigationDaymarkManager
navigationDaymarkManager ()
 Return the nav daymark manager.
virtual DtOceanLayeraddOceanLayer (const makArchives::DtOceanLayerRecord &rec)
 Add an ocean layer.
virtual DtOceanLayeraddOceanLayer (const std::string &layerName)
 Create and add a DtOceanLayer.
virtual void removeOceanLayer (const std::string &layerName)
 Remove a ocean layer. Emits signal_oceanLayerToBeDeleted.
virtual const OceanLayersoceanLayers () const
 Accessor for OceanLayers.
virtual OceanLayersoceanLayers ()
 Accessor for OceanLayers.
virtual DtOceanLayerfindOceanLayer (const std::string &layerName)
 Return the DtOceanLayer with the name layerName.
virtual void onOceanNodesExtracted (DtTerrainPatchObject &patchObject)
 Slot called when ocean nodes are extracted.
std::string generatePropName (const std::string &propType)
 Generate a unique name for the prop.
virtual DtForestforest ()
 Return the DtForestObjectDriver.
virtual bool exportTerrainAndProps (const std::string &)
 Saves terrain geometry and props to specified file.
- Protected Types inherited from makVrv::DtTerrain
typedef std::map< std::string,
int
PropNameMap
- Protected Attributes inherited from makVrv::DtTerrain
DtDemyDe
DtTerrainSignalermySignaler
DtAgentManagerInterfacemyAgentManagerInterface
TerrainPatches myTerrainPatches
FeatureLayers myFeatureLayers
OceanLayers myOceanLayers
DtForest myForest
DtBuoyLayermyBuoyLayer
DtDynamicFeatureLayermyDynamicFeatureLayer
DtNavigationLightManagermyNavigationLightManager
DtNavigationDaymarkManagermyNavigationDaymarkManager
TerrainOperationsMap myTerrainOperationsMap
int myNextTerrainOperationId
bool myGlobalScaleFlag
PropNameMap myPropNameMap
makArchives::DtTerrainRecord::OptionalParameterMap myOptionalParameters
DtTexturedQuadmyLogo

Detailed Description

Replaces DtTerrain so we can supply our own DtFeatureLayer type.

Constructor & Destructor Documentation

DtVrfTerrain::DtVrfTerrain ( makVrv::DtDe de,
makVrv::DtAgentManagerInterface agentManager 
)
protected

Member Function Documentation

makVrv::DtFeatureLayer& DtVrfTerrain::addFeatureLayer ( const std::string &  featureLayerFilename,
makArchives::DtTerrainOperationRecord::TargetApplication  target 
)
protectedvirtual

Taken from DtTerrain::addFeatureLayer just with new DtVrfVrvFeatureLayer type.

Reimplemented from makVrv::DtTerrain.

Friends And Related Function Documentation

friend class Creator
friend

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)