19 class ImageLayerOptions;
20 class ElevationLayerOptions;
21 class ModelLayerOptions;
22 class MaskLayerOptions;
23 class LandCoverLayerOptions;
26 class BuildingLayerOptions;
30 class GroundCoverLayerOptions;
31 class GroundCoverOptions;
32 class RoadSurfaceLayerOptions;
33 class SplatLayerOptions;
39 class DtModelDefinitionRecord;
40 class DtFeatureLayerRecord;
41 class DtOceanLayerRecord;
46 class DtOsgEarthXmlReference;
47 class DtOsgEarthFileParser;
137 void setType(
int type);
145 void setParentType(
int type);
149 void setParentId(
int id);
158 void setName(
const std::string& name);
162 const int type()
const;
166 const int id()
const;
170 const int parentType()
const;
174 const int parentId()
const;
178 std::string name()
const;
181 const bool useName()
const;
201 virtual void addTerrainContentTopLevelItem(
const TerrainContentItemKey& key,
const std::string& displayName) = 0;
210 int index=-1,
bool editable =
false,
bool checked =
true ) = 0;
215 virtual void addOsgEarthFragmentContentTopLevelItem(
const std::string& key,
const std::string& displayName) = 0;
221 virtual void addOsgEarthFragmentContentItem(
const std::string& key,
const std::string& parentKey,
const std::string& displayName) = 0;
224 virtual void clearTreeWidgets() = 0;
229 virtual void setFocusOnTerrainContentTreeWidgetItem(
const TerrainContentItemKey& key,
bool expanded =
true) = 0;
244 virtual void cleanOsgEarthFragmentTreeWidget() = 0;
248 virtual void setSelectedOsgEarthFragmentKeys(
const std::vector<TerrainContentItemKey>& keys) = 0;
257 virtual void setGenerateCacheButtonEnabled(
bool enabled) = 0;
261 virtual void setGenerateBoundaryButtonEnabled(
bool enabled) = 0;
265 virtual void setSaveTerrainButtonEnabled(
bool enabled) = 0;
269 virtual void setCommitChangeButtonEnabled(
bool enabled) = 0;
273 virtual void setRevertChangeButtonEnabled(
bool enabled) = 0;
277 virtual void enableOsgEarthFragmentTabWidget(
bool enabled) = 0;
281 virtual void enableTerrainRuntimeTabWidget(
bool enabled) = 0;
284 virtual void resizeTerrainPropertyTreeWidget() = 0;
287 virtual void resizeTerrainRuntimeTreeWidget() = 0;
290 virtual void resizeTerrainFragmentTreeWidget() = 0;
293 virtual void setTerrainPropertyTreeItemName(
const std::string& name) = 0;
296 virtual void setTerrainPropertyTreeItemVisiblity(
bool visible) = 0;
304 virtual void showTerrainPropertyTreeWidgetItems(
const std::vector<TerrainContentItemKey>& keys) = 0;
318 virtual void setOsgEarthTerrainProperty(
const TerrainContentItemKey& key,
const osgEarth::MapOptions& mapOptions,
319 const osgEarth::MapNodeOptions& mapNodeOptions,
const osgEarth::TerrainOptions& terrainOptions) = 0;
326 virtual void getOsgEarthTerrainProperty(
const TerrainContentItemKey& key, osgEarth::MapOptions& mapOptions,
327 osgEarth::MapNodeOptions& mapNodeOptions, osgEarth::TerrainOptions& terrainOptions) = 0;
362 virtual void setImageLayerProperty(
const TerrainContentItemKey& key,
const osgEarth::ImageLayerOptions& option) = 0;
367 virtual void getImageLayerProperty(
const TerrainContentItemKey& key, osgEarth::ImageLayerOptions& option) = 0;
372 virtual void setElevationLayerProperty(
const TerrainContentItemKey& key,
const osgEarth::ElevationLayerOptions& option) = 0;
377 virtual void getElevationLayerProperty(
const TerrainContentItemKey& key, osgEarth::ElevationLayerOptions& option) = 0;
382 virtual void setModelLayerProperty(
const TerrainContentItemKey& key,
const osgEarth::ModelLayerOptions& option) = 0;
387 virtual void getModelLayerProperty(
const TerrainContentItemKey& key, osgEarth::ModelLayerOptions& option) = 0;
392 virtual void setMaskLayerProperty(
const TerrainContentItemKey& key,
const osgEarth::MaskLayerOptions& option) = 0;
397 virtual void setBuildingLayerProperty(
const TerrainContentItemKey& key,
const osgEarth::Buildings::BuildingLayerOptions& option) = 0;
402 virtual void setLandCoverLayerProperty(
const TerrainContentItemKey& key,
const osgEarth::LandCoverLayerOptions& option) = 0;
407 virtual void setGroundCoverLayerProperty(
const TerrainContentItemKey& key,
const osgEarth::Splat::GroundCoverLayerOptions& option) = 0;
412 virtual void setGroundCoverProperty(
const TerrainContentItemKey& key,
const osgEarth::Splat::GroundCoverOptions& option) = 0;
417 virtual void setRoadSurfaceLayerProperty(
const TerrainContentItemKey& key,
const osgEarth::Splat::RoadSurfaceLayerOptions& option) = 0;
422 virtual void setSplatLayerProperty(
const TerrainContentItemKey& key,
const osgEarth::Splat::SplatLayerOptions& option) = 0;
428 virtual void showCacheDialog(
const std::string& osgEarthTerrainDefinition) = 0;
440 virtual void showSaveFileConfirmationMessageBox(
const DtUnicode& fileName) = 0;
443 virtual bool showOverrideOsgEarthFileDialog() = 0;
447 virtual bool showWarnReloadTerrainMessageBox(
bool& checked) = 0;
451 virtual bool showReloadTerrainAfterGenerateMaskMessageBox(
const std::string& terrainPatch) = 0;
457 virtual bool showChooseLayerTypeMessageBox(
const DtUnicode& url,
int& type) = 0;
462 virtual void showFileExtensionNotSupportedMessageBox(
const DtUnicode& fileName) = 0;
466 virtual void setGenerateBoundaryModels(
const std::vector<std::string>& models) = 0;
517 virtual void expandTerrainContentTreeWidget() = 0;
520 virtual void expandOsgEarthFragmentTreeWidget() = 0;
563 boost::signal<void(const std::vector<TerrainContentItemKey>& keys)> signal_osgEarthFragmentCommitChangesButtonReleased;
618 boost::signal<void(const std::string& definition, const std::string& name, bool geocentric, bool convexHull)>
signal_generateBoundary;
689 boost::signal<void(std::vector<std::string>)> signal_addData;
Definition: DtTerrainEditorInterface.h:78
boost::signal< void(const TerrainContentItemKey &key)> signal_terrainPropertyTreeWidgetItem_currentItemChanged
boost signals
Definition: DtTerrainEditorInterface.h:534
boost::signal< void(const TerrainContentItemKey &key, double height)> signal_oceanLayerHeightChanged
Signal emmitted when the height of the ocean layer has changed.
Definition: DtTerrainEditorInterface.h:653
boost::signal< void(const TerrainContentItemKey &key, double minRange)> signal_visibleLayerMinVisibleRangeChanged
The signal emitted when the minimal visible range of the layer has changed.
Definition: DtTerrainEditorInterface.h:639
Definition: DtTerrainEditorInterface.h:72
A DtOceanLayerRecord contains the information to add dynamic water.
Definition: DtOceanLayerRecord.h:21
Contains DLL export macros.
A unicode string.
Definition: DtUnicode.h:33
Definition: DtTerrainEditorInterface.h:73
boost::signal< void(const TerrainContentItemKey &key)> signal_terrainRuntimeTreeWidgetItem_currentItemChanged
The signal emitted when the current item of the terrain runtime property tree has changed...
Definition: DtTerrainEditorInterface.h:538
Definition: DtTerrainEditorInterface.h:77
boost::signal< void(const TerrainContentItemKey &key, double contrast)> signal_groundCoverContrastChanged
The signal emitted when contrast of the ground cover changed.
Definition: DtTerrainEditorInterface.h:683
boost::signal< void()> signal_saveOsgEarthTerrain
The signal emitted when receive the request to save the osgEarth terrain through the context menu...
Definition: DtTerrainEditorInterface.h:621
Definition: DtTerrainEditorInterface.h:80
boost::signal< void(const TerrainContentItemKey &key, double brightness)> signal_groundCoverBrightnessChanged
The signal emitted when brightness of the ground cover changed.
Definition: DtTerrainEditorInterface.h:678
boost::signal< void(const TerrainContentItemKey &key)> signal_terrainContentCommitChangesButtonReleased
The signal emitted when user hits the commit changes button.
Definition: DtTerrainEditorInterface.h:555
boost::signal< void(const std::string &name, const std::string &driver, const DtUnicode &url, const std::string &wfsType)> signal_osgEarthModelLayerRequestAdded
The signal emitted when a model layer has been added through the gui.
Definition: DtTerrainEditorInterface.h:611
boost::signal< void(const TerrainContentItemKey &key, bool visible)> signal_visibleLayerVisiblityChanged
The signal emitted when the visibility of the layer has changed.
Definition: DtTerrainEditorInterface.h:629
A DtFeatureLayerRecord contains the information to add features from a single source file and ruleset...
Definition: DtFeatureLayerRecord.h:25
Definition: DtTerrainEditorInterface.h:88
int myParentType
Definition: DtTerrainEditorInterface.h:192
Definition: DtTerrainEditorInterface.h:86
Definition: DtTerrainEditorInterface.h:67
Definition: DtTerrainEditorInterface.h:65
int myType
Definition: DtTerrainEditorInterface.h:190
Definition: DtTerrainEditorInterface.h:90
bool myUseName
Definition: DtTerrainEditorInterface.h:194
DtTerrainEditorInterface.
Definition: DtTerrainEditorInterface.h:54
A DtModelDefinitionRecord will serialize a terrain patch model definition.
Definition: DtModelDefinitionRecord.h:20
Definition: DtTerrainEditorInterface.h:71
boost::signal< void(const TerrainContentItemKey &key, double opacity)> signal_visibleLayerOpacityChanged
The signal emitted when the opacity of the layer has changed.
Definition: DtTerrainEditorInterface.h:634
Definition: DtTerrainEditorInterface.h:68
Definition: DtTerrainEditorInterface.h:83
boost::signal< void(const TerrainContentItemKey &key, const std::string &oldName, const std::string &newName)> signal_renameTerrainContentTreeWidgetItem
The signal emitted when rename the item in terrain content tree through context menu.
Definition: DtTerrainEditorInterface.h:569
boost::signal< void()> signal_generateCacheButtonReleased
The signal emitted when user clicks on the generate cache button.
Definition: DtTerrainEditorInterface.h:686
boost::signal< void(const TerrainContentItemKey &key, double maxRange)> signal_visibleLayerMaxVisibleRangeChanged
The signal emitted when the maximum visible range of the layer has changed.
Definition: DtTerrainEditorInterface.h:644
boost::signal< void(const TerrainContentItemKey &key, bool up)> signal_moveTerrainContentTreeWidgetItem
The signal emitted when the user moves up/down the terrain content item through the context menu...
Definition: DtTerrainEditorInterface.h:574
boost::signal< void(const TerrainContentItemKey &key)> signal_saveTerrainContentTreeWidgetItem
The signal emitted when the user clicks save on the terrain content item through the context menu(if ...
Definition: DtTerrainEditorInterface.h:578
boost::signal< void(const DtUnicode &fileName)> signal_addFeatureLayerButtonReleased
The signal emitted when user clicks on the add feature layer button(MAK Terrain Toolkit feature layer...
Definition: DtTerrainEditorInterface.h:593
boost::signal< void()> signal_generateBoundaryButton_released
The signal emitted when user clicks on the generate boundary button.
Definition: DtTerrainEditorInterface.h:585
boost::signal< void(const TerrainContentItemKey &key, bool visible)> signal_terrainContentTreeWidget_itemVisibilityChanged
The signal emitted when toggle the visibility check box of the terrain content tree item...
Definition: DtTerrainEditorInterface.h:547
int myParentId
Definition: DtTerrainEditorInterface.h:193
Definition: DtTerrainEditorInterface.h:76
int myId
Definition: DtTerrainEditorInterface.h:191
TerrainContentItemType
Definition: DtTerrainEditorInterface.h:59
boost::signal< void(const std::string &key)> signal_osgEarthFragmentTreeWidget_currentItemChanged
The signal emitted when the current item of the osgEarth fragment tree has changed.
Definition: DtTerrainEditorInterface.h:551
boost::signal< void(int type, const std::string &name, const std::string &driver, const DtUnicode &url)> signal_osgEarthTerrainLayerRequestAdded
The signal emitted when a terrain layer(Image/Elevation) has been added through the gui...
Definition: DtTerrainEditorInterface.h:604
boost::signal< void(const TerrainContentItemKey &key)> signal_terrainContentRevertChangesButtonReleased
The signal emitted when user hits the revert changes button.
Definition: DtTerrainEditorInterface.h:559
Definition: DtTerrainEditorInterface.h:89
Definition: DtTerrainEditorInterface.h:92
boost::signal< void()> signal_addOceanLayerButtonReleased
The signal emitted when user clicks on the add ocean layer button.
Definition: DtTerrainEditorInterface.h:597
boost::signal< void()> signal_saveTerrain
The signal emitted when receive the request to save the terrain(MTF terrain) through the context menu...
Definition: DtTerrainEditorInterface.h:624
boost::signal< void(const TerrainContentItemKey &key, bool lighting)> signal_modelLayerLightingChanged
The signal emitted when the lighting condition of the model layer has been changed.
Definition: DtTerrainEditorInterface.h:649
Definition: DtTerrainEditorInterface.h:69
std::string myName
Definition: DtTerrainEditorInterface.h:195
boost::signal< void(const TerrainContentItemKey &key, double maxDistance)> signal_groundCoverMaxDistanceChanged
The signal emitted when maxDistance of the ground cover changed.
Definition: DtTerrainEditorInterface.h:673
Definition: DtTerrainEditorInterface.h:84
boost::signal< void(const TerrainContentItemKey &key)> signal_terrainContentTreeWidget_itemDoubleClicked
The signal emitted when double click on the terrain content item.
Definition: DtTerrainEditorInterface.h:542
bool operator==(const DtTextureAtlasIndexParser::StringOrFloatAttrib &lhs, const DtTextureAtlasIndexParser::StringOrFloatAttrib &rhs)
needed for search comparison code
Definition: DtTextureAtlasIndexParser.h:153
Definition: DtTerrainEditorInterface.h:91
Definition: DtTerrainEditorInterface.h:61
Definition: DtTerrainEditorInterface.h:81
TerrainContentItemKey.
Definition: DtTerrainEditorInterface.h:99
Definition: DtTerrainEditorInterface.h:66
Definition: DtTerrainEditorInterface.h:75
Definition: DtTerrainEditorInterface.h:85
Definition: DtTerrainEditorInterface.h:82
Definition: DtTerrainEditorInterface.h:79
boost::signal< void(const TerrainContentItemKey &key, double fill)> signal_groundCoverFillChanged
The signal emitted when fill of the ground cover changed.
Definition: DtTerrainEditorInterface.h:668
boost::signal< void(const std::string &definition, const std::string &name, bool geocentric, bool convexHull)> signal_generateBoundary
The signal emitted when receive the request to generate boundary for a given terrain patch...
Definition: DtTerrainEditorInterface.h:618
#define DT_DLL_VRVTERRAINEDITOR
Definition: vrvTerrainEditor.h:25
boost::signal< void(const TerrainContentItemKey &key, int lod)> signal_oceanLayerLodChanged
Signal emmitted when the lod of the ocean layer has changed.
Definition: DtTerrainEditorInterface.h:657
Definition: DtTerrainEditorInterface.h:74
Definition: DtTerrainEditorInterface.h:63
Definition: DtTerrainEditorInterface.h:70
Definition: DtTerrainEditorInterface.h:87
boost::signal< void(const TerrainContentItemKey &key)> signal_deleteTerrainContentTreeWidgetItem
The signal emitted when the user clicks save on the terrain content item.
Definition: DtTerrainEditorInterface.h:582
Definition: DtTerrainEditorInterface.h:62
boost::signal< void(const TerrainContentItemKey &key, double wind)> signal_groundCoverWindChanged
The signal emitted when wind of the ground cover changed.
Definition: DtTerrainEditorInterface.h:662
Definition: DtTerrainEditorInterface.h:64
boost::signal< void(const DtUnicode &fileName)> signal_addTerrainPatchButtonReleased
The signal emitted when user clicks on the add terrain patch button.
Definition: DtTerrainEditorInterface.h:589