![]() |
VR-Forces 4.8 Class Documentation
|
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... | |
| DtOsgEarthDataRequest * | createOsgEarthTerrainLayerRequest (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... | |
| DtOsgEarthDataRequest * | createOsgEarthModelLayerRequest (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 DtTerrainPatch * | findTerrainPatch (const std::string &defintion) |
| Finds the terrain patch with the given terrain definition. More... | |
| virtual DtFeatureLayer * | findFeatureLayer (const std::string &name) |
| Finds the feature layer with the given name. More... | |
| virtual DtOceanLayer * | findOceanLayer (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 | |
| DtDe & | myDe |
| std::string | myOsgEarthTerrainDefinition |
| DtUnicode | myOsgEarthTerrainFileName |
| std::string | myOsgEarthTerrainName |
| std::string | myOsgEarthTerrainDir |
| std::string | myTemplatePath |
| std::set< DtUnicode > | myTemplateFiles |
| DtTerrainEditorInterface::TerrainContentItemKey | myOsgEarthTerrainKey |
| std::string | myMedfTerrainDir |
| osg::observer_ptr < osgEarth::MapNode > | myMapNode |
| osg::observer_ptr< osgEarth::Map > | myMap |
| DtTerrainEditorInterface * | myInterface |
| DtSignalConnectionManager | mySignals |
| DtOsgEarthDataRequestQueue * | myOsgEarthDataRequestQueue |
| DtOsgEarthFileParser * | myOsgEarthFileParser |
| 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... | |
| DtTerrainEditorLogic & | operator= (const DtTerrainEditorLogic &) |
| Assignment Operator not implemented – Copy not allowed. More... | |
Friends | |
| class | DtTerrainEditorLogicCreator |
| class | DtTerrainEditorMapCallbak |
DtTerrainEditorLogic logic class to drive the DtTerrainEditorWidget.
|
private |
|
private |
|
private |
|
virtual |
DTOR.
|
protected |
Protected Constructor.
Use DtOsgEarthProfileLogicCreator to create instances of this class
|
private |
Private default constructor not implimented.
|
private |
Copy Constructor not implemented – Copy not allowed.
|
protectedvirtual |
Connect the signals.
|
protectedvirtual |
Disconnect the signals.
|
protectedvirtual |
Populate all the terrain contents currently in the scene, used when you open the terrain editor after you open the terrain.
|
protectedvirtual |
Populate the terrain patch with the given index in the terrain content tree widget.
| terrainPatchObject | The terrain patch object to display. |
| sequence | The sequence of the terrain patch in all terrain patches, -1 means inserts at last position. |
|
protectedvirtual |
Populate the feature layer with the given index in the terrain content tree widget.
| featureLayer | The feature layer to display. |
| sequence | The sequence of the feature layer in all feature layers, -1 means inserts at last position. |
|
protectedvirtual |
Populate the ocean layer with the given index in the terrain content tree widget.
| oceanLayer | The ocean layer to display. |
| sequence | The sequence of the ocean layer in all ocean layers, -1 means inserts at last position. You can only have one ocean layer. |
|
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.
|
protectedvirtual |
Finds the file name of a terrain patch.
| terrainDefinition | The terrain definition. |
|
protectedvirtual |
Determine if a terrain file is an osg earth terrain by the "earth" extension.
|
protectedvirtual |
Gets the display name of group item/top level item of the terrain content tree.
empty string if failed.
|
protectedvirtual |
|
protectedvirtual |
Populate the contents in osgEarth terrain.
|
protectedvirtual |
Populate the external xml fragments listed in the main earth file(if any).
|
protectedvirtual |
Populate all the aerodrome layers in osgEarth terrain (if any).
|
protectedvirtual |
Populate all the feature source layers in osgEarth terrain(if any).
|
protectedvirtual |
Populate all the feature model layers in osgEarth terrain(if any).
|
protectedvirtual |
Populate all the image layers in osgEarth terrain(if any).
|
protectedvirtual |
Populate all the elevation layers in osgEarth terrain(if any).
|
protectedvirtual |
Populate all the model layers in osgEarth terrain(if any).
|
protectedvirtual |
Populate all the mask layers in osgEarth terrain(if any).
|
protectedvirtual |
Populate all the building layers in osgEarth terrain(if any).
|
protectedvirtual |
Populate all the landCover layers in osgEarth terrain(if any).
|
protectedvirtual |
Populate all the groundCover layers in osgEarth terrain(if any).
|
protectedvirtual |
Populate all the ground covers under an ground cover layer in osgEarth terrain(if any).
| groundCoverLayer | The osgEarth::GroundCoverLayer to populate with. |
|
protectedvirtual |
Populate all the road surface layers in osgEarth terrain(if any).
|
protectedvirtual |
Populate all the splat layers in osgEarth terrain(if any).
|
protectedvirtual |
Populate the image layer with the given sequence of all image layers.
| imageLayer | The image layer to populate. |
| sequence | The sequence of the image layer of all image layers, -1 means inserts at last position. |
|
protectedvirtual |
Populate the aerodrome layer with the given sequence of aerodrome layers.
| aerodromeLayer | The aerodrome layer to populate |
| sequence | The sequence of the feature model layer of all aerodrome layers, -1 means insert at last position. |
|
protectedvirtual |
Populate the feature source layer with the given sequence of feature source layers.
| featureSourceLayer | The feature source layer to populate |
| sequence | The sequence of the feature model layer of all feature model layers, -1 means insert at last position. |
|
protectedvirtual |
Populate the feature model layer with the given sequence of feature model layers.
| featureModelLayer | The feature model layer to populate |
| sequence | The sequence of the feature model layer of all feature model layers, -1 means insert at last position. |
|
protectedvirtual |
Populate the elevation layer with the given sequence of all elevation layers.
| elevationLayer | The elevation layer to populate. |
| sequence | The sequence of the elevation layer of all elevation layers, -1 means inserts at last position. |
|
protectedvirtual |
Populate the model layer with the given sequence of all model layers.
| modelLayer | The model layer to populate. |
| sequence | The sequence of the model layer of all model layers, -1 means inserts at last position. |
|
protectedvirtual |
Populate the mask layer with the given sequence of all mask layers.
| maskLayer | The mask layer to populate. |
| sequence | The sequence of the mask layer of all mask layers, -1 means inserts at last position. |
|
protectedvirtual |
Populate the building layer with the given sequence of all building layers.
| buildingLayer | The building layer to populate. |
| sequence | The sequence of the building layer of all building layers, -1 means inserts at last position. |
|
protectedvirtual |
Populate the building layer with the given sequence of all building layers.
| buildingLayer | The building layer to populate. |
| sequence | The sequence of the building layer of all building layers, -1 means inserts at last position. |
|
protectedvirtual |
Populate the building layer with the given sequence of all building layers.
| buildingLayer | The building layer to populate. |
| sequence | The sequence of the building layer of all building layers, -1 means inserts at last position. |
|
protectedvirtual |
Populate the building layer with the given sequence of all building layers.
| buildingLayer | The building layer to populate. |
| sequence | The sequence of the building layer of all building layers, -1 means inserts at last position. |
|
protectedvirtual |
Populate the building layer with the given sequence of all building layers.
| buildingLayer | The building layer to populate. |
| sequence | The sequence of the building layer of all building layers, -1 means inserts at last position. |
|
protectedvirtual |
Populate the building layer with the given sequence of all building layers.
| buildingLayer | The building layer to populate. |
| sequence | The sequence of the building layer of all building layers, -1 means inserts at last position. |
|
protectedvirtual |
Function called when an image layer is created, setup the contents in the gui, update the xml file, etc.
| imageLayer | The new created image layer. |
|
protectedvirtual |
Function called when an elevation layer is created, setup the contents in the gui, update the xml file, etc.
| elevationLayer | The new created elevation layer. |
|
protectedvirtual |
Function called when a model layer is created, setup the contents in the gui, update the xml file, etc.
| modelLayer | The new created model layer. |
|
protectedvirtual |
Function called when a mask layer is created, setup the contents in the gui, update the xml file, etc.
| maskLayer | The new created mask layer. |
|
protectedvirtual |
Synchronize the image layer option to the earth file when an image layer is added.
| imageLayer | The image layer to synchronize. |
|
protectedvirtual |
Synchronize the elevation layer option to the earth file when an elevation layer is added.
| elevationLayer | The elevation layer to synchronize. |
|
protectedvirtual |
Synchronize the model layer option to the earth file when a model layer is added.
| modelLayer | The model layer to synchronize. |
|
protectedvirtual |
Synchronize the mask layer option to the earth file when a mask layer is added.
| maskLayer | The mask layer to synchronize. |
|
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.
|
protectedvirtual |
Remove a xml element in the earth file with the given key and name attribute.
|
protectedvirtual |
|
protectedvirtual |
Slot function called when the DtTerrainPatchObjectSignaler signals that a new terrain has been added.
|
protectedvirtual |
Slot function called when the DtTerrainPatchObjectSignaler signals that a terrain about to be deleted.
|
protectedvirtual |
Slot function called when the DtTerrainSignaler signals that a new feature layer has been added.
|
protectedvirtual |
Slot function called when the DtTerrainSignaler signals that a new feature layer about to be deleted.
|
protectedvirtual |
Slot function called when the DtTerrainSignaler signals that a new ocean layer has been added.
|
protectedvirtual |
Slot function called when the DtTerrainSignaler signals that a new ocean layer about to be deleted.
|
protectedvirtual |
Slot function called when the DtTerrainSignaler signals that the terrain has been cleaned.
|
protectedvirtual |
Slot when rename the item in terrain content tree through context menu.
| key | The key of the current selected terrain content item. |
| oldName | The name before rename. |
| newName | The name after rename. |
|
protectedvirtual |
Slot when double click on the terrain content tree, used to navigate the observer to the center of content if appliable.
| key | The key of the current selected terrain content item. |
|
protectedvirtual |
Slot when toggle the check box of the terrain content tree, used to toggle the visibility of the content if appliable.
| key | The key of the current selected terrain content item. |
| visible | The visibility of the terrain content item. |
|
protectedvirtual |
Slot when the current item in the osgEarth fragment tree widget changes.
| key | The key of the fragment tree widget item, usually the url of the fragment. |
|
protectedvirtual |
Slot when user hit the commit changes button.
| key | The key of the current selected terrain content item. |
|
protectedvirtual |
Slot when user hit the revert changes button.
| key | The key of the current selected terrain content item. |
|
protectedvirtual |
Slot when the current item in the terrain property tree changed.
| key | The key of the current selected terrain content item. |
|
protectedvirtual |
Slot when user hits the commit button when the osgEarth fragment Tab is enabled.
| keys | The keys of all the terrain content items that included in the selected external fragment file. |
|
protectedvirtual |
Slot when the current item in the terrain runtime tree changed.
| key | The key of the current selected terrain content item. |
|
protectedvirtual |
Slot when the user moves up/down the terrain content item through the context menu.
| key | The key of the current selected terrain content item. |
| up | If true, move up, otherwise move down. |
|
protectedvirtual |
Slot when the user clicks save on the terrain content item through the context menu(if appliable).
| key | The key of the current selected terrain content item. |
|
protectedvirtual |
Slot when the user clicks save on the terrain content item.
| key | The key of the current selected terrain content item. |
|
protectedvirtual |
Slot when user clicks on the add terrain patch button.
fileName The file name of the terrain patch about to be added.
|
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.
|
protectedvirtual |
Slot when user clicks on the add ocean layer button.
fileName The file name of the ocean layer about to be added.
|
protectedvirtual |
Slot when user clicks on the generate boundary button.
|
protectedvirtual |
Slot when a terrain layer(Image/Elevation) has been added through the gui.
| type | DtOsgEarthDataRequest::OsgEarthDataType enum, present the type of the layer. |
| driver | The driver used to render this layer, required. |
| url | The URI of the layer, can be a local file path or remote URI. |
| name | The name of the layer, must be unique. |
|
protectedvirtual |
Slot when a model layer has been added through the gui.
| name | The name of the layer, must be unique. |
| driver | The driver used to render this layer, required. |
| url | The URI of the layer, can be a local file path or remote URI. |
| wfsType | The wfs typename of the model layer, only appliable if the model source is wfs(OGC Web Feature Service). |
|
protectedvirtual |
Slot when receive the request to generate boundary for a given terrain patch.
| terrainPatchDefinition | The terrain definition of the terrain patch which used to generate boundary. |
| name | The name of the mask layer. |
| geocentric | If the terrain database is geocentric. |
| convexHull | Calculate a convex hull instead of a full boundary. |
|
protectedvirtual |
Slot when user clicks on the generate cache button.
|
protectedvirtual |
Slot when receive the request to save the terrain(MTF terrain) through the context menu.
|
protectedvirtual |
Slot when the application is quiting.
|
protectedvirtual |
The slot when user drag and drop data into the terrain editor.
|
protectedvirtual |
Slot when the visibility of the layer has changed.
| key | The key of the current selected layer. |
| visible | The visibility of the layer. |
|
protectedvirtual |
Slot when the opacity of the layer has changed.
| key | The key of the current selected layer. |
| opacity | The opacity of the layer[0..1]. |
|
protectedvirtual |
Slot when the minimal visible range of the layer has changed.
| key | The key of the current selected layer. |
| minRange | The minimal visible range. |
|
protectedvirtual |
Slot when the maximum visible range of the layer has changed.
| key | The key of the current selected layer. |
| maxRange | The maximum visible range. |
|
protectedvirtual |
Slot when the lighting condition of the model layer has been changed.
| key | The key of the current selected layer. |
| lighting | Whether apply lighting on the model layer. |
|
protectedvirtual |
Slot when the height of the ocean layer has changed.
| height | The height of the ocean layer. |
|
protectedvirtual |
Slot when the lod of the ocean layer has changed.
| lod | The altitude at which the Ocean LOD's out. |
|
protectedvirtual |
Slot when the wind speed of the ground cover has been changed.
| key | The key of the current selected ground cover. |
| wind | The wind speed of the ground cover[0..1]. |
|
protectedvirtual |
Slot when the fill of the ground cover has been changed.
| key | The key of the current selected ground cover. |
| fill | Percentage of land that this layer's instances will cover [0..1]. Lower values will result is more "patchiness" of placement. |
|
protectedvirtual |
Slot when the maximum viewing distance of the ground cover has been changed.
| key | The key of the current selected ground cover. |
| maxDistance | Maximum viewing distance from camera. |
|
protectedvirtual |
Move the camera to the center of a bounding box and oritented it to look straight down at the center.
| geoExtent | An axis-aligned geospatial extent. If the geoExtent is invalid, it won't do anything. |
|
protectedvirtual |
Move the camera to the center of a terrain patch and oritented it to look straight down at the center.
| terrainDefinition | The terrain definition of the terrain patch. |
|
protected |
Finds the GeoExtent for a ground cover layer.
| layer | The ground cover layer. |
|
protected |
Finds the GeoExtent for a ground cover.
| cover | The ground cover. |
| groundCoverLayerId | The UID of the parent ground cover layer. |
| layer | The splat layer. |
|
protectedvirtual |
Updates the <map>, <options>, <terrain> fragments in the earth file.
| oldName | The original name of the map. |
| mapOptions | The MapOptions of the map. |
| mapNodeOptions | The MapNodeOptions of the map. |
| terrainOptions | The TerrainOptions of the map. |
|
protectedvirtual |
Updates the <image> fragment in the earth file.
| layer | The image layer. |
| options | The ImageLayerOptions provided by the gui. |
|
protectedvirtual |
Updates the <elevation> fragment in the earth file.
| layer | The elevation layer. |
| options | The ElevationLayerOptions provided by the gui. |
|
protectedvirtual |
Updates the <model> fragment in the earth file.
| layer | The model layer. |
| options | The ModelLayerOptions provided by the gui. |
|
protectedvirtual |
Updates the terrain patch record in the mtf file.
| patch | The terrain patch. |
| rec | The model definition record of the terrain patch. |
|
protectedvirtual |
Updates the featurel layer record in the mtf file.
| layer | The feature layer. |
| rec | The feature layer record of the feature layer. |
|
protectedvirtual |
Updates the ocean layer record in the mtf file.
| layer | The ocean layer. |
| rec | The ocean layer record of the ocean layer. |
|
protectedvirtual |
Gets the config for the <map> and <options> from different related options.
| mapOptions | MapOptions of the map. |
| mapNodeOptions | MapNodeOptions of the map. |
| terrainOptions | TerrainOptions of the map. |
| mapConfig | The resulting <map> config. |
| optionConfig | The resulting <options> config. |
|
protectedvirtual |
Gets the config for <image>.
| layer | The image layer. |
| options | The ImageLayerOptions provided by the gui. |
| optionConfig | The resulting <image> config. |
|
protectedvirtual |
Gets the config for <elevation>.
| layer | The elevation layer. |
| options | The ElevationLayerOptions provided by the gui. |
| optionConfig | The resulting <elevation> config. |
|
protectedvirtual |
Gets the config for <model>.
| layer | The model layer. |
| options | The ModelLayerOptions provided by the gui. |
| optionConfig | The resulting <model> config. |
|
protectedvirtual |
Gets the config for <mask>.
| layer | The mask layer. |
| options | The MaskLayerOptions provided by the gui. |
| optionConfig | The resulting <mask> config. |
|
protectedvirtual |
Sets the terrain property tree for the given terrain content item(if appliable).
| key | The key of the terrain content item. |
|
protectedvirtual |
Sets the terrain runtime tree for the given terrain content item(if appliable).
| key | The key of the terrain content item. |
|
protectedvirtual |
Sets the property options of a DtOsgEarthFile.
| file | The DtOsgEarthFile to display. |
|
protectedvirtual |
Commits changes made to the options of the terrain content item.
| key | The key of the current selected terrain content item. |
|
protected |
Creates a request for adding a terrain layer(Image/Elevation layer).
| type | DtOsgEarthDataRequest::OsgEarthDataType enum, present the type of the layer. |
| driver | The driver used to render this layer, required. |
| url | The URI of the layer, can be a local file path or remote URI. |
| name | The name of the layer, must be unique. |
|
protected |
Creates a request for adding a model layer.
| name | The name of the layer, must be unique. |
| driver | The driver used to render this layer, required. |
| url | The URI of the layer, can be a local file path or remote URI. |
| wfsType | The wfs typename of the model layer, only appliable if the model source is wfs(OGC Web Feature Service). |
|
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.
|
protectedvirtual |
Reload the osgEarth terrain if there is one.
|
protectedvirtual |
Finds the terrain patch with the given terrain definition.
|
protectedvirtual |
Finds the feature layer with the given name.
|
protectedvirtual |
Finds the feature layer with the given name.
|
protectedvirtual |
Check if this type of terrain content item has any property to display(Group item has no property to display).
| key | The key of the terrain content item. |
|
protectedvirtual |
Removes the template files generated during the operation.
|
protectedvirtual |
Add data into the terrain(could be file or folder).
|
protectedvirtual |
Saves the entire terrain contents as MTF(MAK Terrain Format) file.
|
protectedvirtual |
Saves all the terrain patches as a MTF(MAK Terrain Format) file.
|
protectedvirtual |
Saves all the feature layers as a MTF(MAK Terrain Format) file.
|
protectedvirtual |
Saves all the ocean layers as a MTF(MAK Terrain Format) file.
|
protectedvirtual |
Saves all the image layers as an earth file.
|
protectedvirtual |
Saves all the elevation layers as an earth file.
|
protectedvirtual |
Saves all the model layers as an earth file.
|
protectedvirtual |
Saves all the building layers as an earth file.
|
protectedvirtual |
Saves all the landCover layers as an earth file.
|
protectedvirtual |
Saves all the ground cover layers as an earth file.
|
protectedvirtual |
Saves all the road surface layers as an earth file.
|
protectedvirtual |
Saves all the splat layers as an earth file.
|
protectedvirtual |
Saves the osgEarth terrain as an earth file.
|
protectedvirtual |
Saves the terrain patch as a MTF(MAK Terrain Format) file.
| patch | The terrain patch to save out. |
|
protectedvirtual |
Saves the feature layer as a MTF(MAK Terrain Format) file.
| feature | The feature layer to save out. |
|
protectedvirtual |
Saves the ocean layer as a MTF(MAK Terrain Format) file.
| ocean | The ocean layer to save out. |
|
protectedvirtual |
Saves the image layer as an earth file.
| layer | The image layer to save out. |
|
protectedvirtual |
Saves the elevation layer as an earth file.
| layer | The elevation layer to save out. |
|
protectedvirtual |
Saves the model layer as an earth file.
| layer | The model layer to save out. |
|
protectedvirtual |
Saves the building layer as an earth file.
| layer | The building layer to save out. |
|
protectedvirtual |
Saves the land cover layer as an earth file.
| layer | The land cover layer to save out. |
|
protectedvirtual |
Saves the ground cover layer as an earth file.
| layer | The ground cover layer to save out. |
|
protectedvirtual |
Saves the road surface layer as an earth file.
| layer | The road surface layer to save out. |
|
protectedvirtual |
Saves the splat layer as an earth file.
| layer | The splat layer to save out. |
|
protectedvirtual |
|
protectedvirtual |
Removes the terrain.
|
protectedvirtual |
Removes all the terrain patches.
|
protectedvirtual |
Removes all the feature layers.
|
protectedvirtual |
Removes all the ocean layers.
|
protectedvirtual |
Removes all the image layers.
|
protectedvirtual |
Removes all the elevation layers.
|
protectedvirtual |
Removes all the model layers.
|
protectedvirtual |
Removes all the building layers.
|
protectedvirtual |
Removes all the land cover layers.
|
protectedvirtual |
Removes all the ground cover layers.
|
protectedvirtual |
Removes all the road surface layers.
|
protectedvirtual |
Removes all the splat layers.
|
protectedvirtual |
Removes the osgEarth terrain.
|
protectedvirtual |
Removes the given terrain patch.
| patch | The terrain patch to remove. |
|
protectedvirtual |
Removes the given feature layer.
| feature | The feature layer to remove. |
|
protectedvirtual |
Removes the given ocean layer.
| ocean | The ocean layer to remove. |
|
protectedvirtual |
Removes the given image layer.
| layer | The image layer to remove. |
|
protectedvirtual |
Removes the given elevation layer.
| layer | The elevation layer to remove. |
|
protectedvirtual |
Removes the given model layer.
| layer | The model layer to remove. |
|
protectedvirtual |
Removes the given building layer.
| layer | The building layer to remove. |
|
protectedvirtual |
Removes the given land cover layer.
| layer | The land cover layer to remove. |
|
protectedvirtual |
Removes the given ground cover layer.
| layer | The ground cover layer to remove. |
|
protectedvirtual |
Removes the given road surface layer.
| layer | The road surface layer to remove. |
|
protectedvirtual |
Removes the given splat layer.
| layer | The splat layer to remove. |
|
protectedvirtual |
|
protectedvirtual |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protectedvirtual |
Toggles the visibility of all the terrain patches.
| visible | The visibility of all the terrain patches. |
|
protectedvirtual |
Toggles the visibility of all the feature layers.
| visible | The visibility of all the feature layers. |
|
protectedvirtual |
Toggles the visibility of all the ocean layers.
| visible | The visibility of all the ocean layers. |
|
protectedvirtual |
Toggles the visibility of a group of image layers.
| visible | The visibility of all the image layers in the group. |
|
protectedvirtual |
Toggles the visibility of a group of elevation layers.
| visible | The visibility of all the elevation layers in the group. |
|
protectedvirtual |
Toggles the visibility of all the model layers.
| visible | The visibility of all the model layers. |
|
protectedvirtual |
Toggles the visibility of all the building layers.
| visible | The visibility of all the building layers. |
|
protectedvirtual |
Toggles the visibility of a group of land cover layers.
| visible | The visibility of all the land cover layers in the group. |
|
protectedvirtual |
Toggles the visibility of all the ground cover layers.
| visible | The visibility of all the ground cover layers. |
|
protectedvirtual |
Toggles the visibility of all the road surface layers.
| visible | The visibility of all the road surface layers. |
|
protectedvirtual |
Toggles the visibility of all the splat layers.
| visible | The visibility of all the splat layers. |
|
protectedvirtual |
Toggles the visibility of all the splat layers.
| visible | The visibility of all the splat layers. |
|
protectedvirtual |
Toggles the visibility of the given terrain patch.
| patch | The terrain patch. |
| visible | The visibility of all the terrain patch. |
|
protectedvirtual |
Toggles the visibility of the given feature layer.
| feature | The feature layer. |
| visible | The visibility of the feature layer. |
|
protectedvirtual |
Toggles the visibility of the given ocean layer.
| ocean | The ocean layer. |
| visible | The visibility of all the terrain patch. |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Toggles the minimal visible range of the osgEarth visible layer.
| layer | The visible layer. |
| minRange | The minimal visible range. |
|
protectedvirtual |
Toggles the maximum visible range of the osgEarth visible layer.
| layer | The visible layer. |
| maxRange | The maximum visible range. |
|
protectedvirtual |
Sets the lighting condition of the model layer.
| layer | The model layer. |
| lighting | Whether apply lighting on the model layer. |
|
protectedvirtual |
Sets the wind speed of the ground cover.
| cover | The ground cover. |
| wind | The wind speed of the ground cover[0..1]. Sets the fill of the ground cover. |
| cover | The ground cover. |
| fill | Percentage 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. |
| cover | The ground cover. |
| maxDistance | Maximum viewing distance from camera. Create a default earth terrain with the given name. |
| name | The definition of the earth terrain. |
|
protectedvirtual |
Saves the osgEarth terrain as an earth file with the given name.
|
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.
|
protectedvirtual |
|
protectedvirtual |
Removes the image layer config from the osgEarth xml file.
|
protectedvirtual |
Removes the elevation layer config from the osgEarth xml file.
|
protectedvirtual |
Removes the model layer config from the osgEarth xml file.
|
protectedvirtual |
Removes the mask layer config from the osgEarth xml file.
|
private |
Assignment Operator not implemented – Copy not allowed.
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |