VR-Forces 4.10 Class Documentation
 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. More...

Classes

class  DtTerrainEditorMapCallbak
 DtTerrainEditorMapCallbak. More...
 

Public Member Functions

virtual ~DtTerrainEditorLogic ()
 DTOR. More...
 
virtual void setTerrainContentItemVisible (const DtTerrainEditorInterface::TerrainContentItemKey &key, bool visible)
 Slot when toggle the check box of the terrain content tree, used to toggle the visibility of the content if applicable. More...
 
virtual void setTerrainContentItemName (const DtTerrainEditorInterface::TerrainContentItemKey &key, const std::string &newName)
 Slot when rename the item in terrain content tree through context menu. More...
 
virtual void moveTerrainContentItem (const DtTerrainEditorInterface::TerrainContentItemKey &key, bool up)
 Slot when the user moves up/down the terrain content item through the context menu. More...
 

Protected Member Functions

 DtTerrainEditorLogic (DtDe &de, DtTerrainEditorInterface *iFace)
 Protected Constructor. More...
 
virtual void connectSignals ()
 Connect the signals. More...
 
virtual void disconnectSignals ()
 Disconnect the signals. More...
 
virtual void syncCurrentScene ()
 Populate the terrain content tree with the contents of the currently loaded terrain. More...
 
virtual void onImageLayerCreated (osgEarth::ImageLayer *imageLayer)
 Function called when an image layer is created, setup the contents in the gui, update the xml file, etc. More...
 
virtual void onElevationLayerCreated (osgEarth::ElevationLayer *elevationLayer)
 Function called when an elevation layer is created, setup the contents in the gui, update the xml file, etc. More...
 
virtual void onModelLayerCreated (osgEarth::ModelLayer *modelLayer)
 Function called when a model layer is created, setup the contents in the gui, update the xml file, etc. More...
 
virtual void onMaskLayerCreated (osgEarth::TerrainConstraintLayer *maskLayer)
 Function called when a mask layer is created, setup the contents in the gui, update the xml file, etc. More...
 
virtual void syncImageLayerToOsgEarthFile (osgEarth::ImageLayer *imageLayer)
 Synchronize the image layer option to the earth file when an image layer is added. More...
 
virtual void syncElevationLayerToOsgEarthFile (osgEarth::ElevationLayer *elevationLayer)
 Synchronize the elevation layer option to the earth file when an elevation layer is added. More...
 
virtual void syncModelLayerToOsgEarthFile (osgEarth::ModelLayer *modelLayer)
 Synchronize the model layer option to the earth file when a model layer is added. More...
 
virtual void syncMaskLayerToOsgEarthFile (osgEarth::TerrainConstraintLayer *maskLayer)
 Synchronize the mask layer option to the earth file when a mask layer is added. More...
 
virtual void syncMaskConfigToOsgEarthFile (const std::string &name, const std::string &boundary)
 Synchronize the mask config option to the earth file. More...
 
virtual void removeConfigInOsgEarthFile (const std::string &key, const std::string &name)
 Remove a xml element in the earth file with the given key and name attribute. More...
 
virtual void onOsgEarthTerrainCleared ()
 Clean/Reset all osgEarth related variables when the osgEarth terrain is cleared. More...
 
