VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Friends

DtTerrainEditorLogic.

logic class to drive the DtTerrainEditorWidget.

Classes

class  DtTerrainEditorMapCallbak
 

Public Member Functions

virtual ~DtTerrainEditorLogic ()
 
virtual void setTerrainContentItemVisible (const DtTerrainEditorInterface::TerrainContentItemKey &key, bool visible)
 
virtual void setTerrainContentItemName (const DtTerrainEditorInterface::TerrainContentItemKey &key, const std::string &newName)
 
virtual void moveTerrainContentItem (const DtTerrainEditorInterface::TerrainContentItemKey &key, bool up)
 

Protected Member Functions

 DtTerrainEditorLogic (DtDe &de, DtTerrainEditorInterface *iFace)
 
virtual void connectSignals ()
 
virtual void disconnectSignals ()
 
virtual void syncCurrentScene ()
 
virtual void onImageLayerCreated (osgEarth::ImageLayer *imageLayer)
 
virtual void onElevationLayerCreated (osgEarth::ElevationLayer *elevationLayer)
 
virtual void onModelLayerCreated (osgEarth::ModelLayer *modelLayer)
 
virtual void onMaskLayerCreated (osgEarth::TerrainConstraintLayer *maskLayer)
 
virtual void syncImageLayerToOsgEarthFile (osgEarth::ImageLayer *imageLayer)
 
virtual void syncElevationLayerToOsgEarthFile (osgEarth::ElevationLayer *elevationLayer)
 
virtual void syncModelLayerToOsgEarthFile (osgEarth::ModelLayer *modelLayer)
 
virtual void syncMaskLayerToOsgEarthFile (osgEarth::TerrainConstraintLayer *maskLayer)
 
virtual void syncMaskConfigToOsgEarthFile (const std::string &name, const std::string &boundary)
 
virtual void removeConfigInOsgEarthFile (const std::string &key, const std::string &name)
 
virtual void onOsgEarthTerrainCleared ()
 
virtual void setTerrainPropertyItemOption (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 
virtual void setOsgEarthFragmentOptions (const DtOsgEarthFile *file)
 
virtual void commitChange (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 
DtOsgEarthDataRequestcreateOsgEarthTerrainLayerRequest (int type, const std::string &name, const std::string &driver, const DtUnicode &url)
 
DtOsgEarthDataRequestcreateOsgEarthModelLayerRequest (const std::string &name, const std::string &driver, const DtUnicode &url, const std::string &wfsType)
 
virtual void reloadTerrainPatch (const std::string &terrainDefinition)
 
virtual void reloadOsgEarthTerrain ()
 
virtual DtTerrainPatchfindTerrainPatch (const std::string &defintion)
 
virtual DtFeatureLayerfindFeatureLayer (const std::string &name)
 
virtual DtOceanLayerfindOceanLayer (const std::string &name)
 
virtual bool ifTerrainContentItemHasProperty (DtTerrainEditorInterface::TerrainContentItemType type)
 
virtual void removeTemplateFiles ()
 
virtual void addData (const std::string &url, QFlags< Qt::KeyboardModifier > keyModifiers)
 
virtual int findIndexForGroupItem (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 
virtual DtUnicode findFileNameOfTerrainPatch (const std::string &terrainDefinition)
 
virtual bool isOsgEarthTerrain (const DtUnicode &fileName)
 
int getContentGroupKeyTypeFromClassName (const std::string &className) const
 
int getContentItemKeyTypeFromClassName (const std::string &className) const
 
virtual std::string getTerrainContentGroupItemDisplayName (int type)
 
bool isTerrainContentItemVisibilityCheckboxEnabled (int type) const
 
virtual void populateTerrainPatch (const DtTerrainPatchObject *terrainPatchObject, int sequence)
 
virtual void populateFeatureLayer (const DtFeatureLayer *featureLayer, int sequence)
 
virtual void populateOceanLayer (const DtOceanLayer *oceanLayer, int sequence)
 
virtual void processOsgEarthTerrain (const std::string &terrainDefinition, const DtUnicode &fileName)
 
template<typename T >
void populateOsgEarthLayers ()
 
virtual void populateOsgEarthLayer (osg::ref_ptr< osgEarth::Layer > layer, int index)
 
virtual void populateOsgEarthTerrain ()
 
virtual void populateOsgEarthFragments ()
 
virtual void populateImageLayers ()
 
virtual void populateElevationLayers ()
 
virtual void populateLandCoverLayers ()
 
virtual void populateImageLayer (osgEarth::ImageLayer *imageLayer, int sequence)
 
virtual void populateElevationLayer (osgEarth::ElevationLayer *elevationLayer, int sequence)
 
virtual void populateLandCoverLayer (osgEarth::LandCoverLayer *layer, int sequence)
 
virtual void slot_terrainPatchCreated (DtTerrainPatchObject &terrainPatchObject)
 
virtual void slot_terrainPatchToBeDeleted (const DtTerrainPatch &patch)
 
virtual void slot_featureLayerAdded (const DtFeatureLayer &layer)
 
virtual void slot_featureLayerToBeDeleted (const DtFeatureLayer &layer)
 
virtual void slot_oceanLayerAdded (const DtOceanLayer &layer)
 
virtual void slot_oceanLayerToBeDeleted (const DtOceanLayer &layer)
 
virtual void slot_terrainLoaded (const makArchives::DtTerrainRecord &)
 
virtual void slot_terrainToBeCleared (bool reload)
 
virtual void slot_clientAdded ()
 
virtual void slot_terrainCleared ()
 
virtual void slot_terrainContentTreeWidget_itemDoubleClicked (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 
virtual void slot_osgEarthFragmentTreeWidget_currentItemChanged (const std::string &key)
 
virtual void slot_terrainContentCommitChangesButtonReleased (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 
virtual void slot_terrainContentRevertChangesButtonReleased (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 
virtual void slot_terrainPropertyTreeWidgetItem_currentItemChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 
virtual void slot_osgEarthFragmentCommitChangesButtonReleased (const std::vector< DtTerrainEditorInterface::TerrainContentItemKey > &keys)
 
virtual void slot_saveTerrainContentTreeWidgetItem (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 
virtual void slot_deleteTerrainContentTreeWidgetItem (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 
virtual void slot_addFeatureLayerButtonReleased (const DtUnicode &fileName, bool toFrontEnd, bool toSimEngine)
 
virtual void slot_addOceanLayerButtonReleased ()
 
virtual void slot_generateBoundaryButton_released ()
 
virtual void slot_osgEarthTerrainLayerRequestAdded (int type, const std::string &name, const std::string &driver, const DtUnicode &url)
 
virtual void slot_osgEarthModelLayerRequestAdded (const std::string &name, const std::string &driver, const DtUnicode &url, const std::string &wfsType)
 
virtual void slot_generateBoundary (const std::string &terrainPatchDefinition, const std::string &name, bool geocentric, bool convexHull)
 
virtual void slot_generateCacheButtonReleased ()
 
virtual void slot_saveTerrain ()
 
virtual void slot_quit ()
 
virtual void slot_addData (std::vector< std::string > files, Qt::KeyboardModifiers keyModifiers)
 
virtual void slot_terrainDescriptionChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, const std::string &description)
 
virtual void slot_visibleLayerVisiblityChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, bool visible)
 
virtual void slot_visibleLayerOpacityChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, double opacity)
 
virtual void slot_visibleLayerMinVisibleRangeChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, double minRange)
 
virtual void slot_visibleLayerMaxVisibleRangeChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, double maxRange)
 
virtual void slot_osgEarthDebugModeStateChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, bool enabled)
 
virtual void slot_terrainMaxPagedLODsChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, int maxPagedLODs)
 
virtual void slot_terrainPatchIsPageableStateChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, bool enabled)
 
virtual void slot_terrainPatchPageOutDistanceChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, double pageOutDistance)
 
virtual void slot_oceanLayerNameChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, const std::string &name)
 
virtual void slot_oceanLayerHeightChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, double height)
 
virtual void slot_oceanLayerLodChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, int lod)
 
virtual void moveCameraToGeoExtent (const osgEarth::GeoExtent &geoExtent)
 
virtual void moveCameraToTerrainCenter (const std::string &terrainDefinition)
 
