VR-Forces 4.8 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 | Protected Attributes | Static Protected Attributes | Private Types | Private Member Functions | Friends

DtTerrainEditorLogic logic class to drive the DtTerrainEditorWidget. More...

Classes

class  DtTerrainEditorMapCallbak
 DtTerrainEditorMapCallbak. More...
 

Public Member Functions

virtual ~DtTerrainEditorLogic ()
 DTOR. 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 all the terrain contents currently in the scene, used when you open the terrain editor after you open the terrain. 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 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...
 
virtual std::string getTerrainContentGroupItemDisplayName (int type)
 Gets the display name of group item/top level item of the terrain content tree. 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...
 
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::MaskLayer *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::MaskLayer *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 setTerrainRuntimeItemOption (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 Sets the terrain runtime 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 void createOsgEarthTerrain ()
 Sets the wind speed of the ground cover. 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::MaskLayer *layer)
 Removes the mask layer config from the osgEarth xml file. 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 populateAerodromeLayers ()
 Populate all the aerodrome layers in osgEarth terrain (if any). More...
 
virtual void populateFeatureSourceLayers ()
 Populate all the feature source layers in osgEarth terrain(if any). More...
 
virtual void populateFeatureModelLayers ()
 Populate all the feature model layers in osgEarth terrain(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 populateModelLayers ()
 Populate all the model layers in osgEarth terrain(if any). More...
 
virtual void populateMaskLayers ()
 Populate all the mask layers in osgEarth terrain(if any). More...
 
virtual void populateBuildingLayers ()
 Populate all the building layers in osgEarth terrain(if any). More...
 
virtual void populateLandCoverLayers ()
 Populate all the landCover layers in osgEarth terrain(if any). More...
 
virtual void populateGroundCoverLayers ()
 Populate all the groundCover layers in osgEarth terrain(if any). More...
 
virtual void populateGroundCovers (osgEarth::Splat::GroundCoverLayer *groundCoverLayer)
 Populate all the ground covers under an ground cover layer in osgEarth terrain(if any). More...
 
virtual void populateRoadSurfaceLayers ()
 Populate all the road surface layers in osgEarth terrain(if any). More...
 
virtual void populateSplatLayers ()
 Populate all the splat 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 populateAerodromeLayer (osgEarth::Aerodrome::AerodromeLayer *aerodromeLayer, int sequence)
 Populate the aerodrome layer with the given sequence of aerodrome layers. More...
 
virtual void populateFeatureSourceLayer (osgEarth::FeatureSource *featureSourceLayer, int sequence)
 Populate the feature source layer with the given sequence of feature source layers. More...
 
virtual void populateFeatureModelLayer (osgEarth::FeatureModelLayer *featureModelLayer, int sequence)
 Populate the feature model layer with the given sequence of feature model 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 populateModelLayer (osgEarth::ModelLayer *modelLayer, int sequence)
 Populate the model layer with the given sequence of all model layers. More...
 
virtual void populateMaskLayer (osgEarth::MaskLayer *maskLayer, int sequence)
 Populate the mask layer with the given sequence of all mask layers. More...
 
virtual void populateBuildingLayer (osgEarth::Buildings::BuildingLayer *buildingLayer, int sequence)
 Populate the building layer with the given sequence of all building 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 populateGroundCoverLayer (osgEarth::Splat::GroundCoverLayer *layer, int sequence)
 Populate the building layer with the given sequence of all building layers. More...
 
virtual void populateBiomeZone (const DtTerrainEditorInterface::TerrainContentItemKey &parentkey, const osgEarth::Splat::BiomeZone &zone, int sequence)
 Populate the building layer with the given sequence of all building layers. More...
 
virtual void populateRoadSurfaceLayer (osgEarth::Splat::RoadSurfaceLayer *layer, int sequence)
 Populate the building layer with the given sequence of all building layers. More...
 
virtual void populateSplatLayer (osgEarth::Splat::SplatLayer *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_terrainCleared ()
 Slot function called when the DtTerrainSignaler signals that the terrain has been cleaned. More...
 
virtual void slot_terrainContentTreeWidget_itemRenamed (const DtTerrainEditorInterface::TerrainContentItemKey &key, const std::string &oldName, const std::string &newName)
 Slot when rename the item in terrain content tree through context menu. 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_terrainContentTreeWidget_itemVisibilityChanged (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 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_terrainRuntimeTreeWidgetItem_currentItemChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 Slot when the current item in the terrain runtime tree changed. More...
 
virtual void slot_moveTerrainContentTreeWidgetItem (const DtTerrainEditorInterface::TerrainContentItemKey &key, bool up)
 Slot when the user moves up/down the terrain content item through the context menu. 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_addTerrainPatchButtonReleased (const DtUnicode &fileName)
 Slot when user clicks on the add terrain patch button. More...
 
virtual void slot_addFeatureLayerButtonReleased (const DtUnicode &fileName)
 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_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_modelLayerLightingChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, bool lighting)
 Slot when the lighting condition of the model layer has been 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 slot_groundCoverWindChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, double wind)
 Slot when the wind speed of the ground cover has been changed. More...
 
virtual void slot_groundCoverFillChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, double fill)
 Slot when the fill of the ground cover has been changed. More...
 
virtual void slot_groundCoverMaxDistanceChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, double maxDistance)
 Slot when the maximum viewing distance of the ground cover has been 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::MaskLayer *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 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...
 
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...
 
virtual void setElevationLayersVisibility (bool visible)
 Toggles the visibility of a group of elevation layers. More...
 
virtual void setModelLayersVisibility (bool visible)
 Toggles the visibility of all the model layers. More...
 
virtual void setBuildingLayersVisibility (bool visible)
 Toggles the visibility of all the building layers. More...
 
virtual void setLandCoverLayersVisibility (bool visible)
 Toggles the visibility of a group of land cover layers. More...
 
virtual void setGroundCoverLayersVisibility (bool visible)
 Toggles the visibility of all the ground cover layers. More...
 
virtual void setRoadSurfaceLayersVisibility (bool visible)
 Toggles the visibility of all the road surface layers. More...
 
virtual void setSplatLayersVisibility (bool visible)
 Toggles the visibility of all the splat layers. 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 setVisibleLayerVisibility (osgEarth::VisibleLayer *layer, bool visible)
 Toggles the visibility of the osgEarth visible layer. More...
 
virtual void setVisibleLayerOpacity (osgEarth::VisibleLayer *layer, double opacity)
 Toggles the opacity of the osgEarth visible layer. More...
 
virtual void setVisibleLayerMinVisibleRange (osgEarth::VisibleLayer *layer, double minRange)
 Toggles the minimal visible range of the osgEarth visible layer. More...
 
virtual void setVisibleLayerMaxVisibleRange (osgEarth::VisibleLayer *layer, double maxRange)
 Toggles the maximum visible range of the osgEarth visible layer. More...
 
virtual void setModelLayerLighting (osgEarth::ModelLayer *layer, bool lighting)
 Sets the lighting condition of the model layer. More...
 

Protected Attributes

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
 

Static Protected Attributes

static bool myDontShowReloadTerrainWarningMessageBox
 

Private Types

typedef std::vector
< osg::ref_ptr
< osgEarth::FeatureModelLayer > > 
FeatureModelLayerVector
 
typedef std::vector
< osg::ref_ptr
< osgEarth::FeatureSource > > 
FeatureSourceLayerVector
 
typedef std::vector
< osg::ref_ptr
< osgEarth::Aerodrome::AerodromeLayer > > 
AerodromeLayerVector
 

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
 

Detailed Description

DtTerrainEditorLogic logic class to drive the DtTerrainEditorWidget.

Member Typedef Documentation

typedef std::vector< osg::ref_ptr<osgEarth::FeatureModelLayer> > makVrv::DtTerrainEditorLogic::FeatureModelLayerVector
private
typedef std::vector< osg::ref_ptr<osgEarth::FeatureSource> > makVrv::DtTerrainEditorLogic::FeatureSourceLayerVector
private
typedef std::vector< osg::ref_ptr<osgEarth::Aerodrome::AerodromeLayer> > makVrv::DtTerrainEditorLogic::AerodromeLayerVector
private

Constructor & Destructor Documentation

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

DTOR.

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

Protected Constructor.

Use DtOsgEarthProfileLogicCreator to create instances of this class

makVrv::DtTerrainEditorLogic::DtTerrainEditorLogic ( )
private

Private default constructor not implimented.

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

Copy Constructor not implemented – Copy not allowed.

Member Function Documentation

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 all the terrain contents currently in the scene, used when you open the terrain editor after you open the terrain.

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. You can only have one ocean layer.
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.
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.

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.
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::populateAerodromeLayers ( )
protectedvirtual

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

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

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

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