virtual void setTerrainPropertyItemOption (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 Sets the terrain property tree for the given terrain content item(if appliable). More...
 
virtual void setOsgEarthFragmentOptions (const DtOsgEarthFile *file)
 Sets the property options of a DtOsgEarthFile. More...
 
virtual void commitChange (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 Commits changes made to the options of the terrain content item. More...
 
DtOsgEarthDataRequestcreateOsgEarthTerrainLayerRequest (int type, const std::string &name, const std::string &driver, const DtUnicode &url)
 Creates a request for adding a terrain layer(Image/Elevation layer). More...
 
DtOsgEarthDataRequestcreateOsgEarthModelLayerRequest (const std::string &name, const std::string &driver, const DtUnicode &url, const std::string &wfsType)
 Creates a request for adding a model layer. More...
 
virtual void reloadTerrainPatch (const std::string &terrainDefinition)
 Reloads the terrain patch, usually used after commit changes to the model layer/ terrain patches. More...
 
virtual void reloadOsgEarthTerrain ()
 Reload the osgEarth terrain if there is one. More...
 
virtual DtTerrainPatchfindTerrainPatch (const std::string &defintion)
 Finds the terrain patch with the given terrain definition. More...
 
virtual DtFeatureLayerfindFeatureLayer (const std::string &name)
 Finds the feature layer with the given name. More...
 
virtual DtOceanLayerfindOceanLayer (const std::string &name)
 Finds the feature layer with the given name. More...
 
virtual bool ifTerrainContentItemHasProperty (DtTerrainEditorInterface::TerrainContentItemType type)
 Check if this type of terrain content item has any property to display(Group item has no property to display). More...
 
virtual void removeTemplateFiles ()
 Removes the template files generated during the operation. More...
 
virtual void addData (const std::string &url)
 Add data into the terrain (could be file or folder). More...
 
virtual int findIndexForGroupItem (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 Find the sequence/index of the top level group item in the terrain content tree depends on the existing top level items. More...
 
virtual DtUnicode findFileNameOfTerrainPatch (const std::string &terrainDefinition)
 Finds the file name of a terrain patch. More...
 
virtual bool isOsgEarthTerrain (const DtUnicode &fileName)
 Determine if a terrain file is an osg earth terrain by the "earth" extension. More...
 
int getContentGroupKeyTypeFromClassName (std::string className) const
 Gets the terrain content item type for the group that the osgEarth::Layer belongs in based on class name. More...
 
int getContentItemKeyTypeFromClassName (std::string className) const
 Gets the terrain content item type for the osgEarth::Layer based on class name. More...
 
virtual std::string getTerrainContentGroupItemDisplayName (int type)
 Gets the display name of group item/top level item of the terrain content tree. More...
 
bool isTerrainContentItemVisibilityCheckboxEnabled (int type) const
 Gets whether terrain content items of the provided type can have their visibility toggled. More...
 
virtual void populateTerrainPatch (const DtTerrainPatchObject *terrainPatchObject, int sequence)
 Populate the terrain patch with the given index in the terrain content tree widget. More...
 
virtual void populateFeatureLayer (const DtFeatureLayer *featureLayer, int sequence)
 Populate the feature layer with the given index in the terrain content tree widget. More...
 
virtual void populateOceanLayer (const DtOceanLayer *oceanLayer, int sequence)
 Populate the ocean layer with the given index in the terrain content tree widget. More...
 
virtual void processOsgEarthTerrain (const std::string &terrainDefinition, const DtUnicode &fileName)
 Sets up the necessary components like osgEarth file parser, map callback, finds the map/mapNode, etc. More...
 
template<typename T >
void populateOsgEarthLayers ()
 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. More...
 
virtual void populateOsgEarthLayer (osg::ref_ptr< osgEarth::Layer > layer, int index)
 Uses widget interface to add an osgEarth layer to the terrain content tree. More...
 
virtual void populateOsgEarthTerrain ()
 Populate the contents in osgEarth terrain. More...
 
virtual void populateOsgEarthFragments ()
 Populate the external xml fragments listed in the main earth file(if any). More...
 
virtual void populateImageLayers ()
 Populate all the image layers in osgEarth terrain(if any). More...
 
virtual void populateElevationLayers ()
 Populate all the elevation layers in osgEarth terrain(if any). More...
 
virtual void populateLandCoverLayers ()
 Populate all the landCover layers in osgEarth terrain(if any). More...
 
virtual void populateImageLayer (osgEarth::ImageLayer *imageLayer, int sequence)
 Populate the image layer with the given sequence of all image layers. More...
 
virtual void populateElevationLayer (osgEarth::ElevationLayer *elevationLayer, int sequence)
 Populate the elevation layer with the given sequence of all elevation layers. More...
 
virtual void populateLandCoverLayer (osgEarth::LandCoverLayer *layer, int sequence)
 Populate the building layer with the given sequence of all building layers. More...
 
virtual void slot_terrainPatchCreated (DtTerrainPatchObject &terrainPatchObject)
 Slot function called when the DtTerrainPatchObjectSignaler signals that a new terrain has been added. More...
 
virtual void slot_terrainPatchToBeDeleted (const DtTerrainPatch &patch)
 Slot function called when the DtTerrainPatchObjectSignaler signals that a terrain about to be deleted. More...
 
virtual void slot_featureLayerAdded (const DtFeatureLayer &layer)
 Slot function called when the DtTerrainSignaler signals that a new feature layer has been added. More...
 
virtual void slot_featureLayerToBeDeleted (const DtFeatureLayer &layer)
 Slot function called when the DtTerrainSignaler signals that a new feature layer about to be deleted. More...
 
virtual void slot_oceanLayerAdded (const DtOceanLayer &layer)
 Slot function called when the DtTerrainSignaler signals that a new ocean layer has been added. More...
 
virtual void slot_oceanLayerToBeDeleted (const DtOceanLayer &layer)
 Slot function called when the DtTerrainSignaler signals that a new ocean layer about to be deleted. More...
 
virtual void slot_terrainLoaded (const makArchives::DtTerrainRecord &)
 Slot function called when the DtTerrainSignaler signals that the terrain has been loaded. More...
 
virtual void slot_terrainToBeCleared (bool reload)
 Slot function called when the DtTerrainSignaler signals that the terrain is about to be cleared. More...
 
virtual void slot_clientAdded ()
 Slot function called when the DtIgCommunicatorSignaler signals that a client is about to be connected. More...
 
virtual void slot_terrainCleared ()
 Slot function called when the DtTerrainSignaler signals that the terrain has been cleaned. More...
 
virtual void slot_terrainContentTreeWidget_itemDoubleClicked (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 Slot when double click on the terrain content tree, used to navigate the observer to the center of content if appliable. More...
 
virtual void slot_osgEarthFragmentTreeWidget_currentItemChanged (const std::string &key)
 Slot when the current item in the osgEarth fragment tree widget changes. More...
 
virtual void slot_terrainContentCommitChangesButtonReleased (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 Slot when user hit the commit changes button. More...
 
virtual void slot_terrainContentRevertChangesButtonReleased (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 Slot when user hit the revert changes button. More...
 
virtual void slot_terrainPropertyTreeWidgetItem_currentItemChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 Slot when the current item in the terrain property tree changed. More...
 
virtual void slot_osgEarthFragmentCommitChangesButtonReleased (const std::vector< DtTerrainEditorInterface::TerrainContentItemKey > &keys)
 Slot when user hits the commit button when the osgEarth fragment Tab is enabled. More...
 
virtual void slot_saveTerrainContentTreeWidgetItem (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 Slot when the user clicks save on the terrain content item through the context menu(if appliable). More...
 
virtual void slot_deleteTerrainContentTreeWidgetItem (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 Slot when the user clicks save on the terrain content item. More...
 
virtual void slot_addFeatureLayerButtonReleased (const DtUnicode &fileName, bool toFrontEnd, bool toSimEngine)
 Slot when user clicks on the add feature layer button(MAK Terrain Toolkit feature layer). More...
 
virtual void slot_addOceanLayerButtonReleased ()
 Slot when user clicks on the add ocean layer button. More...
 
virtual void slot_generateBoundaryButton_released ()
 Slot when user clicks on the generate boundary button. More...
 
virtual void slot_osgEarthTerrainLayerRequestAdded (int type, const std::string &name, const std::string &driver, const DtUnicode &url)
 Slot when a terrain layer(Image/Elevation) has been added through the gui. More...
 
virtual void slot_osgEarthModelLayerRequestAdded (const std::string &name, const std::string &driver, const DtUnicode &url, const std::string &wfsType)
 Slot when a model layer has been added through the gui. More...
 
virtual void slot_generateBoundary (const std::string &terrainPatchDefinition, const std::string &name, bool geocentric, bool convexHull)
 Slot when receive the request to generate boundary for a given terrain patch. More...
 
virtual void slot_generateCacheButtonReleased ()
 Slot when user clicks on the generate cache button. More...
 
virtual void slot_saveTerrain ()
 Slot when receive the request to save the terrain(MTF terrain) through the context menu. More...
 
virtual void slot_quit ()
 Slot when the application is quiting. More...
 
virtual void slot_addData (std::vector< std::string > files)
 The slot when user drag and drop data into the terrain editor. More...
 
virtual void slot_terrainDescriptionChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, const std::string &description)
 Slot when the description of the terrain has changed. More...
 
virtual void slot_visibleLayerVisiblityChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, bool visible)
 Slot when the visibility of the layer has changed. More...
 
virtual void slot_visibleLayerOpacityChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, double opacity)
 Slot when the opacity of the layer has changed. More...
 
virtual void slot_visibleLayerMinVisibleRangeChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, double minRange)
 Slot when the minimal visible range of the layer has changed. More...
 
virtual void slot_visibleLayerMaxVisibleRangeChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, double maxRange)
 Slot when the maximum visible range of the layer has changed. More...
 
virtual void slot_osgEarthDebugModeStateChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, bool enabled)
 Slot when the osgEarth debug mode state has changed. More...
 
virtual void slot_terrainMaxPagedLODsChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, int maxPagedLODs)
 Slot when the maximum number of paged LODs for this terrain has changed. More...
 
virtual void slot_oceanLayerNameChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, const std::string &name)
 Slot when the name of the ocean layer has changed. More...
 