osgEarth::GeoExtent findGeoExtentForGroundCoverLayer (osgEarth::Splat::GroundCoverLayer *layer)
 
osgEarth::GeoExtent findGeoExtentForSplatLayer (osgEarth::Splat::SplatLayer *layer)
 
virtual void updateOsgEarthTerrainProperty (const std::string &oldName, const osgEarth::MapOptions &mapOptions, const osgEarth::MapNodeOptions &mapNodeOptions, const osgEarth::TerrainOptions &terrainOptions)
 
virtual void updateImageLayerProperty (osgEarth::ImageLayer *layer, const osgEarth::ImageLayerOptions &options)
 
virtual void updateElevationLayerProperty (osgEarth::ElevationLayer *layer, const osgEarth::ElevationLayerOptions &options)
 
virtual void updateModelLayerProperty (osgEarth::ModelLayer *layer, const osgEarth::ModelLayerOptions &options)
 
virtual void updateOpenFlightTerrainProperty (DtTerrainPatch *patch, const makArchives::DtModelDefinitionRecord &rec)
 
virtual void updateFeatureLayerProperty (DtFeatureLayer *layer, const makArchives::DtFeatureLayerRecord &rec)
 
virtual void updateOceanLayerProperty (DtOceanLayer *layer, const makArchives::DtOceanLayerRecord &rec)
 
virtual void getConfigForOsgEarthTerrainProperty (const osgEarth::MapOptions &mapOptions, const osgEarth::MapNodeOptions &mapNodeOptions, const osgEarth::TerrainOptions &terrainOptions, osgEarth::Config &mapConfig, osgEarth::Config &optionConfig)
 
virtual void getConfigForImageLayer (osgEarth::ImageLayer *layer, const osgEarth::ImageLayerOptions &options, osgEarth::Config &optionConfig)
 
virtual void getConfigForElevationLayer (osgEarth::ElevationLayer *layer, const osgEarth::ElevationLayerOptions &options, osgEarth::Config &optionConfig)
 
virtual void getConfigForModelLayer (osgEarth::ModelLayer *layer, const osgEarth::ModelLayerOptions &options, osgEarth::Config &optionConfig)
 
virtual void getConfigForMaskLayer (osgEarth::TerrainConstraintLayer *layer, const osgEarth::MaskLayerOptions &options, osgEarth::Config &optionConfig)
 
virtual void saveTerrain ()
 
virtual void saveTerrainPatches ()
 
virtual void saveFeatureLayers ()
 
virtual void saveOceanLayers ()
 
virtual void saveImageLayers ()
 
virtual void saveElevationLayers ()
 
virtual void saveModelLayers ()
 
virtual void saveBuildingLayers ()
 
virtual void saveLandCoverLayers ()
 
virtual void saveGroundCoverLayers ()
 
virtual void saveRoadSurfaceLayers ()
 
virtual void saveSplatLayers ()
 
virtual void saveOsgEarthTerrain ()
 
virtual void saveTerrainPatch (DtTerrainPatch *patch)
 
virtual void saveFeatureLayer (DtFeatureLayer *feature)
 
virtual void saveOceanLayer (DtOceanLayer *ocean)
 
virtual void saveImageLayer (osgEarth::ImageLayer *layer)
 
virtual void saveElevationLayer (osgEarth::ElevationLayer *layer)
 
virtual void saveModelLayer (osgEarth::ModelLayer *layer)
 
virtual void saveBuildingLayer (osgEarth::Buildings::BuildingLayer *layer)
 
virtual void saveLandCoverLayer (osgEarth::LandCoverLayer *layer)
 
virtual void saveGroundCoverLayer (osgEarth::Splat::GroundCoverLayer *layer)
 
virtual void saveRoadSurfaceLayer (osgEarth::Splat::RoadSurfaceLayer *layer)
 
virtual void saveSplatLayer (osgEarth::Splat::SplatLayer *layer)
 
virtual void saveOsgEarthLayer (osgEarth::Layer *layer)
 
virtual void removeTerrain ()
 
virtual void removeTerrainPatches ()
 
virtual void removeFeatureLayers ()
 
virtual void removeOsgEarthFeatureLayers ()
 
virtual void removeOceanLayers ()
 
virtual void removeImageLayers ()
 
virtual void removeElevationLayers ()
 
virtual void removeModelLayers ()
 
virtual void removeBuildingLayers ()
 
virtual void removeLandCoverLayers ()
 
virtual void removeGroundCoverLayers ()
 
virtual void removeRoadSurfaceLayers ()
 
virtual void removeSplatLayers ()
 
virtual void removeOsgEarthTerrain ()
 
virtual void removeTerrainPatch (DtTerrainPatch *patch)
 
virtual void removeFeatureLayer (DtFeatureLayer *feature)
 
virtual void removeOceanLayer (DtOceanLayer *ocean)
 
virtual void removeImageLayer (osgEarth::ImageLayer *layer)
 
virtual void removeElevationLayer (osgEarth::ElevationLayer *layer)
 
virtual void removeModelLayer (osgEarth::ModelLayer *layer)
 
virtual void removeBuildingLayer (osgEarth::Buildings::BuildingLayer *layer)
 
virtual void removeLandCoverLayer (osgEarth::LandCoverLayer *layer)
 
virtual void removeGroundCoverLayer (osgEarth::Splat::GroundCoverLayer *layer)
 
virtual void removeRoadSurfaceLayer (osgEarth::Splat::RoadSurfaceLayer *layer)
 
virtual void removeSplatLayer (osgEarth::Splat::SplatLayer *layer)
 
virtual void removeOsgEarthLayer (osgEarth::Layer *layer)
 

Private Member Functions

 DtTerrainEditorLogic ()
 
 DtTerrainEditorLogic (const DtTerrainEditorLogic &)
 
DtTerrainEditorLogicoperator= (const DtTerrainEditorLogic &)
 

Friends

class DtTerrainEditorLogicCreator
 
class DtTerrainEditorMapCallbak
 
DtDemyDe
 
std::string myOsgEarthTerrainDefinition
 
DtUnicode myOsgEarthTerrainFileName
 
std::string myOsgEarthTerrainName
 
std::string myOsgEarthTerrainDir
 
std::string myTemplatePath
 
std::set< DtUnicodemyTemplateFiles
 
DtTerrainEditorInterface::TerrainContentItemKey myOsgEarthTerrainKey
 
std::string myMedfTerrainDir
 
osg::observer_ptr
< osgEarth::MapNode > 
myMapNode
 
osg::observer_ptr< osgEarth::Map > myMap
 
DtTerrainEditorInterfacemyInterface
 
DtSignalConnectionManager mySignals
 
DtSignalConnectionManager myWhileTerrainIsLoadedSignals
 
DtOsgEarthDataRequestQueuemyOsgEarthDataRequestQueue
 
DtOsgEarthFileParsermyOsgEarthFileParser
 
bool myNeedSaveEarthFile
 
bool myReloadFlag
 
std::string myReloadModelName
 
int myInsertIndex
 
makArchives::DtTerrainRecord myOriginalTerrainRecord
 
static bool myDontShowReloadTerrainWarningMessageBox
 
virtual void setTerrainVisibility (bool visible)
 
virtual void setTerrainPatchesVisibility (bool visible)
 
virtual void setFeatureLayersVisibility (bool visible)
 
virtual void setOceanLayersVisibility (bool visible)
 
virtual void setImageLayersVisibility (bool visible)
 
template<typename T >
void setOsgEarthLayerVisibility (bool visible)
 
virtual void setOsgEarthTerrainVisibility (bool visible)
 
virtual void setTerrainPatchVisibility (DtTerrainPatch *patch, bool visible)
 
virtual void setFeatureLayerVisibility (DtFeatureLayer *feature, bool visible)
 
virtual void setOceanLayerVisibility (DtOceanLayer *ocean, bool visible)
 
virtual void createOsgEarthTerrain ()
 
virtual void saveOsgEarthTerrain (const DtUnicode &fileName)
 
virtual DtUnicode generateOsgEarthTerrainFileName ()
 
virtual
DtTerrainEditorInterface::TerrainContentItemKey 
getTerrainContentItemKey (const std::string &type, const std::string &name)
 
virtual void removeImageLayerFromFile (osgEarth::ImageLayer *layer)
 
virtual void removeElevationLayerFromFile (osgEarth::ElevationLayer *layer)
 