Populate all the feature model layers in osgEarth terrain(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::populateModelLayers ( )
protectedvirtual

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

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

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

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

Populate all the building 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::populateGroundCoverLayers ( )
protectedvirtual

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

virtual void makVrv::DtTerrainEditorLogic::populateGroundCovers ( osgEarth::Splat::GroundCoverLayer *  groundCoverLayer)
protectedvirtual

Populate all the ground covers under an ground cover layer in osgEarth terrain(if any).

Parameters
groundCoverLayerThe osgEarth::GroundCoverLayer to populate with.
virtual void makVrv::DtTerrainEditorLogic::populateRoadSurfaceLayers ( )
protectedvirtual

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

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

Populate all the splat 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::populateAerodromeLayer ( osgEarth::Aerodrome::AerodromeLayer *  aerodromeLayer,
int  sequence 
)
protectedvirtual

Populate the aerodrome layer with the given sequence of aerodrome layers.

Parameters
aerodromeLayerThe aerodrome layer to populate
sequenceThe sequence of the feature model layer of all aerodrome layers, -1 means insert at last position.
virtual void makVrv::DtTerrainEditorLogic::populateFeatureSourceLayer ( osgEarth::FeatureSource *  featureSourceLayer,
int  sequence 
)
protectedvirtual

Populate the feature source layer with the given sequence of feature source layers.

Parameters
featureSourceLayerThe feature source layer to populate
sequenceThe sequence of the feature model layer of all feature model layers, -1 means insert at last position.
virtual void makVrv::DtTerrainEditorLogic::populateFeatureModelLayer ( osgEarth::FeatureModelLayer *  featureModelLayer,
int  sequence 
)
protectedvirtual

Populate the feature model layer with the given sequence of feature model layers.

Parameters
featureModelLayerThe feature model layer to populate
sequenceThe sequence of the feature model layer of all feature model layers, -1 means insert 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::populateModelLayer ( osgEarth::ModelLayer *  modelLayer,
int  sequence 
)
protectedvirtual

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

Parameters
modelLayerThe model layer to populate.
sequenceThe sequence of the model layer of all model layers, -1 means inserts at last position.
virtual void makVrv::DtTerrainEditorLogic::populateMaskLayer ( osgEarth::MaskLayer *  maskLayer,
int  sequence 
)
protectedvirtual

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

Parameters
maskLayerThe mask layer to populate.
sequenceThe sequence of the mask layer of all mask layers, -1 means inserts at last position.
virtual void makVrv::DtTerrainEditorLogic::populateBuildingLayer ( osgEarth::Buildings::BuildingLayer *  buildingLayer,
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::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::populateGroundCoverLayer ( osgEarth::Splat::GroundCoverLayer *  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::populateBiomeZone ( const DtTerrainEditorInterface::TerrainContentItemKey parentkey,
const osgEarth::Splat::BiomeZone &  zone,
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::populateRoadSurfaceLayer ( osgEarth::Splat::RoadSurfaceLayer *  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::populateSplatLayer ( osgEarth::Splat::SplatLayer *  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::MaskLayer *  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::MaskLayer *  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_terrainCleared ( )
protectedvirtual

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

virtual void makVrv::DtTerrainEditorLogic::slot_terrainContentTreeWidget_itemRenamed ( const DtTerrainEditorInterface::TerrainContentItemKey key,
const std::string &  oldName,
const std::string &  newName 
)
protectedvirtual

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

Parameters
keyThe key of the current selected terrain content item.
oldNameThe name before rename.
newNameThe name after rename.
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_terrainContentTreeWidget_itemVisibilityChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key,
bool  visible 
)
protectedvirtual

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

Parameters
keyThe key of the current selected terrain content item.
visibleThe visibility of the 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_terrainRuntimeTreeWidgetItem_currentItemChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key)
protectedvirtual

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

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

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

Parameters
keyThe key of the current selected terrain content item.
upIf true, move up, otherwise move down.
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_addTerrainPatchButtonReleased ( const DtUnicode fileName)
protectedvirtual

Slot when user clicks on the add terrain patch button.

fileName The file name of the terrain patch about to be added.

virtual void makVrv::DtTerrainEditorLogic::slot_addFeatureLayerButtonReleased ( const DtUnicode fileName)
protectedvirtual

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

fileName The file name of the feature layer about to be added.

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

Slot when user clicks on the add ocean layer button.

fileName The 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_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[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_modelLayerLightingChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key,
bool  lighting 
)
protectedvirtual

Slot when the lighting condition of the model layer has been changed.

Parameters
keyThe key of the current selected layer.
lightingWhether apply lighting on the model 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
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
lodThe altitude at which the Ocean LOD's out.
virtual void makVrv::DtTerrainEditorLogic::slot_groundCoverWindChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key,
double  wind 
)
protectedvirtual

Slot when the wind speed of the ground cover has been changed.

Parameters
keyThe key of the current selected ground cover.
windThe wind speed of the ground cover[0..1].
virtual void makVrv::DtTerrainEditorLogic::slot_groundCoverFillChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key,
double  fill 
)
protectedvirtual

Slot when the fill of the ground cover has been changed.

Parameters
keyThe key of the current selected ground cover.
fillPercentage of land that this layer's instances will cover [0..1]. Lower values will result is more "patchiness" of placement.
virtual void makVrv::DtTerrainEditorLogic::slot_groundCoverMaxDistanceChanged ( const DtTerrainEditorInterface::TerrainContentItemKey key,
double  maxDistance 
)
protectedvirtual

Slot when the maximum viewing distance of the ground cover has been changed.

Parameters
keyThe key of the current selected ground cover.
maxDistanceMaximum viewing distance from camera.
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::MaskLayer *  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::setTerrainRuntimeItemOption ( const DtTerrainEditorInterface::TerrainContentItemKey key)
protectedvirtual

Sets the terrain runtime 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).

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::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.
virtual void makVrv::DtTerrainEditorLogic::setElevationLayersVisibility ( bool  visible)
protectedvirtual

Toggles the visibility of a group of elevation layers.

Parameters
visibleThe visibility of all the elevation layers in the group.
virtual void makVrv::DtTerrainEditorLogic::setModelLayersVisibility ( bool  visible)
protectedvirtual

Toggles the visibility of all the model layers.

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

Toggles the visibility of all the building layers.

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

Toggles the visibility of a group of land cover layers.

Parameters
visibleThe visibility of all the land cover layers in the group.
virtual void makVrv::DtTerrainEditorLogic::setGroundCoverLayersVisibility ( bool  visible)
protectedvirtual

Toggles the visibility of all the ground cover layers.

Parameters
visibleThe visibility of all the ground cover layers.
virtual void makVrv::DtTerrainEditorLogic::setRoadSurfaceLayersVisibility ( bool  visible)
protectedvirtual

Toggles the visibility of all the road surface layers.

Parameters
visibleThe visibility of all the road surface layers.
virtual void makVrv::DtTerrainEditorLogic::setSplatLayersVisibility ( bool  visible)
protectedvirtual

Toggles the visibility of all the splat layers.

Parameters
visibleThe visibility of all the splat 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::setVisibleLayerVisibility ( osgEarth::VisibleLayer *  layer,
bool  visible 
)
protectedvirtual

Toggles the visibility of the osgEarth visible layer.

Parameters
layerThe visible layer.
visibleThe visibility of the osgEarth visible layer.
virtual void makVrv::DtTerrainEditorLogic::setVisibleLayerOpacity ( osgEarth::VisibleLayer *  layer,
double  opacity 
)
protectedvirtual

Toggles the opacity of the osgEarth visible layer.

Parameters
layerThe visible layer.
opacityThe opacity of the osgEarth visible layer[0..1].
virtual void makVrv::DtTerrainEditorLogic::setVisibleLayerMinVisibleRange ( osgEarth::VisibleLayer *  layer,
double  minRange 
)
protectedvirtual

Toggles the minimal visible range of the osgEarth visible layer.

Parameters
layerThe visible layer.
minRangeThe minimal visible range.
virtual void makVrv::DtTerrainEditorLogic::setVisibleLayerMaxVisibleRange ( osgEarth::VisibleLayer *  layer,
double  maxRange 
)
protectedvirtual

Toggles the maximum visible range of the osgEarth visible layer.

Parameters
layerThe visible layer.
maxRangeThe maximum visible range.
virtual void makVrv::DtTerrainEditorLogic::setModelLayerLighting ( osgEarth::ModelLayer *  layer,
bool  lighting 
)
protectedvirtual

Sets the lighting condition of the model layer.

Parameters
layerThe model layer.
lightingWhether apply lighting on the model layer.
virtual void makVrv::DtTerrainEditorLogic::createOsgEarthTerrain ( )
protectedvirtual

Sets the wind speed of the ground cover.

Parameters
coverThe ground cover.
windThe wind speed of the ground cover[0..1]. Sets the fill of the ground cover.
coverThe ground cover.
fillPercentage of land that this layer's instances will cover [0..1]. Lower values will result is more "patchiness" of placement. Sets the maximum viewing distance of the ground cover.
coverThe ground cover.
maxDistanceMaximum viewing distance from camera. Create a default earth terrain with the given name.
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/servers, 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::MaskLayer *  layer)
protectedvirtual

Removes the mask layer config from the osgEarth xml file.

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

Assignment Operator not implemented – Copy not allowed.

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
bool makVrv::DtTerrainEditorLogic::myDontShowReloadTerrainWarningMessageBox
staticprotected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)