virtual void slot_oceanLayerHeightChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, double height)
 Slot when the height of the ocean layer has changed. More...
 
virtual void slot_oceanLayerLodChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, int lod)
 Slot when the lod of the ocean layer has changed. More...
 
virtual void moveCameraToGeoExtent (const osgEarth::GeoExtent &geoExtent)
 Move the camera to the center of a bounding box and oritented it to look straight down at the center. More...
 
virtual void moveCameraToTerrainCenter (const std::string &terrainDefinition)
 Move the camera to the center of a terrain patch and oritented it to look straight down at the center. More...
 
osgEarth::GeoExtent findGeoExtentForGroundCoverLayer (osgEarth::Splat::GroundCoverLayer *layer)
 Finds the GeoExtent for a ground cover layer. More...
 
osgEarth::GeoExtent findGeoExtentForSplatLayer (osgEarth::Splat::SplatLayer *layer)
 Finds the GeoExtent for a ground cover. More...
 
virtual void updateOsgEarthTerrainProperty (const std::string &oldName, const osgEarth::MapOptions &mapOptions, const osgEarth::MapNodeOptions &mapNodeOptions, const osgEarth::TerrainOptions &terrainOptions)
 Updates the <map>, <options>, <terrain> fragments in the earth file. More...
 
virtual void updateImageLayerProperty (osgEarth::ImageLayer *layer, const osgEarth::ImageLayerOptions &options)
 Updates the <image> fragment in the earth file. More...
 
virtual void updateElevationLayerProperty (osgEarth::ElevationLayer *layer, const osgEarth::ElevationLayerOptions &options)
 Updates the <elevation> fragment in the earth file. More...
 
virtual void updateModelLayerProperty (osgEarth::ModelLayer *layer, const osgEarth::ModelLayerOptions &options)
 Updates the <model> fragment in the earth file. More...
 
virtual void updateOpenFlightTerrainProperty (DtTerrainPatch *patch, const makArchives::DtModelDefinitionRecord &rec)
 Updates the terrain patch record in the mtf file. More...
 
virtual void updateFeatureLayerProperty (DtFeatureLayer *layer, const makArchives::DtFeatureLayerRecord &rec)
 Updates the featurel layer record in the mtf file. More...
 
virtual void updateOceanLayerProperty (DtOceanLayer *layer, const makArchives::DtOceanLayerRecord &rec)
 Updates the ocean layer record in the mtf file. More...
 
virtual void getConfigForOsgEarthTerrainProperty (const osgEarth::MapOptions &mapOptions, const osgEarth::MapNodeOptions &mapNodeOptions, const osgEarth::TerrainOptions &terrainOptions, osgEarth::Config &mapConfig, osgEarth::Config &optionConfig)
 Gets the config for the <map> and <options> from different related options. More...
 