virtual void removeModelLayerFromFile (osgEarth::ModelLayer *layer)
 
virtual void removeMaskLayerFromFile (osgEarth::TerrainConstraintLayer *layer)
 

Constructor & Destructor Documentation

virtual makVrv::DtTerrainEditorLogic::~DtTerrainEditorLogic ( )
virtual

DTOR.

makVrv::DtTerrainEditorLogic::DtTerrainEditorLogic ( )
private

Private default constructor not implimented.

makVrv::DtTerrainEditorLogic::DtTerrainEditorLogic ( const DtTerrainEditorLogic )
private

Copy Constructor not implemented – Copy not allowed.

makVrv::DtTerrainEditorLogic::DtTerrainEditorLogic ( DtDe de,
DtTerrainEditorInterface iFace 
)
protected

Protected Constructor. Use DtOsgEarthProfileLogicCreator to create instances of this class.

Member Function Documentation

DtTerrainEditorLogic& makVrv::DtTerrainEditorLogic::operator= ( const DtTerrainEditorLogic )
private

Assignment Operator not implemented – Copy not allowed.

virtual void makVrv::DtTerrainEditorLogic::setTerrainContentItemVisible ( const DtTerrainEditorInterface::TerrainContentItemKey key,
bool  visible 
)
virtual

Slot when toggle the check box of the terrain content tree, used to toggle the visibility of the content if applicable.

Parameters
keyThe key of the terrain content item to be modified.
visibleThe visibility of the terrain content item.
virtual void makVrv::DtTerrainEditorLogic::setTerrainContentItemName ( const DtTerrainEditorInterface::TerrainContentItemKey key,
const std::string &  newName 
)
virtual

Slot when rename the item in terrain content tree through context menu.

Parameters
keyThe key of the terrain content item to be modified.
newNameThe name after rename.
virtual void makVrv::DtTerrainEditorLogic::moveTerrainContentItem ( const DtTerrainEditorInterface::TerrainContentItemKey key,
bool  up 
)
virtual

Slot when the user moves up/down the terrain content item through the context menu.

Parameters
keyThe key of the terrain content item to be modified.
upIf true, move up, otherwise move down.
virtual void makVrv::DtTerrainEditorLogic::connectSignals ( )
protectedvirtual

Connect the signals.

virtual void makVrv::DtTerrainEditorLogic::disconnectSignals ( )
protectedvirtual

Disconnect the signals.

virtual void makVrv::DtTerrainEditorLogic::syncCurrentScene ( )
protectedvirtual

Populate the terrain content tree with the contents of the currently loaded terrain. This function is only invoked once - when the terrain editor is created. This function does not clear the terrain content tree before populating.

virtual int makVrv::DtTerrainEditorLogic::findIndexForGroupItem ( const DtTerrainEditorInterface::TerrainContentItemKey key)
protectedvirtual

Find the sequence/index of the top level group item in the terrain content tree depends on the existing top level items. The sequence is Terrain/OsgEarth Terrain/Terrain Patches/Ocean Layers/Feature Layers.

virtual DtUnicode makVrv::DtTerrainEditorLogic::findFileNameOfTerrainPatch ( const std::string &  terrainDefinition)
protectedvirtual

Finds the file name of a terrain patch.

Parameters
terrainDefinitionThe terrain definition.
Returns
empty string if failed.
virtual bool makVrv::DtTerrainEditorLogic::isOsgEarthTerrain ( const DtUnicode fileName)
protectedvirtual

Determine if a terrain file is an osg earth terrain by the "earth" extension.

Returns
return true if the terrain is an osg earth terrain.
int makVrv::DtTerrainEditorLogic::getContentGroupKeyTypeFromClassName ( const std::string &  className) const
protected

Gets the terrain content item type for the group that the osgEarth::Layer belongs in based on class name.

int makVrv::DtTerrainEditorLogic::getContentItemKeyTypeFromClassName ( const std::string &  className) const
protected

Gets the terrain content item type for the osgEarth::Layer based on class name.

virtual std::string makVrv::DtTerrainEditorLogic::getTerrainContentGroupItemDisplayName ( int  type)
protectedvirtual

Gets the display name of group item/top level item of the terrain content tree. empty string if failed.

bool makVrv::DtTerrainEditorLogic::isTerrainContentItemVisibilityCheckboxEnabled ( int  type) const
protected

Gets whether terrain content items of the provided type can have their visibility toggled.

virtual void makVrv::DtTerrainEditorLogic::populateTerrainPatch ( const DtTerrainPatchObject terrainPatchObject,
int  sequence 
)
protectedvirtual

Populate the terrain patch with the given index in the terrain content tree widget.

Parameters
terrainPatchObjectThe terrain patch object to display.
sequenceThe sequence of the terrain patch in all terrain patches, -1 means inserts at last position.
virtual void makVrv::DtTerrainEditorLogic::populateFeatureLayer ( const DtFeatureLayer featureLayer,
int  sequence 
)
protectedvirtual

Populate the feature layer with the given index in the terrain content tree widget.

Parameters
featureLayerThe feature layer to display.
sequenceThe sequence of the feature layer in all feature layers, -1 means inserts at last position.
virtual void makVrv::DtTerrainEditorLogic::populateOceanLayer ( const DtOceanLayer oceanLayer,
int  sequence 
)
protectedvirtual

Populate the ocean layer with the given index in the terrain content tree widget.

Parameters
oceanLayerThe ocean layer to display.
sequenceThe sequence of the ocean layer in all ocean layers, -1 means inserts at last position.
virtual void makVrv::DtTerrainEditorLogic::processOsgEarthTerrain ( const std::string &  terrainDefinition,
const DtUnicode fileName 
)
protectedvirtual

Sets up the necessary components like osgEarth file parser, map callback, finds the map/mapNode, etc.

Parameters
terrainDefinitionThe terrain definition of osgEarth terrain.
fileNameThe file name of osgEarth terrain.
template<typename T >
void makVrv::DtTerrainEditorLogic::populateOsgEarthLayers ( )
protected

Gets all layers of the templated type from the osgEarth::Map and calls populateOsgEarthLayer on each one This function should not be used with composite layers.

virtual void makVrv::DtTerrainEditorLogic::populateOsgEarthLayer ( osg::ref_ptr< osgEarth::Layer >  layer,
int  index 
)
protectedvirtual

Uses widget interface to add an osgEarth layer to the terrain content tree. This function should not be used with composite layers. This function relies on terrain content item types returned by getContentGroupKeyFromClassName and getContentItemKeyTypeFromClassName to determine how the terrain content tree is organized. Finally, this function relies on isTerrainContentItemVisibilityCheckboxEnabled to determine whether the terrain content item should have a checkbox to toggle visibility.

virtual void makVrv::DtTerrainEditorLogic::populateOsgEarthTerrain ( )
protectedvirtual

Populate the contents in osgEarth terrain.

virtual void makVrv::DtTerrainEditorLogic::populateOsgEarthFragments ( )
protectedvirtual

Populate the external xml fragments listed in the main earth file(if any).

virtual void makVrv::DtTerrainEditorLogic::populateImageLayers ( )
protectedvirtual

Populate all the image layers in osgEarth terrain(if any).

virtual void makVrv::DtTerrainEditorLogic::populateElevationLayers ( )
protectedvirtual

Populate all the elevation layers in osgEarth terrain(if any).

virtual void makVrv::DtTerrainEditorLogic::populateLandCoverLayers ( )
protectedvirtual

Populate all the landCover layers in osgEarth terrain(if any).

virtual void makVrv::DtTerrainEditorLogic::populateImageLayer ( osgEarth::ImageLayer *  imageLayer,
int  sequence 
)
protectedvirtual

Populate the image layer with the given sequence of all image layers.

Parameters
imageLayerThe image layer to populate.
sequenceThe sequence of the image layer of all image layers, -1 means inserts at last position.
virtual void makVrv::DtTerrainEditorLogic::populateElevationLayer ( osgEarth::ElevationLayer *  elevationLayer,
int  sequence 
)
protectedvirtual

Populate the elevation layer with the given sequence of all elevation layers.

Parameters
elevationLayerThe elevation layer to populate.
sequenceThe sequence of the elevation layer of all elevation layers, -1 means inserts at last position.
virtual void makVrv::DtTerrainEditorLogic::populateLandCoverLayer ( osgEarth::LandCoverLayer *  layer,
int  sequence 
)
protectedvirtual

