14 #include <QtCore/QFlags>
15 #include <QtCore/qnamespace.h>
22 class ImageLayerOptions;
23 class ElevationLayerOptions;
24 class ModelLayerOptions;
25 class MaskLayerOptions;
26 class LandCoverLayerOptions;
29 class BuildingLayerOptions;
33 class GroundCoverLayerOptions;
34 class GroundCoverOptions;
35 class RoadSurfaceLayerOptions;
36 class SplatLayerOptions;
42 class DtModelDefinitionRecord;
43 class DtFeatureLayerRecord;
44 class DtOceanLayerRecord;
45 class DtTerrainRecord;
50 class DtOsgEarthXmlReference;
51 class DtOsgEarthFileParser;
52 class DtTerrainEditorProperties;
148 void setType(
int type);
156 void setParentType(
int type);
160 void setParentId(
int id);
169 void setName(
const std::string& name);
173 const int type()
const;
177 const int id()
const;
181 const int parentType()
const;
185 const int parentId()
const;
189 std::string name()
const;
192 const bool useName()
const;
212 virtual void addTerrainContentTopLevelItem(
const TerrainContentItemKey& key,
const std::string& displayName) = 0;
222 int index=-1,
bool editable =
false,
bool checked =
true ) = 0;
227 virtual void addOsgEarthFragmentContentTopLevelItem(
const std::string& key,
const std::string& displayName) = 0;
233 virtual void addOsgEarthFragmentContentItem(
const std::string& key,
const std::string& parentKey,
const std::string& displayName) = 0;
236 virtual void clearTreeWidgets() = 0;
241 virtual void setFocusOnTerrainContentTreeWidgetItem(
const TerrainContentItemKey& key,
bool expanded =
true) = 0;
256 virtual void cleanOsgEarthFragmentTreeWidget() = 0;
260 virtual void setSelectedOsgEarthFragmentKeys(
const std::vector<TerrainContentItemKey>& keys) = 0;
269 virtual void setGenerateCacheButtonEnabled(
bool enabled) = 0;
273 virtual void setGenerateBoundaryButtonEnabled(
bool enabled) = 0;
277 virtual void setSaveTerrainButtonEnabled(
bool enabled) = 0;
281 virtual void setCommitChangeButtonEnabled(
bool enabled) = 0;
285 virtual void setRevertChangeButtonEnabled(
bool enabled) = 0;
289 virtual void enableOsgEarthFragmentTabWidget(
bool enabled) = 0;
292 virtual void resizeTerrainPropertyTreeWidget() = 0;
295 virtual void resizeTerrainFragmentTreeWidget() = 0;
298 virtual void setTerrainPropertyTreeItemName(
const TerrainContentItemKey& key,
const std::string& name) = 0;
301 virtual void setTerrainPropertyTreeItemVisibility(
const TerrainContentItemKey& key,
bool visible) = 0;
304 virtual void setTerrainContentTreeItemName(
const TerrainContentItemKey& key,
const std::string& name) = 0;
307 virtual void setTerrainContentTreeItemVisibility(
const TerrainContentItemKey& key,
bool visible) = 0;
315 virtual void showTerrainPropertyTreeWidgetItems(
const std::vector<TerrainContentItemKey>& keys) = 0;
329 virtual void showCacheDialog(
const std::string& osgEarthTerrainDefinition) = 0;
341 virtual void showSaveFileConfirmationMessageBox(
const DtUnicode& fileName) = 0;
345 virtual bool showWarnReloadTerrainMessageBox(
bool& checked) = 0;
349 virtual bool showReloadTerrainAfterGenerateMaskMessageBox(
const std::string& terrainPatch) = 0;
355 virtual bool showChooseLayerTypeMessageBox(
const DtUnicode& url,
int& type) = 0;
360 virtual void showFileExtensionNotSupportedMessageBox(
const DtUnicode& fileName) = 0;
364 virtual void setGenerateBoundaryModels(
const std::vector<std::string>& models) = 0;
367 virtual void expandTerrainContentTreeWidget() = 0;
370 virtual void expandOsgEarthFragmentTreeWidget() = 0;
410 boost::signalslib::signal<void(const std::vector<TerrainContentItemKey>& keys)> signal_osgEarthFragmentCommitChangesButtonReleased;
452 boost::signalslib::signal<void(const std::string& definition, const std::string& name, bool geocentric, bool convexHull)>
signal_generateBoundary;
464 boost::signalslib::signal<void(std::vector<std::string>, QFlags<Qt::KeyboardModifier>)> signal_addData;
boost::signalslib::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:438
Definition: DtTerrainEditorInterface.h:85
boost::signalslib::signal< void()> signal_generateBoundaryButton_released
The signal emitted when user clicks on the generate boundary button.
Definition: DtTerrainEditorInterface.h:421
Definition: DtTerrainEditorInterface.h:77
Contains DLL export macros.
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
Definition: DtTerrainEditorInterface.h:78
boost::signalslib::signal< void(const TerrainContentItemKey &key, bool visible)> signal_visibleLayerVisiblityChanged
The signal emitted when the visibility of the layer has changed.
Definition: DtTerrainEditorInterface.h:474
Definition: DtTerrainEditorInterface.h:100
Definition: DtTerrainEditorInterface.h:84
Definition: DtTerrainEditorInterface.h:101
Definition: DtTerrainEditorInterface.h:89
Definition: DtTerrainEditorInterface.h:97
DtTerrainEditorProperties.
Definition: DtTerrainEditorProperties.h:25
boost::signalslib::signal< void(const TerrainContentItemKey &key, double opacity)> signal_visibleLayerOpacityChanged
The signal emitted when the opacity of the layer has changed.
Definition: DtTerrainEditorInterface.h:479
boost::signalslib::signal< void(const TerrainContentItemKey &key, int maxPagedLODs)> signal_terrainMaxPagedLODsChanged
Signal emitted when the maximum number of paged LODs for this terrain has changed.
Definition: DtTerrainEditorInterface.h:504
int myParentType
Gets the type of the key.
Definition: DtTerrainEditorInterface.h:203
Definition: DtTerrainEditorInterface.h:95
Definition: DtTerrainEditorInterface.h:72
boost::signalslib::signal< void(const TerrainContentItemKey &key, bool enabled)> signal_terrainPatchIsPageableStateChanged
Signal emitted when the Is Pageable status of a terrain patch has changed.
Definition: DtTerrainEditorInterface.h:513
Definition: DtTerrainEditorInterface.h:70
int myType
Gets the type of the key.
Definition: DtTerrainEditorInterface.h:201
boost::signalslib::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:445
Definition: DtTerrainEditorInterface.h:99
boost::signalslib::signal< void(const TerrainContentItemKey &key, const std::string &name)> signal_oceanLayerNameChanged
Signal emitted when the name of the ocean layer has changed.
Definition: DtTerrainEditorInterface.h:508
boost::signalslib::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:484
boost::signalslib::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:452
bool myUseName
Gets the type of the key.
Definition: DtTerrainEditorInterface.h:205
DtTerrainEditorInterface.
Definition: DtTerrainEditorInterface.h:59
Definition: DtTerrainEditorInterface.h:76
Definition: DtTerrainEditorInterface.h:73
Definition: DtTerrainEditorInterface.h:92
boost::signalslib::signal< void(const TerrainContentItemKey &key)> signal_terrainContentRevertChangesButtonReleased
The signal emitted when user hits the revert changes button.
Definition: DtTerrainEditorInterface.h:406
bool operator==(const DtMilStdKeyParams &a, const DtMilStdKeyParams &b)
Memberwise equality for DtMilStdKeyParams. Used by callers (e.g. DtMilStdIconVisualizer) to skip key ...
Definition: DtMilStdManagerInterface.h:58
Definition: DtTerrainEditorInterface.h:80
boost::signalslib::signal< void(const TerrainContentItemKey &key)> signal_terrainContentCommitChangesButtonReleased
The signal emitted when user hits the commit changes button.
Definition: DtTerrainEditorInterface.h:402
boost::signalslib::signal< void(const TerrainContentItemKey &key, const std::string &description)> signal_terrainDescriptionChanged
Signal emitted when the description of the terrain has changed.
Definition: DtTerrainEditorInterface.h:499
Definition: DtTerrainEditorInterface.h:81
boost::signalslib::signal< void(const TerrainContentItemKey &key, double pageOutDistance)> signal_terrainPatchPageOutDistanceChanged
Signal emitted when the page out distance of a terrain patch has changed.
Definition: DtTerrainEditorInterface.h:518
int myParentId
Gets the type of the key.
Definition: DtTerrainEditorInterface.h:204
Definition: DtTerrainEditorInterface.h:83
int myId
Gets the type of the key.
Definition: DtTerrainEditorInterface.h:202
TerrainContentItemType
Definition: DtTerrainEditorInterface.h:64
boost::signalslib::signal< void(const TerrainContentItemKey &key, double height)> signal_oceanLayerHeightChanged
Signal emitted when the height of the ocean layer has changed.
Definition: DtTerrainEditorInterface.h:523
boost::signalslib::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:414
boost::signalslib::signal< void()> signal_addOceanLayerButtonReleased
The signal emitted when user clicks on the add ocean layer button.
Definition: DtTerrainEditorInterface.h:431
Definition: DtTerrainEditorInterface.h:98
Definition: DtTerrainEditorInterface.h:103
boost::signalslib::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:489
boost::signalslib::signal< void(const TerrainContentItemKey &key, int lod)> signal_oceanLayerLodChanged
Signal emitted when the lod of the ocean layer has changed.
Definition: DtTerrainEditorInterface.h:528
Definition: DtTerrainEditorInterface.h:74
boost::signalslib::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:398
std::string myName
Gets the type of the key.
Definition: DtTerrainEditorInterface.h:206
Definition: DtTerrainEditorInterface.h:93
boost::signalslib::signal< void()> signal_saveOsgEarthTerrain
The signal emitted when receive the request to save the osgEarth terrain through the context menu...
Definition: DtTerrainEditorInterface.h:455
Definition: DtTerrainEditorInterface.h:102
Definition: DtTerrainEditorInterface.h:66
boost::signalslib::signal< void()> signal_generateCacheButtonReleased
The signal emitted when user clicks on the generate cache button.
Definition: DtTerrainEditorInterface.h:461
Definition: DtTerrainEditorInterface.h:90
TerrainContentItemKey.
Definition: DtTerrainEditorInterface.h:110
boost::signalslib::signal< void()> signal_saveTerrain
The signal emitted when receive the request to save the terrain(MTF terrain) through the context menu...
Definition: DtTerrainEditorInterface.h:458
Definition: DtTerrainEditorInterface.h:87
Definition: DtTerrainEditorInterface.h:71
boost::signalslib::signal< void(const TerrainContentItemKey &key)> signal_deleteTerrainContentTreeWidgetItem
The signal emitted when the user clicks save on the terrain content item.
Definition: DtTerrainEditorInterface.h:418
Definition: DtTerrainEditorInterface.h:82
Definition: DtTerrainEditorInterface.h:94
Definition: DtTerrainEditorInterface.h:91
Definition: DtTerrainEditorInterface.h:88
boost::signalslib::signal< void(const DtUnicode &fileName, bool toFrontEnd, bool toSimEngine)> signal_addFeatureLayerButtonReleased
The signal emitted when user clicks on the add feature layer button(MAK Terrain Toolkit feature layer...
Definition: DtTerrainEditorInterface.h:427
#define DT_DLL_VRVTERRAINEDITOR
Definition: vrvTerrainEditor.h:25
boost::signalslib::signal< void(const TerrainContentItemKey &key, bool enabled)> signal_osgEarthDebugModeStateChanged
Signal emitted when the osgEarth debug mode state has changed.
Definition: DtTerrainEditorInterface.h:494
boost::signalslib::signal< void(const TerrainContentItemKey &key)> signal_terrainContentTreeWidget_itemDoubleClicked
The signal emitted when double click on the terrain content item.
Definition: DtTerrainEditorInterface.h:394
Definition: DtTerrainEditorInterface.h:79
Definition: DtTerrainEditorInterface.h:68
Definition: DtTerrainEditorInterface.h:86
Definition: DtTerrainEditorInterface.h:75
boost::signalslib::signal< void(const TerrainContentItemKey &key)> signal_terrainPropertyTreeWidgetItem_currentItemChanged
boost signals
Definition: DtTerrainEditorInterface.h:390
Definition: DtTerrainEditorInterface.h:96
Definition: DtTerrainEditorInterface.h:67
Definition: DtTerrainEditorInterface.h:69