virtual void getConfigForImageLayer (osgEarth::ImageLayer *layer, const osgEarth::ImageLayerOptions &options, osgEarth::Config &optionConfig)
 Gets the config for <image>. More...
 
virtual void getConfigForElevationLayer (osgEarth::ElevationLayer *layer, const osgEarth::ElevationLayerOptions &options, osgEarth::Config &optionConfig)
 Gets the config for <elevation>. More...
 
virtual void getConfigForModelLayer (osgEarth::ModelLayer *layer, const osgEarth::ModelLayerOptions &options, osgEarth::Config &optionConfig)
 Gets the config for <model>. More...
 
virtual void getConfigForMaskLayer (osgEarth::TerrainConstraintLayer *layer, const osgEarth::MaskLayerOptions &options, osgEarth::Config &optionConfig)
 Gets the config for <mask>. More...
 
virtual void saveTerrain ()
 Saves the entire terrain contents as MTF(MAK Terrain Format) file. More...
 
virtual void saveTerrainPatches ()
 Saves all the terrain patches as a MTF(MAK Terrain Format) file. More...
 
virtual void saveFeatureLayers ()
 Saves all the feature layers as a MTF(MAK Terrain Format) file. More...
 
virtual void saveOceanLayers ()
 Saves all the ocean layers as a MTF(MAK Terrain Format) file. More...
 
virtual void saveImageLayers ()
 Saves all the image layers as an earth file. More...
 
virtual void saveElevationLayers ()
 Saves all the elevation layers as an earth file. More...
 
virtual void saveModelLayers ()
 Saves all the model layers as an earth file. More...
 
virtual void saveBuildingLayers ()
 Saves all the building layers as an earth file. More...
 
virtual void saveLandCoverLayers ()
 Saves all the landCover layers as an earth file. More...
 
virtual void saveGroundCoverLayers ()
 Saves all the ground cover layers as an earth file. More...
 
virtual void saveRoadSurfaceLayers ()
 Saves all the road surface layers as an earth file. More...
 
virtual void saveSplatLayers ()
 Saves all the splat layers as an earth file. More...
 
virtual void saveOsgEarthTerrain ()
 Saves the osgEarth terrain as an earth file. More...
 
virtual void saveTerrainPatch (DtTerrainPatch *patch)
 Saves the terrain patch as a MTF(MAK Terrain Format) file. More...
 
virtual void saveFeatureLayer (DtFeatureLayer *feature)
 Saves the feature layer as a MTF(MAK Terrain Format) file. More...
 
virtual void saveOceanLayer (DtOceanLayer *ocean)
 Saves the ocean layer as a MTF(MAK Terrain Format) file. More...
 
virtual void saveImageLayer (osgEarth::ImageLayer *layer)
 Saves the image layer as an earth file. More...
 
virtual void saveElevationLayer (osgEarth::ElevationLayer *layer)
 Saves the elevation layer as an earth file. More...
 
virtual void saveModelLayer (osgEarth::ModelLayer *layer)
 Saves the model layer as an earth file. More...
 
virtual void saveBuildingLayer (osgEarth::Buildings::BuildingLayer *layer)
 Saves the building layer as an earth file. More...
 
virtual void saveLandCoverLayer (osgEarth::LandCoverLayer *layer)
 Saves the land cover layer as an earth file. More...
 
virtual void saveGroundCoverLayer (osgEarth::Splat::GroundCoverLayer *layer)
 Saves the ground cover layer as an earth file. More...
 
virtual void saveRoadSurfaceLayer (osgEarth::Splat::RoadSurfaceLayer *layer)
 Saves the road surface layer as an earth file. More...
 
virtual void saveSplatLayer (osgEarth::Splat::SplatLayer *layer)
 Saves the splat layer as an earth file. More...
 
virtual void saveOsgEarthLayer (osgEarth::Layer *layer)
 Saves the generic osgEarth layer as an earth file. More...
 
virtual void removeTerrain ()
 Removes the terrain. More...
 
virtual void removeTerrainPatches ()
 Removes all the terrain patches. More...
 
virtual void removeFeatureLayers ()
 Removes all the feature layers. More...
 