Populate the building layer with the given sequence of all building layers.

Parameters
buildingLayerThe building layer to populate.
sequenceThe sequence of the building layer of all building layers, -1 means inserts at last position.
virtual void makVrv::DtTerrainEditorLogic::onImageLayerCreated ( osgEarth::ImageLayer *  imageLayer)
protectedvirtual

Function called when an image layer is created, setup the contents in the gui, update the xml file, etc.

Parameters
imageLayerThe new created image layer.
virtual void makVrv::DtTerrainEditorLogic::onElevationLayerCreated ( osgEarth::ElevationLayer *  elevationLayer)
protectedvirtual

Function called when an elevation layer is created, setup the contents in the gui, update the xml file, etc.

Parameters
elevationLayerThe new created elevation layer.
virtual void makVrv::DtTerrainEditorLogic::onModelLayerCreated ( osgEarth::ModelLayer *  modelLayer)
protectedvirtual

Function called when a model layer is created, setup the contents in the gui, update the xml file, etc.

Parameters
modelLayerThe new created model layer.
virtual void makVrv::DtTerrainEditorLogic::onMaskLayerCreated ( osgEarth::TerrainConstraintLayer *  maskLayer)
protectedvirtual

Function called when a mask layer is created, setup the contents in the gui, update the xml file, etc.

Parameters
maskLayerThe new created mask layer.
virtual void makVrv::DtTerrainEditorLogic::syncImageLayerToOsgEarthFile ( osgEarth::ImageLayer *  imageLayer)
protectedvirtual

Synchronize the image layer option to the earth file when an image layer is added.

Parameters
imageLayerThe image layer to synchronize.
virtual void makVrv::DtTerrainEditorLogic::syncElevationLayerToOsgEarthFile ( osgEarth::ElevationLayer *  elevationLayer)
protectedvirtual

Synchronize the elevation layer option to the earth file when an elevation layer is added.

Parameters
elevationLayerThe elevation layer to synchronize.
virtual void makVrv::DtTerrainEditorLogic::syncModelLayerToOsgEarthFile ( osgEarth::ModelLayer *  modelLayer)
protectedvirtual

Synchronize the model layer option to the earth file when a model layer is added.

Parameters
modelLayerThe model layer to synchronize.
virtual void makVrv::DtTerrainEditorLogic::syncMaskLayerToOsgEarthFile ( osgEarth::TerrainConstraintLayer *  maskLayer)
protectedvirtual

Synchronize the mask layer option to the earth file when a mask layer is added.

Parameters
maskLayerThe mask layer to synchronize.
virtual void makVrv::DtTerrainEditorLogic::syncMaskConfigToOsgEarthFile ( const std::string &  name,
const std::string &  boundary 
)
protectedvirtual

Synchronize the mask config option to the earth file.

name The name attribute of the mask. The value of "geometry" in mask layer, usually generated by DtOsgEarthBoundary class.

virtual void makVrv::DtTerrainEditorLogic::removeConfigInOsgEarthFile ( const std::string &  key,
const std::string &  name 
)
protectedvirtual

Remove a xml element in the earth file with the given key and name attribute.

virtual void makVrv::DtTerrainEditorLogic::onOsgEarthTerrainCleared ( )
protectedvirtual

Clean/Reset all osgEarth related variables when the osgEarth terrain is cleared.

virtual void makVrv::DtTerrainEditorLogic::slot_terrainPatchCreated ( DtTerrainPatchObject terrainPatchObject)
protectedvirtual

Slot function called when the DtTerrainPatchObjectSignaler signals that a new terrain has been added.

virtual void makVrv::DtTerrainEditorLogic::slot_terrainPatchToBeDeleted ( const DtTerrainPatch patch)
protectedvirtual

Slot function called when the DtTerrainPatchObjectSignaler signals that a terrain about to be deleted.

virtual void makVrv::DtTerrainEditorLogic::slot_featureLayerAdded ( const DtFeatureLayer layer)
protectedvirtual

Slot function called when the DtTerrainSignaler signals that a new feature layer has been added.

virtual void makVrv::DtTerrainEditorLogic::slot_featureLayerToBeDeleted ( const DtFeatureLayer layer)
protectedvirtual

Slot function called when the DtTerrainSignaler signals that a new feature layer about to be deleted.

virtual void makVrv::DtTerrainEditorLogic::slot_oceanLayerAdded ( const DtOceanLayer layer)
protectedvirtual

Slot function called when the DtTerrainSignaler signals that a new ocean layer has been added.

virtual void makVrv::DtTerrainEditorLogic::slot_oceanLayerToBeDeleted ( const DtOceanLayer layer)
protectedvirtual

Slot function called when the DtTerrainSignaler signals that a new ocean layer about to be deleted.

virtual void makVrv::DtTerrainEditorLogic::slot_terrainLoaded ( const makArchives::DtTerrainRecord )
protectedvirtual

Slot function called when the DtTerrainSignaler signals that the terrain has been loaded.

virtual void makVrv::DtTerrainEditorLogic::slot_terrainToBeCleared ( bool  reload)
protectedvirtual

Slot function called when the DtTerrainSignaler signals that the terrain is about to be cleared.

virtual void makVrv::DtTerrainEditorLogic::slot_clientAdded ( )
protectedvirtual

Slot function called when the DtIgCommunicatorSignaler signals that a client is about to be connected.

virtual void makVrv::DtTerrainEditorLogic::slot_terrainCleared ( )
protectedvirtual

Slot function called when the DtTerrainSignaler signals that the terrain has been cleaned.

virtual void makVrv::DtTerrainEditorLogic::slot_terrainContentTreeWidget_itemDoubleClicked ( const DtTerrainEditorInterface::TerrainContentItemKey key)
protectedvirtual

Slot when double click on the terrain content tree, used to navigate the observer to the center of content if appliable.

Parameters
keyThe key of the current selected terrain content item.
virtual void makVrv::DtTerrainEditorLogic::slot_osgEarthFragmentTreeWidget_currentItemChanged ( const std::string &  key)
protectedvirtual

Slot when the current item in the osgEarth fragment tree widget changes.

Parameters
keyThe key of the fragment tree widget item, usually the url of the fragment.
virtual void makVrv::DtTerrainEditorLogic::slot_terrainContentCommitChangesButtonReleased ( const DtTerrainEditorInterface::TerrainContentItemKey key)
protectedvirtual

Slot when user hit the commit changes button.

Parameters
keyThe key of the current selected terrain content item.
virtual void makVrv::DtTerrainEditorLogic::slot_terrainContentRevertChangesButtonReleased ( const DtTerrainEditorInterface::TerrainContentItemKey key)
protectedvirtual

Slot when user hit the revert changes button.

Parameters
keyThe key of the current selected terrain content item.
virtual void makVrv::DtTerrainEditorLogic::slot_terrainPropertyTreeWidgetItem_currentItemChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key)
protectedvirtual

Slot when the current item in the terrain property tree changed.

Parameters
keyThe key of the current selected terrain content item.
virtual void makVrv::DtTerrainEditorLogic::slot_osgEarthFragmentCommitChangesButtonReleased ( const std::vector< DtTerrainEditorInterface::TerrainContentItemKey > &  keys)
protectedvirtual

Slot when user hits the commit button when the osgEarth fragment Tab is enabled.

Parameters
keysThe keys of all the terrain content items that included in the selected external fragment file.
virtual void makVrv::DtTerrainEditorLogic::slot_saveTerrainContentTreeWidgetItem ( const DtTerrainEditorInterface::TerrainContentItemKey key)
protectedvirtual

Slot when the user clicks save on the terrain content item through the context menu(if appliable).

Parameters
keyThe key of the current selected terrain content item.
virtual void makVrv::DtTerrainEditorLogic::slot_deleteTerrainContentTreeWidgetItem ( const DtTerrainEditorInterface::TerrainContentItemKey key)
protectedvirtual

Slot when the user clicks save on the terrain content item.

Parameters
keyThe key of the current selected terrain content item.
virtual void makVrv::DtTerrainEditorLogic::slot_addFeatureLayerButtonReleased ( const DtUnicode fileName,
bool  toFrontEnd,
bool  toSimEngine 
)
protectedvirtual

