![]() |
VR-Forces 5.0.3 Developer's Guide
|
logic class to drive the DtTerrainEditorWidget.
Classes | |
| class | DtTerrainEditorMapCallbak |
Public Member Functions | |
| virtual | ~DtTerrainEditorLogic () |
| virtual void | setTerrainContentItemVisible (const DtTerrainEditorInterface::TerrainContentItemKey &key, bool visible) |
| virtual void | setTerrainContentItemName (const DtTerrainEditorInterface::TerrainContentItemKey &key, const std::string &newName) |
| virtual void | moveTerrainContentItem (const DtTerrainEditorInterface::TerrainContentItemKey &key, bool up) |
Protected Member Functions | |
| DtTerrainEditorLogic (DtDe &de, DtTerrainEditorInterface *iFace) | |
| virtual void | connectSignals () |
| virtual void | disconnectSignals () |
| virtual void | syncCurrentScene () |
| virtual void | onImageLayerCreated (osgEarth::ImageLayer *imageLayer) |
| virtual void | onElevationLayerCreated (osgEarth::ElevationLayer *elevationLayer) |
| virtual void | onModelLayerCreated (osgEarth::ModelLayer *modelLayer) |
| virtual void | onMaskLayerCreated (osgEarth::TerrainConstraintLayer *maskLayer) |
| virtual void | syncImageLayerToOsgEarthFile (osgEarth::ImageLayer *imageLayer) |
| virtual void | syncElevationLayerToOsgEarthFile (osgEarth::ElevationLayer *elevationLayer) |
| virtual void | syncModelLayerToOsgEarthFile (osgEarth::ModelLayer *modelLayer) |
| virtual void | syncMaskLayerToOsgEarthFile (osgEarth::TerrainConstraintLayer *maskLayer) |
| virtual void | syncMaskConfigToOsgEarthFile (const std::string &name, const std::string &boundary) |
| virtual void | removeConfigInOsgEarthFile (const std::string &key, const std::string &name) |
| virtual void | onOsgEarthTerrainCleared () |
| virtual void | setTerrainPropertyItemOption (const DtTerrainEditorInterface::TerrainContentItemKey &key) |
| virtual void | setOsgEarthFragmentOptions (const DtOsgEarthFile *file) |
| virtual void | commitChange (const DtTerrainEditorInterface::TerrainContentItemKey &key) |
| DtOsgEarthDataRequest * | createOsgEarthTerrainLayerRequest (int type, const std::string &name, const std::string &driver, const DtUnicode &url) |
| DtOsgEarthDataRequest * | createOsgEarthModelLayerRequest (const std::string &name, const std::string &driver, const DtUnicode &url, const std::string &wfsType) |
| virtual void | reloadTerrainPatch (const std::string &terrainDefinition) |
| virtual void | reloadOsgEarthTerrain () |
| virtual DtTerrainPatch * | findTerrainPatch (const std::string &defintion) |
| virtual DtFeatureLayer * | findFeatureLayer (const std::string &name) |
| virtual DtOceanLayer * | findOceanLayer (const std::string &name) |
| virtual bool | ifTerrainContentItemHasProperty (DtTerrainEditorInterface::TerrainContentItemType type) |
| virtual void | removeTemplateFiles () |
| virtual void | addData (const std::string &url, QFlags< Qt::KeyboardModifier > keyModifiers) |
| virtual int | findIndexForGroupItem (const DtTerrainEditorInterface::TerrainContentItemKey &key) |
| virtual DtUnicode | findFileNameOfTerrainPatch (const std::string &terrainDefinition) |
| virtual bool | isOsgEarthTerrain (const DtUnicode &fileName) |
| int | getContentGroupKeyTypeFromClassName (const std::string &className) const |
| int | getContentItemKeyTypeFromClassName (const std::string &className) const |
| virtual std::string | getTerrainContentGroupItemDisplayName (int type) |
| bool | isTerrainContentItemVisibilityCheckboxEnabled (int type) const |
| virtual void | populateTerrainPatch (const DtTerrainPatchObject *terrainPatchObject, int sequence) |
| virtual void | populateFeatureLayer (const DtFeatureLayer *featureLayer, int sequence) |
| virtual void | populateOceanLayer (const DtOceanLayer *oceanLayer, int sequence) |
| virtual void | processOsgEarthTerrain (const std::string &terrainDefinition, const DtUnicode &fileName) |
| template<typename T > | |
| void | populateOsgEarthLayers () |
| virtual void | populateOsgEarthLayer (osg::ref_ptr< osgEarth::Layer > layer, int index) |
| virtual void | populateOsgEarthTerrain () |
| virtual void | populateOsgEarthFragments () |
| virtual void | populateImageLayers () |
| virtual void | populateElevationLayers () |
| virtual void | populateLandCoverLayers () |
| virtual void | populateImageLayer (osgEarth::ImageLayer *imageLayer, int sequence) |
| virtual void | populateElevationLayer (osgEarth::ElevationLayer *elevationLayer, int sequence) |
| virtual void | populateLandCoverLayer (osgEarth::LandCoverLayer *layer, int sequence) |
| virtual void | slot_terrainPatchCreated (DtTerrainPatchObject &terrainPatchObject) |
| virtual void | slot_terrainPatchToBeDeleted (const DtTerrainPatch &patch) |
| virtual void | slot_featureLayerAdded (const DtFeatureLayer &layer) |
| virtual void | slot_featureLayerToBeDeleted (const DtFeatureLayer &layer) |
| virtual void | slot_oceanLayerAdded (const DtOceanLayer &layer) |
| virtual void | slot_oceanLayerToBeDeleted (const DtOceanLayer &layer) |
| virtual void | slot_terrainLoaded (const makArchives::DtTerrainRecord &) |
| virtual void | slot_terrainToBeCleared (bool reload) |
| virtual void | slot_clientAdded () |
| virtual void | slot_terrainCleared () |
| virtual void | slot_terrainContentTreeWidget_itemDoubleClicked (const DtTerrainEditorInterface::TerrainContentItemKey &key) |
| virtual void | slot_osgEarthFragmentTreeWidget_currentItemChanged (const std::string &key) |
| virtual void | slot_terrainContentCommitChangesButtonReleased (const DtTerrainEditorInterface::TerrainContentItemKey &key) |
| virtual void | slot_terrainContentRevertChangesButtonReleased (const DtTerrainEditorInterface::TerrainContentItemKey &key) |
| virtual void | slot_terrainPropertyTreeWidgetItem_currentItemChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key) |
| virtual void | slot_osgEarthFragmentCommitChangesButtonReleased (const std::vector< DtTerrainEditorInterface::TerrainContentItemKey > &keys) |
| virtual void | slot_saveTerrainContentTreeWidgetItem (const DtTerrainEditorInterface::TerrainContentItemKey &key) |
| virtual void | slot_deleteTerrainContentTreeWidgetItem (const DtTerrainEditorInterface::TerrainContentItemKey &key) |
| virtual void | slot_addFeatureLayerButtonReleased (const DtUnicode &fileName, bool toFrontEnd, bool toSimEngine) |
| virtual void | slot_addOceanLayerButtonReleased () |
| virtual void | slot_generateBoundaryButton_released () |
| virtual void | slot_osgEarthTerrainLayerRequestAdded (int type, const std::string &name, const std::string &driver, const DtUnicode &url) |
| virtual void | slot_osgEarthModelLayerRequestAdded (const std::string &name, const std::string &driver, const DtUnicode &url, const std::string &wfsType) |
| virtual void | slot_generateBoundary (const std::string &terrainPatchDefinition, const std::string &name, bool geocentric, bool convexHull) |
| virtual void | slot_generateCacheButtonReleased () |
| virtual void | slot_saveTerrain () |
| virtual void | slot_quit () |
| virtual void | slot_addData (std::vector< std::string > files, Qt::KeyboardModifiers keyModifiers) |
| virtual void | slot_terrainDescriptionChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, const std::string &description) |
| virtual void | slot_visibleLayerVisiblityChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, bool visible) |
| virtual void | slot_visibleLayerOpacityChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, double opacity) |
| virtual void | slot_visibleLayerMinVisibleRangeChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, double minRange) |
| virtual void | slot_visibleLayerMaxVisibleRangeChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, double maxRange) |
| virtual void | slot_osgEarthDebugModeStateChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, bool enabled) |
| virtual void | slot_terrainMaxPagedLODsChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, int maxPagedLODs) |
| virtual void | slot_oceanLayerNameChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, const std::string &name) |
| virtual void | slot_oceanLayerHeightChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, double height) |
| virtual void | slot_oceanLayerLodChanged (const DtTerrainEditorInterface::TerrainContentItemKey &key, int lod) |
| virtual void | moveCameraToGeoExtent (const osgEarth::GeoExtent &geoExtent) |
| virtual void | moveCameraToTerrainCenter (const std::string &terrainDefinition) |
| osgEarth::GeoExtent | findGeoExtentForGroundCoverLayer (osgEarth::Splat::GroundCoverLayer *layer) |
| osgEarth::GeoExtent | findGeoExtentForSplatLayer (osgEarth::Splat::SplatLayer *layer) |
| virtual void | updateOsgEarthTerrainProperty (const std::string &oldName, const osgEarth::MapOptions &mapOptions, const osgEarth::MapNodeOptions &mapNodeOptions, const osgEarth::TerrainOptions &terrainOptions) |
| virtual void | updateImageLayerProperty (osgEarth::ImageLayer *layer, const osgEarth::ImageLayerOptions &options) |
| virtual void | updateElevationLayerProperty (osgEarth::ElevationLayer *layer, const osgEarth::ElevationLayerOptions &options) |
| virtual void | updateModelLayerProperty (osgEarth::ModelLayer *layer, const osgEarth::ModelLayerOptions &options) |
| virtual void | updateOpenFlightTerrainProperty (DtTerrainPatch *patch, const makArchives::DtModelDefinitionRecord &rec) |
| virtual void | updateFeatureLayerProperty (DtFeatureLayer *layer, const makArchives::DtFeatureLayerRecord &rec) |
| virtual void | updateOceanLayerProperty (DtOceanLayer *layer, const makArchives::DtOceanLayerRecord &rec) |
| virtual void | getConfigForOsgEarthTerrainProperty (const osgEarth::MapOptions &mapOptions, const osgEarth::MapNodeOptions &mapNodeOptions, const osgEarth::TerrainOptions &terrainOptions, osgEarth::Config &mapConfig, osgEarth::Config &optionConfig) |
| virtual void | getConfigForImageLayer (osgEarth::ImageLayer *layer, const osgEarth::ImageLayerOptions &options, osgEarth::Config &optionConfig) |
| virtual void | getConfigForElevationLayer (osgEarth::ElevationLayer *layer, const osgEarth::ElevationLayerOptions &options, osgEarth::Config &optionConfig) |
| virtual void | getConfigForModelLayer (osgEarth::ModelLayer *layer, const osgEarth::ModelLayerOptions &options, osgEarth::Config &optionConfig) |
| virtual void | getConfigForMaskLayer (osgEarth::TerrainConstraintLayer *layer, const osgEarth::MaskLayerOptions &options, osgEarth::Config &optionConfig) |
| virtual void | saveTerrain () |
| virtual void | saveTerrainPatches () |
| virtual void | saveFeatureLayers () |
| virtual void | saveOceanLayers () |
| virtual void | saveImageLayers () |
| virtual void | saveElevationLayers () |
| virtual void | saveModelLayers () |
| virtual void | saveBuildingLayers () |
| virtual void | saveLandCoverLayers () |
| virtual void | saveGroundCoverLayers () |
| virtual void | saveRoadSurfaceLayers () |
| virtual void | saveSplatLayers () |
| virtual void | saveOsgEarthTerrain () |
| virtual void | saveTerrainPatch (DtTerrainPatch *patch) |
| virtual void | saveFeatureLayer (DtFeatureLayer *feature) |
| virtual void | saveOceanLayer (DtOceanLayer *ocean) |
| virtual void | saveImageLayer (osgEarth::ImageLayer *layer) |
| virtual void | saveElevationLayer (osgEarth::ElevationLayer *layer) |
| virtual void | saveModelLayer (osgEarth::ModelLayer *layer) |
| virtual void | saveBuildingLayer (osgEarth::Buildings::BuildingLayer *layer) |
| virtual void | saveLandCoverLayer (osgEarth::LandCoverLayer *layer) |
| virtual void | saveGroundCoverLayer (osgEarth::Splat::GroundCoverLayer *layer) |
| virtual void | saveRoadSurfaceLayer (osgEarth::Splat::RoadSurfaceLayer *layer) |
| virtual void | saveSplatLayer (osgEarth::Splat::SplatLayer *layer) |
| virtual void | saveOsgEarthLayer (osgEarth::Layer *layer) |
| virtual void | removeTerrain () |
| virtual void | removeTerrainPatches () |
| virtual void | removeFeatureLayers () |
| virtual void | removeOsgEarthFeatureLayers () |
| virtual void | removeOceanLayers () |
| virtual void | removeImageLayers () |
| virtual void | removeElevationLayers () |
| virtual void | removeModelLayers () |
| virtual void | removeBuildingLayers () |
| virtual void | removeLandCoverLayers () |
| virtual void | removeGroundCoverLayers () |
| virtual void | removeRoadSurfaceLayers () |
| virtual void | removeSplatLayers () |
| virtual void | removeOsgEarthTerrain () |
| virtual void | removeTerrainPatch (DtTerrainPatch *patch) |
| virtual void | removeFeatureLayer (DtFeatureLayer *feature) |
| virtual void | removeOceanLayer (DtOceanLayer *ocean) |
| virtual void | removeImageLayer (osgEarth::ImageLayer *layer) |
| virtual void | removeElevationLayer (osgEarth::ElevationLayer *layer) |
| virtual void | removeModelLayer (osgEarth::ModelLayer *layer) |
| virtual void | removeBuildingLayer (osgEarth::Buildings::BuildingLayer *layer) |
| virtual void | removeLandCoverLayer (osgEarth::LandCoverLayer *layer) |
| virtual void | removeGroundCoverLayer (osgEarth::Splat::GroundCoverLayer *layer) |
| virtual void | removeRoadSurfaceLayer (osgEarth::Splat::RoadSurfaceLayer *layer) |
| virtual void | removeSplatLayer (osgEarth::Splat::SplatLayer *layer) |
| virtual void | removeOsgEarthLayer (osgEarth::Layer *layer) |
Private Member Functions | |
| DtTerrainEditorLogic () | |
| DtTerrainEditorLogic (const DtTerrainEditorLogic &) | |
| DtTerrainEditorLogic & | operator= (const DtTerrainEditorLogic &) |
|
virtual |
DTOR.
|
private |
Private default constructor not implimented.
|
private |
Copy Constructor not implemented – Copy not allowed.
|
protected |
Protected Constructor. Use DtOsgEarthProfileLogicCreator to create instances of this class.
|
private |
Assignment Operator not implemented – Copy not allowed.
|
virtual |
Slot when toggle the check box of the terrain content tree, used to toggle the visibility of the content if applicable.
| key | The key of the terrain content item to be modified. |
| visible | The visibility of the terrain content item. |
|
virtual |
Slot when rename the item in terrain content tree through context menu.
| key | The key of the terrain content item to be modified. |
| newName | The name after rename. |
|
virtual |
Slot when the user moves up/down the terrain content item through the context menu.
| key | The key of the terrain content item to be modified. |
| up | If true, move up, otherwise move down. |
|
protectedvirtual |
Connect the signals.
|
protectedvirtual |
Disconnect the signals.
|
protectedvirtual |
Populate the terrain content tree with the contents of the currently loaded terrain. This function is only invoked once - when the terrain editor is created. This function does not clear the terrain content tree before populating.
|
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.
|
protected |
Gets the terrain content item type for the group that the osgEarth::Layer belongs in based on class name.
|
protected |
Gets the terrain content item type for the osgEarth::Layer based on class name.
|
protectedvirtual |
Gets the display name of group item/top level item of the terrain content tree. empty string if failed.
|
protected |
Gets whether terrain content items of the provided type can have their visibility toggled.
|
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. |
|
protectedvirtual |
|
protected |
Gets all layers of the templated type from the osgEarth::Map and calls populateOsgEarthLayer on each one This function should not be used with composite layers.
|
protectedvirtual |
Uses widget interface to add an osgEarth layer to the terrain content tree. This function should not be used with composite layers. This function relies on terrain content item types returned by getContentGroupKeyFromClassName and getContentItemKeyTypeFromClassName to determine how the terrain content tree is organized. Finally, this function relies on isTerrainContentItemVisibilityCheckboxEnabled to determine whether the terrain content item should have a checkbox to toggle visibility.
|
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 image layers in osgEarth terrain(if any).
|
protectedvirtual |
Populate all the elevation layers in osgEarth terrain(if any).
|
protectedvirtual |
Populate all the landCover 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 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 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 loaded.
|
protectedvirtual |
Slot function called when the DtTerrainSignaler signals that the terrain is about to be cleared.
|
protectedvirtual |
Slot function called when the DtIgCommunicatorSignaler signals that a client is about to be connected.
|
protectedvirtual |
Slot function called when the DtTerrainSignaler signals that the terrain has been cleaned.
|
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 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 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 feature layer button(MAK Terrain Toolkit feature layer).
| fileName | The file name of the feature layer about to be added. |
| toFrontEnd | Whether or not the feature layer is applied to the front end |
| toSimEngine | Whether or not the feature layer is applied to the simulation engine |
|
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 description of the terrain has changed.
| key | The key of the current selected layer. |
| description | The description of the terrain. |
|
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 with values ranging [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 |
|
protectedvirtual |
Slot when the maximum number of paged LODs for this terrain has changed.
| key | The key of the current selected layer. |
| maxPagedLODs | The maximum number of paged LODs to keep in memory for this terrain. |
|
protectedvirtual |
Slot when the name of the ocean layer has changed.
| key | The key of the current selected layer. |
| name | The name of the ocean layer. |
|
protectedvirtual |
Slot when the height of the ocean layer has changed.
| key | The key of the current selected layer. |
| height | The height of the ocean layer. |
|
protectedvirtual |
Slot when the lod of the ocean layer has changed.
| key | The key of the current selected layer. |
| lod | The altitude at which the Ocean LOD's out. |
|
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 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). The function will attempt to add the file as an imagery layer or an elevation layer first, prompting the user for the answer if ambiguous. If the function cannot add the file as either of these layers, then it will attempt to add the files as one or more terrain patches using the DtAddTerrainPatchManager while showing the DtAddTerrainPatch dialog. Additionally, if 1) CTRL is held down and 2) the user is adding terrain patches, then automatically attempt to load the terrain patches being added.
|
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 osgEarth 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. |
|
protected |
Toggles the visibility of osgEarth layers based on type.
| visible | The new visibility state of the 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 |
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 |
|
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.
|
friend |
|
friend |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
protected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |
|
staticprotected |
Toggles the visibility of the terrain.
| visible | The visibility of the terrain. |