virtual void removeOsgEarthFeatureLayers ()
 Removes all the osgEarth feature layers. More...
 
virtual void removeOceanLayers ()
 Removes all the ocean layers. More...
 
virtual void removeImageLayers ()
 Removes all the image layers. More...
 
virtual void removeElevationLayers ()
 Removes all the elevation layers. More...
 
virtual void removeModelLayers ()
 Removes all the model layers. More...
 
virtual void removeBuildingLayers ()
 Removes all the building layers. More...
 
virtual void removeLandCoverLayers ()
 Removes all the land cover layers. More...
 
virtual void removeGroundCoverLayers ()
 Removes all the ground cover layers. More...
 
virtual void removeRoadSurfaceLayers ()
 Removes all the road surface layers. More...
 
virtual void removeSplatLayers ()
 Removes all the splat layers. More...
 
virtual void removeOsgEarthTerrain ()
 Removes the osgEarth terrain. More...
 
virtual void removeTerrainPatch (DtTerrainPatch *patch)
 Removes the given terrain patch. More...
 
virtual void removeFeatureLayer (DtFeatureLayer *feature)
 Removes the given feature layer. More...
 
virtual void removeOceanLayer (DtOceanLayer *ocean)
 Removes the given ocean layer. More...
 
virtual void removeImageLayer (osgEarth::ImageLayer *layer)
 Removes the given image layer. More...
 
virtual void removeElevationLayer (osgEarth::ElevationLayer *layer)
 Removes the given elevation layer. More...
 
virtual void removeModelLayer (osgEarth::ModelLayer *layer)
 Removes the given model layer. More...
 
virtual void removeBuildingLayer (osgEarth::Buildings::BuildingLayer *layer)
 Removes the given building layer. More...
 
virtual void removeLandCoverLayer (osgEarth::LandCoverLayer *layer)
 Removes the given land cover layer. More...
 
virtual void removeGroundCoverLayer (osgEarth::Splat::GroundCoverLayer *layer)
 Removes the given ground cover layer. More...
 
virtual void removeRoadSurfaceLayer (osgEarth::Splat::RoadSurfaceLayer *layer)
 Removes the given road surface layer. More...
 
virtual void removeSplatLayer (osgEarth::Splat::SplatLayer *layer)
 Removes the given splat layer. More...
 
virtual void removeOsgEarthLayer (osgEarth::Layer *layer)
 Removes a generic osgEarth layer. More...
 

Private Member Functions

 DtTerrainEditorLogic ()
 Private default constructor not implimented. More...
 
 DtTerrainEditorLogic (const DtTerrainEditorLogic &)
 Copy Constructor not implemented – Copy not allowed. More...
 
DtTerrainEditorLogicoperator= (const DtTerrainEditorLogic &)
 Assignment Operator not implemented – Copy not allowed. More...
 

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
 
DtOsgEarthDataRequestQueuemyOsgEarthDataRequestQueue
 
DtOsgEarthFileParsermyOsgEarthFileParser
 
bool myNeedSaveEarthFile
 
bool myReloadFlag
 
std::string myReloadModelName
 
int myInsertIndex
 
std::set< std::string > myImageLayerExtensions
 
std::set< std::string > myElevationLayerExtensions
 
makArchives::DtTerrainRecord myOriginalTerrainRecord
 
static bool myDontShowReloadTerrainWarningMessageBox
 
virtual void setTerrainVisibility (bool visible)
 Toggles the visibility of the terrain. More...
 
virtual void setTerrainPatchesVisibility (bool visible)
 Toggles the visibility of all the terrain patches. More...
 
virtual void setFeatureLayersVisibility (bool visible)
 Toggles the visibility of all the feature layers. More...
 
virtual void setOceanLayersVisibility (bool visible)
 Toggles the visibility of all the ocean layers. More...
 
virtual void setImageLayersVisibility (bool visible)
 Toggles the visibility of a group of image layers. More...
 
template<typename T >
void setOsgEarthLayerVisibility (bool visible)
 Toggles the visibility of osgEarth layers based on type. More...
 
virtual void setOsgEarthTerrainVisibility (bool visible)
 Toggles the visibility of all the splat layers. More...
 
virtual void setTerrainPatchVisibility (DtTerrainPatch *patch, bool visible)
 Toggles the visibility of the given terrain patch. More...
 
virtual void setFeatureLayerVisibility (DtFeatureLayer *feature, bool visible)
 Toggles the visibility of the given feature layer. More...
 
virtual void setOceanLayerVisibility (DtOceanLayer *ocean, bool visible)
 Toggles the visibility of the given ocean layer. More...
 
virtual void createOsgEarthTerrain ()
 Create a default earth terrain with the given name. More...
 
virtual void saveOsgEarthTerrain (const DtUnicode &fileName)
 Saves the osgEarth terrain as an earth file with the given name. More...
 
virtual DtUnicode generateOsgEarthTerrainFileName ()
 Automatically generates a file name for a user created osgEarth terrain. More...
 
virtual
DtTerrainEditorInterface::TerrainContentItemKey 
getTerrainContentItemKey (const std::string &type, const std::string &name)
 Gets the terrain content key by the xml config type and name. More...
 
virtual void removeImageLayerFromFile (osgEarth::ImageLayer *layer)
 Removes the image layer config from the osgEarth xml file. More...
 
virtual void removeElevationLayerFromFile (osgEarth::ElevationLayer *layer)
 Removes the elevation layer config from the osgEarth xml file. More...
 
virtual void removeModelLayerFromFile (osgEarth::ModelLayer *layer)
 Removes the model layer config from the osgEarth xml file. More...
 
virtual void removeMaskLayerFromFile (osgEarth::TerrainConstraintLayer *layer)
 Removes the mask layer config from the osgEarth xml file. More...
 

Detailed Description

DtTerrainEditorLogic.

logic class to drive the DtTerrainEditorWidget.

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 ( 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 ( 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)
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_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)
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.

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
std::string makVrv::DtTerrainEditorLogic::myOsgEarthTerrainDefinition
protected
DtUnicode makVrv::DtTerrainEditorLogic::myOsgEarthTerrainFileName
protected
std::string makVrv::DtTerrainEditorLogic::myOsgEarthTerrainName
protected
std::string makVrv::DtTerrainEditorLogic::myOsgEarthTerrainDir
protected
std::string makVrv::DtTerrainEditorLogic::myTemplatePath
protected
std::set<DtUnicode> makVrv::DtTerrainEditorLogic::myTemplateFiles
protected
DtTerrainEditorInterface::TerrainContentItemKey makVrv::DtTerrainEditorLogic::myOsgEarthTerrainKey
protected
std::string makVrv::DtTerrainEditorLogic::myMedfTerrainDir
protected
osg::observer_ptr<osgEarth::MapNode> makVrv::DtTerrainEditorLogic::myMapNode
protected
osg::observer_ptr<osgEarth::Map> makVrv::DtTerrainEditorLogic::myMap
protected
DtTerrainEditorInterface* makVrv::DtTerrainEditorLogic::myInterface
protected
DtSignalConnectionManager makVrv::DtTerrainEditorLogic::mySignals
protected
DtOsgEarthDataRequestQueue* makVrv::DtTerrainEditorLogic::myOsgEarthDataRequestQueue
protected
DtOsgEarthFileParser* makVrv::DtTerrainEditorLogic::myOsgEarthFileParser
protected
bool makVrv::DtTerrainEditorLogic::myNeedSaveEarthFile
protected
bool makVrv::DtTerrainEditorLogic::myReloadFlag
protected
std::string makVrv::DtTerrainEditorLogic::myReloadModelName
protected
int makVrv::DtTerrainEditorLogic::myInsertIndex
protected
std::set<std::string> makVrv::DtTerrainEditorLogic::myImageLayerExtensions
protected
std::set<std::string> makVrv::DtTerrainEditorLogic::myElevationLayerExtensions
protected
makArchives::DtTerrainRecord makVrv::DtTerrainEditorLogic::myOriginalTerrainRecord
protected
bool makVrv::DtTerrainEditorLogic::myDontShowReloadTerrainWarningMessageBox
staticprotected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)