Slot when user clicks on the add feature layer button(MAK Terrain Toolkit feature layer).

Parameters
fileNameThe file name of the feature layer about to be added.
toFrontEndWhether or not the feature layer is applied to the front end
toSimEngineWhether or not the feature layer is applied to the simulation engine
virtual void makVrv::DtTerrainEditorLogic::slot_addOceanLayerButtonReleased ( )
protectedvirtual

Slot when user clicks on the add ocean layer button.

Parameters
fileNameThe file name of the ocean layer about to be added.
virtual void makVrv::DtTerrainEditorLogic::slot_generateBoundaryButton_released ( )
protectedvirtual

Slot when user clicks on the generate boundary button.

virtual void makVrv::DtTerrainEditorLogic::slot_osgEarthTerrainLayerRequestAdded ( int  type,
const std::string &  name,
const std::string &  driver,
const DtUnicode url 
)
protectedvirtual

Slot when a terrain layer(Image/Elevation) has been added through the gui.

Parameters
typeDtOsgEarthDataRequest::OsgEarthDataType enum, present the type of the layer.
driverThe driver used to render this layer, required.
urlThe URI of the layer, can be a local file path or remote URI.
nameThe name of the layer, must be unique.
virtual void makVrv::DtTerrainEditorLogic::slot_osgEarthModelLayerRequestAdded ( const std::string &  name,
const std::string &  driver,
const DtUnicode url,
const std::string &  wfsType 
)
protectedvirtual

Slot when a model layer has been added through the gui.

Parameters
nameThe name of the layer, must be unique.
driverThe driver used to render this layer, required.
urlThe URI of the layer, can be a local file path or remote URI.
wfsTypeThe wfs typename of the model layer, only appliable if the model source is wfs(OGC Web Feature Service).
virtual void makVrv::DtTerrainEditorLogic::slot_generateBoundary ( const std::string &  terrainPatchDefinition,
const std::string &  name,
bool  geocentric,
bool  convexHull 
)
protectedvirtual

Slot when receive the request to generate boundary for a given terrain patch.

Parameters
terrainPatchDefinitionThe terrain definition of the terrain patch which used to generate boundary.
nameThe name of the mask layer.
geocentricIf the terrain database is geocentric.
convexHullCalculate a convex hull instead of a full boundary.
virtual void makVrv::DtTerrainEditorLogic::slot_generateCacheButtonReleased ( )
protectedvirtual

Slot when user clicks on the generate cache button.

virtual void makVrv::DtTerrainEditorLogic::slot_saveTerrain ( )
protectedvirtual

Slot when receive the request to save the terrain(MTF terrain) through the context menu.

virtual void makVrv::DtTerrainEditorLogic::slot_quit ( )
protectedvirtual

Slot when the application is quiting.

virtual void makVrv::DtTerrainEditorLogic::slot_addData ( std::vector< std::string >  files,
Qt::KeyboardModifiers  keyModifiers 
)
protectedvirtual

The slot when user drag and drop data into the terrain editor.

virtual void makVrv::DtTerrainEditorLogic::slot_terrainDescriptionChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key,
const std::string &  description 
)
protectedvirtual

Slot when the description of the terrain has changed.

Parameters
keyThe key of the current selected layer.
descriptionThe description of the terrain.
virtual void makVrv::DtTerrainEditorLogic::slot_visibleLayerVisiblityChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key,
bool  visible 
)
protectedvirtual

Slot when the visibility of the layer has changed.

Parameters
keyThe key of the current selected layer.
visibleThe visibility of the layer.
virtual void makVrv::DtTerrainEditorLogic::slot_visibleLayerOpacityChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key,
double  opacity 
)
protectedvirtual

Slot when the opacity of the layer has changed.

Parameters
keyThe key of the current selected layer.
opacityThe opacity of the layer with values ranging [0, 1].
virtual void makVrv::DtTerrainEditorLogic::slot_visibleLayerMinVisibleRangeChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key,
double  minRange 
)
protectedvirtual

Slot when the minimal visible range of the layer has changed.

Parameters
keyThe key of the current selected layer.
minRangeThe minimal visible range.
virtual void makVrv::DtTerrainEditorLogic::slot_visibleLayerMaxVisibleRangeChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key,
double  maxRange 
)
protectedvirtual

Slot when the maximum visible range of the layer has changed.

Parameters
keyThe key of the current selected layer.
maxRangeThe maximum visible range.
virtual void makVrv::DtTerrainEditorLogic::slot_osgEarthDebugModeStateChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key,
bool  enabled 
)
protectedvirtual

Slot when the osgEarth debug mode state has changed.

Parameters
keyThe key of the current selected layer.
enabledWhether or not osgEarth debug mode is enabled.
virtual void makVrv::DtTerrainEditorLogic::slot_terrainMaxPagedLODsChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key,
int  maxPagedLODs 
)
protectedvirtual

Slot when the maximum number of paged LODs for this terrain has changed.

Parameters
keyThe key of the current selected layer.
maxPagedLODsThe maximum number of paged LODs to keep in memory for this terrain.
virtual void makVrv::DtTerrainEditorLogic::slot_terrainPatchIsPageableStateChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key,
bool  enabled 
)
protectedvirtual

Slot when the Is Pageable state for a terrain patch has changed.

Parameters
keyThe key of the current selected layer.
enabledWhether or not the terrain patch is pageable or not.
virtual void makVrv::DtTerrainEditorLogic::slot_terrainPatchPageOutDistanceChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key,
double  pageOutDistance 
)
protectedvirtual

Slot when the page out distance of a terrain patch has changed.

Parameters
keyThe key of the current selected layer.
pageOutDistanceThe distance, in meters, at which the terrain patch pages out.
virtual void makVrv::DtTerrainEditorLogic::slot_oceanLayerNameChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key,
const std::string &  name 
)
protectedvirtual

Slot when the name of the ocean layer has changed.

Parameters
keyThe key of the current selected layer.
nameThe name of the ocean layer.
virtual void makVrv::DtTerrainEditorLogic::slot_oceanLayerHeightChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key,
double  height 
)
protectedvirtual

Slot when the height of the ocean layer has changed.

Parameters
keyThe key of the current selected layer.
heightThe height of the ocean layer.
virtual void makVrv::DtTerrainEditorLogic::slot_oceanLayerLodChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key,
int  lod 
)
protectedvirtual

Slot when the lod of the ocean layer has changed.

Parameters
keyThe key of the current selected layer.
lodThe altitude at which the Ocean LOD's out.
virtual void makVrv::DtTerrainEditorLogic::moveCameraToGeoExtent ( const osgEarth::GeoExtent &  geoExtent)
protectedvirtual

Move the camera to the center of a bounding box and oritented it to look straight down at the center.

Parameters
geoExtentAn axis-aligned geospatial extent. If the geoExtent is invalid, it won't do anything.
virtual void makVrv::DtTerrainEditorLogic::moveCameraToTerrainCenter ( const std::string &  terrainDefinition)
protectedvirtual

Move the camera to the center of a terrain patch and oritented it to look straight down at the center.

Parameters
terrainDefinitionThe terrain definition of the terrain patch.
osgEarth::GeoExtent makVrv::DtTerrainEditorLogic::findGeoExtentForGroundCoverLayer ( osgEarth::Splat::GroundCoverLayer *  layer)
protected

Finds the GeoExtent for a ground cover layer.

Parameters
layerThe ground cover layer.
Returns
return invalid GeoExtent if failed.
osgEarth::GeoExtent makVrv::DtTerrainEditorLogic::findGeoExtentForSplatLayer ( osgEarth::Splat::SplatLayer *  layer)
protected

Finds the GeoExtent for a ground cover.

Parameters
coverThe ground cover.
groundCoverLayerIdThe UID of the parent ground cover layer.
Returns
return invalid GeoExtent if failed. Finds the GeoExtent for a splat layer.
Parameters
layerThe splat layer.
Returns
return invalid GeoExtent if failed.
virtual void makVrv::DtTerrainEditorLogic::updateOsgEarthTerrainProperty ( const std::string &  oldName,
const osgEarth::MapOptions &  mapOptions,
const osgEarth::MapNodeOptions &  mapNodeOptions,
const osgEarth::TerrainOptions &  terrainOptions 
)
protectedvirtual

Updates the <map>, <options>, <terrain> fragments in the earth file.

Parameters
oldNameThe original name of the map.
mapOptionsThe MapOptions of the map.
mapNodeOptionsThe MapNodeOptions of the map.
terrainOptionsThe TerrainOptions of the map.
virtual void makVrv::DtTerrainEditorLogic::updateImageLayerProperty ( osgEarth::ImageLayer *  layer,
const osgEarth::ImageLayerOptions &  options 
)
protectedvirtual

Updates the <image> fragment in the earth file.

Parameters
layerThe image layer.
optionsThe ImageLayerOptions provided by the gui.
virtual void makVrv::DtTerrainEditorLogic::updateElevationLayerProperty ( osgEarth::ElevationLayer *  layer,
const osgEarth::ElevationLayerOptions &  options 
)
protectedvirtual

Updates the <elevation> fragment in the earth file.

Parameters
layerThe elevation layer.
optionsThe ElevationLayerOptions provided by the gui.
virtual void makVrv::DtTerrainEditorLogic::updateModelLayerProperty ( osgEarth::ModelLayer *  layer,
const osgEarth::ModelLayerOptions &  options 
)
protectedvirtual

Updates the <model> fragment in the earth file.

Parameters
layerThe model layer.
optionsThe ModelLayerOptions provided by the gui.
virtual void makVrv::DtTerrainEditorLogic::updateOpenFlightTerrainProperty ( DtTerrainPatch patch,
const makArchives::DtModelDefinitionRecord rec 
)
protectedvirtual

Updates the terrain patch record in the mtf file.

Parameters
patchThe terrain patch.
recThe model definition record of the terrain patch.
virtual void makVrv::DtTerrainEditorLogic::updateFeatureLayerProperty ( DtFeatureLayer layer,
const makArchives::DtFeatureLayerRecord rec 
)
protectedvirtual

Updates the featurel layer record in the mtf file.

Parameters
layerThe feature layer.
recThe feature layer record of the feature layer.
virtual void makVrv::DtTerrainEditorLogic::updateOceanLayerProperty ( DtOceanLayer layer,
const makArchives::DtOceanLayerRecord rec 
)
protectedvirtual

Updates the ocean layer record in the mtf file.

Parameters
layerThe ocean layer.
recThe ocean layer record of the ocean layer.
virtual void makVrv::DtTerrainEditorLogic::getConfigForOsgEarthTerrainProperty ( const osgEarth::MapOptions &  mapOptions,
const osgEarth::MapNodeOptions &  mapNodeOptions,
const osgEarth::TerrainOptions &  terrainOptions,
osgEarth::Config &  mapConfig,
osgEarth::Config &  optionConfig 
)
protectedvirtual

Gets the config for the <map> and <options> from different related options.

Parameters
mapOptionsMapOptions of the map.
mapNodeOptionsMapNodeOptions of the map.
terrainOptionsTerrainOptions of the map.
mapConfigThe resulting <map> config.
optionConfigThe resulting <options> config.
virtual void makVrv::DtTerrainEditorLogic::getConfigForImageLayer ( osgEarth::ImageLayer *  layer,
const osgEarth::ImageLayerOptions &  options,
osgEarth::Config &  optionConfig 
)
protectedvirtual

Gets the config for <image>.

Parameters
layerThe image layer.
optionsThe ImageLayerOptions provided by the gui.
optionConfigThe resulting <image> config.
virtual void makVrv::DtTerrainEditorLogic::getConfigForElevationLayer ( osgEarth::ElevationLayer *  layer,
const osgEarth::ElevationLayerOptions &  options,
osgEarth::Config &  optionConfig 
)
protectedvirtual

Gets the config for <elevation>.

Parameters
layerThe elevation layer.
optionsThe ElevationLayerOptions provided by the gui.
optionConfigThe resulting <elevation> config.
virtual void makVrv::DtTerrainEditorLogic::getConfigForModelLayer ( osgEarth::ModelLayer *  layer,
const osgEarth::ModelLayerOptions &  options,
osgEarth::Config &  optionConfig 
)
protectedvirtual

Gets the config for <model>.

Parameters
layerThe model layer.
optionsThe ModelLayerOptions provided by the gui.
optionConfigThe resulting <model> config.
virtual void makVrv::DtTerrainEditorLogic::getConfigForMaskLayer ( osgEarth::TerrainConstraintLayer *  layer,
const osgEarth::MaskLayerOptions &  options,
osgEarth::Config &  optionConfig 
)
protectedvirtual

Gets the config for <mask>.

Parameters
layerThe mask layer.
optionsThe MaskLayerOptions provided by the gui.
optionConfigThe resulting <mask> config.
virtual void makVrv::DtTerrainEditorLogic::setTerrainPropertyItemOption ( const DtTerrainEditorInterface::TerrainContentItemKey key)
protectedvirtual

Sets the terrain property tree for the given terrain content item(if appliable).

Parameters
keyThe key of the terrain content item.
virtual void makVrv::DtTerrainEditorLogic::setOsgEarthFragmentOptions ( const DtOsgEarthFile file)
protectedvirtual

Sets the property options of a DtOsgEarthFile.

Parameters
fileThe DtOsgEarthFile to display.
virtual void makVrv::DtTerrainEditorLogic::commitChange ( const DtTerrainEditorInterface::TerrainContentItemKey key)
protectedvirtual

Commits changes made to the options of the terrain content item.

Parameters
keyThe key of the current selected terrain content item.
DtOsgEarthDataRequest* makVrv::DtTerrainEditorLogic::createOsgEarthTerrainLayerRequest ( int  type,
const std::string &  name,
const std::string &  driver,
const DtUnicode url 
)
protected

Creates a request for adding a terrain layer(Image/Elevation layer).

Parameters
typeDtOsgEarthDataRequest::OsgEarthDataType enum, present the type of the layer.
driverThe driver used to render this layer, required.
urlThe URI of the layer, can be a local file path or remote URI.
nameThe name of the layer, must be unique.
DtOsgEarthDataRequest* makVrv::DtTerrainEditorLogic::createOsgEarthModelLayerRequest ( const std::string &  name,
const std::string &  driver,
const DtUnicode url,
const std::string &  wfsType 
)
protected

Creates a request for adding a model layer.

Parameters
nameThe name of the layer, must be unique.
driverThe driver used to render this layer, required.
urlThe URI of the layer, can be a local file path or remote URI.
wfsTypeThe wfs typename of the model layer, only appliable if the model source is wfs(OGC Web Feature Service).
virtual void makVrv::DtTerrainEditorLogic::reloadTerrainPatch ( const std::string &  terrainDefinition)
protectedvirtual

Reloads the terrain patch, usually used after commit changes to the model layer/ terrain patches.

The terrain definition of the terrain patch that needs reload.

virtual void makVrv::DtTerrainEditorLogic::reloadOsgEarthTerrain ( )
protectedvirtual

Reload the osgEarth terrain if there is one.

virtual DtTerrainPatch* makVrv::DtTerrainEditorLogic::findTerrainPatch ( const std::string &  defintion)
protectedvirtual

Finds the terrain patch with the given terrain definition.

Returns
Return Null if failed.
virtual DtFeatureLayer* makVrv::DtTerrainEditorLogic::findFeatureLayer ( const std::string &  name)
protectedvirtual

Finds the feature layer with the given name.

Returns
Return Null if failed.
virtual DtOceanLayer* makVrv::DtTerrainEditorLogic::findOceanLayer ( const std::string &  name)
protectedvirtual

Finds the feature layer with the given name.

Returns
Return Null if failed.
virtual bool makVrv::DtTerrainEditorLogic::ifTerrainContentItemHasProperty ( DtTerrainEditorInterface::TerrainContentItemType  type)
protectedvirtual

Check if this type of terrain content item has any property to display(Group item has no property to display).

Parameters
keyThe key of the terrain content item.
virtual void makVrv::DtTerrainEditorLogic::removeTemplateFiles ( )
protectedvirtual

Removes the template files generated during the operation.

virtual void makVrv::DtTerrainEditorLogic::addData ( const std::string &  url,
QFlags< Qt::KeyboardModifier >  keyModifiers 
)
protectedvirtual

Add data into the terrain (could be file or folder). The function will attempt to add the file as an imagery layer or an elevation layer first, prompting the user for the answer if ambiguous. If the function cannot add the file as either of these layers, then it will attempt to add the files as one or more terrain patches using the DtAddTerrainPatchManager while showing the DtAddTerrainPatch dialog. Additionally, if 1) CTRL is held down and 2) the user is adding terrain patches, then automatically attempt to load the terrain patches being added.

virtual void makVrv::DtTerrainEditorLogic::saveTerrain ( )
protectedvirtual

Saves the entire terrain contents as MTF(MAK Terrain Format) file.

virtual void makVrv::DtTerrainEditorLogic::saveTerrainPatches ( )
protectedvirtual

Saves all the terrain patches as a MTF(MAK Terrain Format) file.

virtual void makVrv::DtTerrainEditorLogic::saveFeatureLayers ( )
protectedvirtual

Saves all the feature layers as a MTF(MAK Terrain Format) file.

virtual void makVrv::DtTerrainEditorLogic::saveOceanLayers ( )
protectedvirtual

Saves all the ocean layers as a MTF(MAK Terrain Format) file.

virtual void makVrv::DtTerrainEditorLogic::saveImageLayers ( )
protectedvirtual

Saves all the image layers as an earth file.

virtual void makVrv::DtTerrainEditorLogic::saveElevationLayers ( )
protectedvirtual

Saves all the elevation layers as an earth file.

virtual void makVrv::DtTerrainEditorLogic::saveModelLayers ( )
protectedvirtual

Saves all the model layers as an earth file.

virtual void makVrv::DtTerrainEditorLogic::saveBuildingLayers ( )
protectedvirtual

Saves all the building layers as an earth file.

virtual void makVrv::DtTerrainEditorLogic::saveLandCoverLayers ( )
protectedvirtual

Saves all the landCover layers as an earth file.

virtual void makVrv::DtTerrainEditorLogic::saveGroundCoverLayers ( )
protectedvirtual

Saves all the ground cover layers as an earth file.

virtual void makVrv::DtTerrainEditorLogic::saveRoadSurfaceLayers ( )
protectedvirtual

Saves all the road surface layers as an earth file.

virtual void makVrv::DtTerrainEditorLogic::saveSplatLayers ( )
protectedvirtual

Saves all the splat layers as an earth file.

virtual void makVrv::DtTerrainEditorLogic::saveOsgEarthTerrain ( )
protectedvirtual

Saves the osgEarth terrain as an earth file.

virtual void makVrv::DtTerrainEditorLogic::saveTerrainPatch ( DtTerrainPatch patch)
protectedvirtual

Saves the terrain patch as a MTF(MAK Terrain Format) file.

Parameters
patchThe terrain patch to save out.
virtual void makVrv::DtTerrainEditorLogic::saveFeatureLayer ( DtFeatureLayer feature)
protectedvirtual

Saves the feature layer as a MTF(MAK Terrain Format) file.

Parameters
featureThe feature layer to save out.
virtual void makVrv::DtTerrainEditorLogic::saveOceanLayer ( DtOceanLayer ocean)
protectedvirtual

Saves the ocean layer as a MTF(MAK Terrain Format) file.

Parameters
oceanThe ocean layer to save out.
virtual void makVrv::DtTerrainEditorLogic::saveImageLayer ( osgEarth::ImageLayer *  layer)
protectedvirtual

Saves the image layer as an earth file.

Parameters
layerThe image layer to save out.
virtual void makVrv::DtTerrainEditorLogic::saveElevationLayer ( osgEarth::ElevationLayer *  layer)
protectedvirtual

Saves the elevation layer as an earth file.

Parameters
layerThe elevation layer to save out.
virtual void makVrv::DtTerrainEditorLogic::saveModelLayer ( osgEarth::ModelLayer *  layer)
protectedvirtual

Saves the model layer as an earth file.

Parameters
layerThe model layer to save out.
virtual void makVrv::DtTerrainEditorLogic::saveBuildingLayer ( osgEarth::Buildings::BuildingLayer *  layer)
protectedvirtual

Saves the building layer as an earth file.

Parameters
layerThe building layer to save out.
virtual void makVrv::DtTerrainEditorLogic::saveLandCoverLayer ( osgEarth::LandCoverLayer *  layer)
protectedvirtual

Saves the land cover layer as an earth file.

Parameters
layerThe land cover layer to save out.
virtual void makVrv::DtTerrainEditorLogic::saveGroundCoverLayer ( osgEarth::Splat::GroundCoverLayer *  layer)
protectedvirtual

Saves the ground cover layer as an earth file.

Parameters
layerThe ground cover layer to save out.
virtual void makVrv::DtTerrainEditorLogic::saveRoadSurfaceLayer ( osgEarth::Splat::RoadSurfaceLayer *  layer)
protectedvirtual

Saves the road surface layer as an earth file.

Parameters
layerThe road surface layer to save out.
virtual void makVrv::DtTerrainEditorLogic::saveSplatLayer ( osgEarth::Splat::SplatLayer *  layer)
protectedvirtual

Saves the splat layer as an earth file.

Parameters
layerThe splat layer to save out.
virtual void makVrv::DtTerrainEditorLogic::saveOsgEarthLayer ( osgEarth::Layer *  layer)
protectedvirtual

Saves the generic osgEarth layer as an earth file.

Parameters
layerThe generic osgEarth layer to save out.
virtual void makVrv::DtTerrainEditorLogic::removeTerrain ( )
protectedvirtual

Removes the terrain.

virtual void makVrv::DtTerrainEditorLogic::removeTerrainPatches ( )
protectedvirtual

Removes all the terrain patches.

virtual void makVrv::DtTerrainEditorLogic::removeFeatureLayers ( )
protectedvirtual

Removes all the feature layers.

virtual void makVrv::DtTerrainEditorLogic::removeOsgEarthFeatureLayers ( )
protectedvirtual

Removes all the osgEarth feature layers.

virtual void makVrv::DtTerrainEditorLogic::removeOceanLayers ( )
protectedvirtual

Removes all the ocean layers.

virtual void makVrv::DtTerrainEditorLogic::removeImageLayers ( )
protectedvirtual

Removes all the image layers.

virtual void makVrv::DtTerrainEditorLogic::removeElevationLayers ( )
protectedvirtual

Removes all the elevation layers.

virtual void makVrv::DtTerrainEditorLogic::removeModelLayers ( )
protectedvirtual

Removes all the model layers.

virtual void makVrv::DtTerrainEditorLogic::removeBuildingLayers ( )
protectedvirtual

Removes all the building layers.

virtual void makVrv::DtTerrainEditorLogic::removeLandCoverLayers ( )
protectedvirtual

Removes all the land cover layers.

virtual void makVrv::DtTerrainEditorLogic::removeGroundCoverLayers ( )
protectedvirtual

Removes all the ground cover layers.

virtual void makVrv::DtTerrainEditorLogic::removeRoadSurfaceLayers ( )
protectedvirtual

Removes all the road surface layers.

virtual void makVrv::DtTerrainEditorLogic::removeSplatLayers ( )
protectedvirtual

Removes all the splat layers.

virtual void makVrv::DtTerrainEditorLogic::removeOsgEarthTerrain ( )
protectedvirtual

Removes the osgEarth terrain.

virtual void makVrv::DtTerrainEditorLogic::removeTerrainPatch ( DtTerrainPatch patch)
protectedvirtual

Removes the given terrain patch.

Parameters
patchThe terrain patch to remove.
virtual void makVrv::DtTerrainEditorLogic::removeFeatureLayer ( DtFeatureLayer feature)
protectedvirtual

Removes the given feature layer.

Parameters
featureThe feature layer to remove.
virtual void makVrv::DtTerrainEditorLogic::removeOceanLayer ( DtOceanLayer ocean)
protectedvirtual

Removes the given ocean layer.

Parameters
oceanThe ocean layer to remove.
virtual void makVrv::DtTerrainEditorLogic::removeImageLayer ( osgEarth::ImageLayer *  layer)
protectedvirtual

Removes the given image layer.

Parameters
layerThe image layer to remove.
virtual void makVrv::DtTerrainEditorLogic::removeElevationLayer ( osgEarth::ElevationLayer *  layer)
protectedvirtual

Removes the given elevation layer.

Parameters
layerThe elevation layer to remove.
virtual void makVrv::DtTerrainEditorLogic::removeModelLayer ( osgEarth::ModelLayer *  layer)
protectedvirtual

Removes the given model layer.

Parameters
layerThe model layer to remove.
virtual void makVrv::DtTerrainEditorLogic::removeBuildingLayer ( osgEarth::Buildings::BuildingLayer *  layer)
protectedvirtual

Removes the given building layer.

Parameters
layerThe building layer to remove.
virtual void makVrv::DtTerrainEditorLogic::removeLandCoverLayer ( osgEarth::LandCoverLayer *  layer)
protectedvirtual

Removes the given land cover layer.

Parameters
layerThe land cover layer to remove.
virtual void makVrv::DtTerrainEditorLogic::removeGroundCoverLayer ( osgEarth::Splat::GroundCoverLayer *  layer)
protectedvirtual

Removes the given ground cover layer.

Parameters
layerThe ground cover layer to remove.
virtual void makVrv::DtTerrainEditorLogic::removeRoadSurfaceLayer ( osgEarth::Splat::RoadSurfaceLayer *  layer)
protectedvirtual

Removes the given road surface layer.

Parameters
layerThe road surface layer to remove.
virtual void makVrv::DtTerrainEditorLogic::removeSplatLayer ( osgEarth::Splat::SplatLayer *  layer)
protectedvirtual

Removes the given splat layer.

Parameters
layerThe splat layer to remove.
virtual void makVrv::DtTerrainEditorLogic::removeOsgEarthLayer ( osgEarth::Layer *  layer)
protectedvirtual

Removes a generic osgEarth layer.

Parameters
layerThe osgEarth layer to remove.
virtual void makVrv::DtTerrainEditorLogic::setTerrainVisibility ( bool  visible)
protectedvirtual

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
virtual void makVrv::DtTerrainEditorLogic::setTerrainPatchesVisibility ( bool  visible)
protectedvirtual

Toggles the visibility of all the terrain patches.

Parameters
visibleThe visibility of all the terrain patches.
virtual void makVrv::DtTerrainEditorLogic::setFeatureLayersVisibility ( bool  visible)
protectedvirtual

Toggles the visibility of all the feature layers.

Parameters
visibleThe visibility of all the feature layers.
virtual void makVrv::DtTerrainEditorLogic::setOceanLayersVisibility ( bool  visible)
protectedvirtual

Toggles the visibility of all the ocean layers.

Parameters
visibleThe visibility of all the ocean layers.
virtual void makVrv::DtTerrainEditorLogic::setImageLayersVisibility ( bool  visible)
protectedvirtual

Toggles the visibility of a group of image layers.

Parameters
visibleThe visibility of all the image layers in the group.
template<typename T >
void makVrv::DtTerrainEditorLogic::setOsgEarthLayerVisibility ( bool  visible)
protected

Toggles the visibility of osgEarth layers based on type.

Parameters
visibleThe new visibility state of the layers.
virtual void makVrv::DtTerrainEditorLogic::setOsgEarthTerrainVisibility ( bool  visible)
protectedvirtual

Toggles the visibility of all the splat layers.

Parameters
visibleThe visibility of all the splat layers.
virtual void makVrv::DtTerrainEditorLogic::setTerrainPatchVisibility ( DtTerrainPatch patch,
bool  visible 
)
protectedvirtual

Toggles the visibility of the given terrain patch.

Parameters
patchThe terrain patch.
visibleThe visibility of all the terrain patch.
virtual void makVrv::DtTerrainEditorLogic::setFeatureLayerVisibility ( DtFeatureLayer feature,
bool  visible 
)
protectedvirtual

Toggles the visibility of the given feature layer.

Parameters
featureThe feature layer.
visibleThe visibility of the feature layer.
virtual void makVrv::DtTerrainEditorLogic::setOceanLayerVisibility ( DtOceanLayer ocean,
bool  visible 
)
protectedvirtual

Toggles the visibility of the given ocean layer.

Parameters
oceanThe ocean layer.
visibleThe visibility of all the terrain patch.
virtual void makVrv::DtTerrainEditorLogic::createOsgEarthTerrain ( )
protectedvirtual

Create a default earth terrain with the given name.

Parameters
nameThe definition of the earth terrain.
virtual void makVrv::DtTerrainEditorLogic::saveOsgEarthTerrain ( const DtUnicode fileName)
protectedvirtual

Saves the osgEarth terrain as an earth file with the given name.

virtual DtUnicode makVrv::DtTerrainEditorLogic::generateOsgEarthTerrainFileName ( )
protectedvirtual

Automatically generates a file name for a user created osgEarth terrain. It will check if there is a file named as"NEW MAK EARTH" under users/data/terrains, if so, then try NEW MAK EARTH_1 and so on until there is no duplicated file existed.

virtual DtTerrainEditorInterface::TerrainContentItemKey makVrv::DtTerrainEditorLogic::getTerrainContentItemKey ( const std::string &  type,
const std::string &  name 
)
protectedvirtual

Gets the terrain content key by the xml config type and name.

Parameters
typeThe type of the config in osgEarth file.
nameThe name attribute of the config in osgEarth file.
virtual void makVrv::DtTerrainEditorLogic::removeImageLayerFromFile ( osgEarth::ImageLayer *  layer)
protectedvirtual

Removes the image layer config from the osgEarth xml file.

virtual void makVrv::DtTerrainEditorLogic::removeElevationLayerFromFile ( osgEarth::ElevationLayer *  layer)
protectedvirtual

Removes the elevation layer config from the osgEarth xml file.

virtual void makVrv::DtTerrainEditorLogic::removeModelLayerFromFile ( osgEarth::ModelLayer *  layer)
protectedvirtual

Removes the model layer config from the osgEarth xml file.

virtual void makVrv::DtTerrainEditorLogic::removeMaskLayerFromFile ( osgEarth::TerrainConstraintLayer *  layer)
protectedvirtual

Removes the mask layer config from the osgEarth xml file.

Friends And Related Function Documentation

friend class DtTerrainEditorLogicCreator
friend
friend class DtTerrainEditorMapCallbak
friend

Member Data Documentation

DtDe& makVrv::DtTerrainEditorLogic::myDe
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
std::string makVrv::DtTerrainEditorLogic::myOsgEarthTerrainDefinition
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
DtUnicode makVrv::DtTerrainEditorLogic::myOsgEarthTerrainFileName
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
std::string makVrv::DtTerrainEditorLogic::myOsgEarthTerrainName
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
std::string makVrv::DtTerrainEditorLogic::myOsgEarthTerrainDir
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
std::string makVrv::DtTerrainEditorLogic::myTemplatePath
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
std::set<DtUnicode> makVrv::DtTerrainEditorLogic::myTemplateFiles
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
DtTerrainEditorInterface::TerrainContentItemKey makVrv::DtTerrainEditorLogic::myOsgEarthTerrainKey
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
std::string makVrv::DtTerrainEditorLogic::myMedfTerrainDir
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
osg::observer_ptr<osgEarth::MapNode> makVrv::DtTerrainEditorLogic::myMapNode
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
osg::observer_ptr<osgEarth::Map> makVrv::DtTerrainEditorLogic::myMap
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
DtTerrainEditorInterface* makVrv::DtTerrainEditorLogic::myInterface
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
DtSignalConnectionManager makVrv::DtTerrainEditorLogic::mySignals
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
DtSignalConnectionManager makVrv::DtTerrainEditorLogic::myWhileTerrainIsLoadedSignals
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
DtOsgEarthDataRequestQueue* makVrv::DtTerrainEditorLogic::myOsgEarthDataRequestQueue
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
DtOsgEarthFileParser* makVrv::DtTerrainEditorLogic::myOsgEarthFileParser
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
bool makVrv::DtTerrainEditorLogic::myNeedSaveEarthFile
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
bool makVrv::DtTerrainEditorLogic::myReloadFlag
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
std::string makVrv::DtTerrainEditorLogic::myReloadModelName
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
int makVrv::DtTerrainEditorLogic::myInsertIndex
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
makArchives::DtTerrainRecord makVrv::DtTerrainEditorLogic::myOriginalTerrainRecord
protected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.
bool makVrv::DtTerrainEditorLogic::myDontShowReloadTerrainWarningMessageBox
staticprotected

Toggles the visibility of the terrain.

Parameters
visibleThe visibility of the terrain.

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)