VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Private Member Functions | Friends

Widget for editing the terrain in the scene. More...

Inheritance diagram for makVrv::DtTerrainEditorWidget:
Inheritance graph
[legend]

Public Types

enum  TerrainContentItemDataRole {
  ItemDataType = Qt::UserRole, ItemDataId, ItemDataName, ItemDataParentType,
  ItemDataParentId, ItemDataDisplayName
}
 Item data stored in the terrain content item. More...
 
enum  OsgEarthFragmentItemDataRole { ItemDataUrl = Qt::UserRole }
 Item data stored in the osgEarth fragment item. More...
 
enum  TreeWidgetType { TerrainContent, TerrainFragment, TerrainProperty, UnknownTree }
 Different type of tree widget in the terrain editor. More...
 
typedef std::map
< TerrainContentItemKey,
QTreeWidgetItem * > 
TerrainContentTreeWidgetItemsMap
 A map of the terrain content items indexed by the terrain content item key. More...
 
typedef std::map
< TerrainContentItemKey,
DtTerrainEditorPropertyTreeWidgetItem * > 
TerrainPropertyTreeWidgetItemsMap
 A map of the terrain property items indexed by the terrain content item key. More...
 
typedef std::map
< TerrainContentItemKey,
DtTerrainEditorRuntimePropertyWidgetItem * > 
TerrainRuntimeTreeWidgetItemsMap
 A map of the terrain runtime items indexed by the terrain content item key. More...
 
typedef std::map< std::string,
QTreeWidgetItem * > 
OsgEarthFragmentContentItemsMap
 A map of the osgEarth fragment items indexed by the full url of the fragment file. More...
 
- Public Types inherited from makVrv::DtTerrainEditorInterface
enum  TerrainContentItemType {
  Terrain, ImageLayerGroup, ElevationLayerGroup, ModelLayerGroup,
  MaskLayerGroup, BuildingLayerGroup, LandCoverLayerGroup, GroundCoverLayerGroup,
  RoadSurfaceLayerGroup, SplatLayerGroup, TerrainPatchGroup, OceanLayerGroup,
  FeatureSourceGroup, FeatureLayerGroup, OsgEarthTerrainPatch, OpenFlightTerrainPatch,
  FeatureSource, FeatureLayer, OceanLayer, ImageLayer,
  ElevationLayer, ModelLayer, MaskLayer, BuildingLayer,
  LandCoverLayer, GroundCoverLayer, GroundCover, RoadSurfaceLayer,
  SplatLayer, TreeWidget, CompositeParentLayer, CompositeChildLayer,
  UnknownType
}
 

Public Member Functions

virtual ~DtTerrainEditorWidget ()
 DTOR. More...
 
virtual void initialize ()
 Intialize the widget, set up the gui and connect signals. More...
 
virtual bool isInitialized ()
 Return true if initialize is already called. More...
 
virtual void cleanup ()
 Clean ups the data and tree. More...
 
virtual void showCacheDialog (const std::string &osgEarthTerrainDefinition)
 Shows the osgEarth cache dialog. More...
 
virtual DtUnicode showSaveMtfFileDialog (const DtUnicode &directory)
 Shows the dialog about saving as mtf file(MAK Terrain Format). More...
 
virtual DtUnicode showSaveOsgEarthFileDialog (const DtUnicode &directory)
 Shows the dialog about saving as earth file. More...
 
virtual void showSaveFileConfirmationMessageBox (const DtUnicode &fileName)
 Shows the message box to confirm the saving of a file. More...
 
virtual bool showOverrideOsgEarthFileDialog ()
 Shows the dialog to warn the user of overriding an existing earth file. More...
 
virtual bool showWarnReloadTerrainMessageBox (bool &checked)
 Shows the dialog to warn the user of reloading the terrain. More...
 
virtual bool showReloadTerrainAfterGenerateMaskMessageBox (const std::string &terrainPatch)
 Shows the dialog to reload the terrain after generating a mask. More...
 
virtual bool showChooseLayerTypeMessageBox (const DtUnicode &url, int &type)
 Shows the message box that asks user to specify the type of the terrain layer when add new data to terrain. More...
 
virtual void showFileExtensionNotSupportedMessageBox (const DtUnicode &fileName)
 Shows the message box that the files user are trying to drag into the terrain editor is not supported. More...
 
virtual void setGenerateBoundaryModels (const std::vector< std::string > &models)
 Sets the list of models to generate boundary for. More...
 
virtual void setTerrainPropertyTreeItemName (const std::string &name)
 Sets the name entry to be displayed in the terrain property tree item. More...
 
virtual void setTerrainPropertyTreeItemVisiblity (bool visible)
 Sets the visible entry to be displayed in the terrain property tree item. More...
 
virtual void expandTerrainContentTreeWidget ()
 Expands all the items in terrain content tree widget. More...
 
virtual void expandOsgEarthFragmentTreeWidget ()
 Expands all the items in osgEarth fragment tree widget. More...
 
virtual void addTerrainContentTopLevelItem (const TerrainContentItemKey &key, const std::string &displayName)
 Adds a top level terrain content item(no parent) to the terrain content tree widget. More...
 
virtual void addTerrainContentItem (const TerrainContentItemKey &key, const TerrainContentItemKey &parentKey, const std::string &displayName, int index=-1, bool editable=false, bool checked=true)
 Adds a terrain content item to the terrain content tree widget. More...
 
virtual void addOsgEarthFragmentContentTopLevelItem (const std::string &key, const std::string &displayName)
 Adds a top level osgEarth fragment(no parent) item to the osgEarth fragment tree widget. More...
 
virtual void addOsgEarthFragmentContentItem (const std::string &key, const std::string &parentKey, const std::string &displayName)
 Adds an osgEarth fragment item to the osgEarth fragment tree widget. More...
 
virtual void clearTreeWidgets ()
 Cleans the contents of all tree widgets. More...
 
virtual void cleanOsgEarthFragmentTreeWidget ()
 Clean the contents of osgEarth fragment tree. More...
 
virtual void setSelectedOsgEarthFragmentKeys (const std::vector< TerrainContentItemKey > &keys)
 Sets all the TerrainContentItemKeys associated with the osgEarth fragment. More...
 
virtual void setStyleSheetForTopPanelButtons ()
 Sets the style sheet associated with the top panel buttons. More...
 
virtual void setFocusOnTerrainContentTreeWidgetItem (const TerrainContentItemKey &key, bool expanded=true)
 Sets focus on the terrain content tree widget item. More...
 
virtual void removeTerrainContentTreeWidgetItem (const TerrainContentItemKey &key)
 Removes the terrain content tree widget item. More...
 
virtual bool hasTerrainContentTreeWidgetItem (const TerrainContentItemKey &key)
 Check if the terrain content tree widget has the item specifiged with the key. More...
 
virtual bool hasTerrainPropertyTreeWidgetItem (const TerrainContentItemKey &key)
 Check if the terrain property tree widget has the item specifiged with the key. More...
 
virtual void resizeTerrainPropertyTreeWidget ()
 Resize the terrain property tree widget content. More...
 
virtual void resizeTerrainRuntimeTreeWidget ()
 Resize the terrain runtime tree widget content. More...
 
virtual void resizeTerrainFragmentTreeWidget ()
 Resize the terrain fragment tree widget content. More...
 
virtual void moveTerrainContentTreeWidgetItem (TerrainContentItemKey key, bool up)
 Moves the terrain content tree widget item up/down. More...
 
virtual void setGenerateCacheButtonEnabled (bool enabled)
 Enables/Disables the generate cache button. More...
 
virtual void setGenerateBoundaryButtonEnabled (bool enabled)
 Enables/Disables the generate boundary button. More...
 
virtual void setSaveTerrainButtonEnabled (bool enabled)
 Enables/Disables the save terrain button. More...
 
virtual void setCommitChangeButtonEnabled (bool enabled)
 Enables/Disables the save terrain button. More...
 
virtual void setRevertChangeButtonEnabled (bool enabled)
 Enables/Disables the revert change button. More...
 
virtual void enableOsgEarthFragmentTabWidget (bool enabled)
 Enables/Disables the osgEarth fragment tab widget. More...
 
virtual void enableTerrainRuntimeTabWidget (bool enabled)
 Enables/Disables the terrain runtime tab widget. More...
 
virtual void showTerrainPropertyTreeWidgetItem (const TerrainContentItemKey &key)
 Shows the terrain property tree item associated with the terrain content item. More...
 
virtual void showTerrainPropertyTreeWidgetItems (const std::vector< TerrainContentItemKey > &key)
 Shows the terrain property tree items associated with a list of terrain content items. More...
 
virtual void showTerrainRuntimeTreeWidgetItem (const TerrainContentItemKey &key)
 Shows the terrain runtime tree item associated with the terrain content item. More...
 
int getIndexOfTerrainContentItem (const TerrainContentItemKey &key)
 Gets the index of the terrain content item. More...
 
virtual void setOsgEarthTerrainProperty (const TerrainContentItemKey &key, const osgEarth::MapOptions &mapOptions, const osgEarth::MapNodeOptions &mapNodeOptions, const osgEarth::TerrainOptions &terrainOptions)
 Sets the osgEarth terrain property. More...
 
virtual void getOsgEarthTerrainProperty (const TerrainContentItemKey &key, osgEarth::MapOptions &mapOptions, osgEarth::MapNodeOptions &mapNodeOptions, osgEarth::TerrainOptions &terrainOptions)
 Gets the osgEarth terrain property. More...
 
virtual void setTerrainPatchProperty (const TerrainContentItemKey &key, const makArchives::DtModelDefinitionRecord &rec)
 Sets the terrain patch property. More...
 
virtual void getTerrainPatchProperty (const TerrainContentItemKey &key, makArchives::DtModelDefinitionRecord &rec)
 Gets the terrain patch property. More...
 
virtual void setFeatureLayerProperty (const TerrainContentItemKey &key, const makArchives::DtFeatureLayerRecord &rec)
 Sets the feature layer property. More...
 
virtual void getFeatureLayerProperty (const TerrainContentItemKey &key, makArchives::DtFeatureLayerRecord &rec)
 Gets the feature layer property. More...
 
virtual void setOceanLayerProperty (const TerrainContentItemKey &key, const makArchives::DtOceanLayerRecord &ref)
 Sets the ocean layer property. More...
 
virtual void getOceanLayerProperty (const TerrainContentItemKey &key, makArchives::DtOceanLayerRecord &rec)
 Gets the ocean layer property. More...
 
void setImageLayerProperty (const TerrainContentItemKey &key, const osgEarth::ImageLayerOptions &options)
 Sets the image layer property. More...
 
virtual void getImageLayerProperty (const TerrainContentItemKey &key, osgEarth::ImageLayerOptions &options)
 Gets the image layer property. More...
 
void setElevationLayerProperty (const TerrainContentItemKey &key, const osgEarth::ElevationLayerOptions &options)
 Sets the elevation layer property. More...
 
virtual void getElevationLayerProperty (const TerrainContentItemKey &key, osgEarth::ElevationLayerOptions &options)
 Gets the elevation layer property. More...
 
void setModelLayerProperty (const TerrainContentItemKey &key, const osgEarth::ModelLayerOptions &options)
 Sets the model layer property. More...
 
virtual void getModelLayerProperty (const TerrainContentItemKey &key, osgEarth::ModelLayerOptions &options)
 Gets the model layer property. More...
 
void setMaskLayerProperty (const TerrainContentItemKey &key, const osgEarth::MaskLayerOptions &options)
 Sets the mask layer property. More...
 
virtual void setBuildingLayerProperty (const TerrainContentItemKey &key, const osgEarth::Buildings::BuildingLayerOptions &options)
 Sets the building layer property. More...
 
virtual void setLandCoverLayerProperty (const TerrainContentItemKey &key, const osgEarth::LandCoverLayerOptions &options)
 Sets the land cover layer property. More...
 
virtual void setGroundCoverLayerProperty (const TerrainContentItemKey &key, const osgEarth::Splat::GroundCoverLayerOptions &options)
 Sets the ground cover layer property. More...
 
virtual void setGroundCoverProperty (const TerrainContentItemKey &key, const osgEarth::Splat::GroundCoverOptions &options)
 Sets the ground cover property. More...
 
virtual void setRoadSurfaceLayerProperty (const TerrainContentItemKey &key, const osgEarth::Splat::RoadSurfaceLayerOptions &options)
 Sets the road surface layer property. More...
 
virtual void setSplatLayerProperty (const TerrainContentItemKey &key, const osgEarth::Splat::SplatLayerOptions &options)
 Sets the splat layer property. More...
 
virtual void setOceanLayerHeight (const TerrainContentItemKey &key, double height)
 Sets the height of the ocean layer. More...
 
virtual void setOceanLayerLod (const TerrainContentItemKey &key, int lod)
 Sets the lod of the ocean layer. More...
 
virtual void setLayerVisiblity (const TerrainContentItemKey &key, bool visible)
 Sets the visibility of the osgEarth::Layer. More...
 
virtual void setLayerOpacity (const TerrainContentItemKey &key, double opacity)
 Sets the opacity of the osgEarth::Layer. More...
 
virtual void setLayerMinVisibleRange (const TerrainContentItemKey &key, double range)
 Sets the minimum visible range of the osgEarth::VisibleLayer. More...
 
virtual void setLayerMaxVisibleRange (const TerrainContentItemKey &key, double range)
 Sets the maximum visible range of the osgEarth::VisibleLayer. More...
 
virtual void setGroundCoverWind (const TerrainContentItemKey &key, double wind)
 Sets the wind factor of ground cover. More...
 
virtual void setGroundCoverFill (const TerrainContentItemKey &key, double fill)
 Sets the fill of the groundCover in the gui. More...
 
virtual void setGroundCoverMaxDistance (const TerrainContentItemKey &key, double maxDistance)
 Sets the maxDistance of the groundCover in the gui. More...
 

Protected Slots

virtual void on_terrainContentTreeWidget_currentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous)
 The slot when the current item of the terrain content tree has changed. More...
 
virtual void on_terrainContentTreeWidget_itemPressed (QTreeWidgetItem *item, int column)
 The slot when press the item of the terrain content tree. More...
 
virtual void on_terrainContentTreeWidget_itemDoubleClicked (QTreeWidgetItem *item, int column)
 Slot when double clicks on the terrain content tree item. More...
 
virtual void on_terrainContentTreeWidget_itemChanged (QTreeWidgetItem *item, int column)
 Slot when the attributes of the terrain content item has been changed. More...
 
virtual void on_osgEarthFragmentTreeWidget_currentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous)
 Slot when the current item of the osgEarth fragment tree has changed. More...
 
virtual void on_terrainPropertyTreeWidget_currentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous)
 Slot when the current item of the terrain property tree has changed. More...
 
virtual void on_terrainPropertyTreeWidget_itemPressed (QTreeWidgetItem *, int column)
 Slot when press the item of the terrain property tree. More...
 
virtual void on_terrainContentTabWidget_currentChanged (int index)
 Slot when the current activated widget in terrain content tab has changed. More...
 
virtual void on_terrainRuntimeOptionsTabWidget_currentChanged (int index)
 Slot when the current activated widget in terrain runtime tab has changed. More...
 
virtual void on_terrainContentTreeMenu_triggered (QAction *action)
 Slot when the action of the terrain content tree menu is triggered. More...
 
virtual void on_terrainPropertyTreeMenu_triggered (QAction *action)
 Slot when the action of the terrain property tree menu is triggered. More...
 
virtual void on_terrainContentTree_checkBox_stateChanged (const QTreeWidgetItem *, int checked)
 Slot when the check box of the terrain content tree is checked/unchecked. More...
 
virtual void on_addTerrainPatchButton_released ()
 Slot when the add terrain patch button is released. More...
 
virtual void on_addImageLayerButton_released ()
 Slot when the add image layer button is released. More...
 
virtual void on_addElevationLayerButton_released ()
 Slot when the add elevation layer button is released. More...
 
virtual void on_addFeatureButton_released ()
 Slot when the add feature button is released. More...
 
virtual void on_addFeatureLayerButton_released ()
 Slot when the add feature layer button is released. More...
 
virtual void on_addOceanLayerButton_released ()
 Slot when the add ocean layer button is released. More...
 
virtual void on_commitChangesButton_released ()
 Slot when commit changes button is released. More...
 
virtual void on_revertChangesButton_released ()
 Slot when revert changes button is released. More...
 
virtual void on_saveTerrainButton_released ()
 Slot when save terrain button is released. More...
 
virtual void on_generateCacheButton_released ()
 Slot when generate cache button is released. More...
 
virtual void on_generateBoundaryButton_released ()
 Slot when generate boundary button is released. More...
 
virtual void slot_visibleLayerVisibilityChanged (bool visible)
 Slot when the visibility of the layer has changed. More...
 
virtual void slot_visibleLayerOpacityChanged (double opacity)
 Slot when the opacity of the layer has changed. More...
 
virtual void slot_visibleLayerMinVisibleRangeChanged (double minRange)
 Slot when the minimal visible range of the layer has changed. More...
 
virtual void slot_visibleLayerMaxVisibleRangeChanged (double maxRange)
 Slot when the maximum visible range of the layer has changed. More...
 
virtual void slot_modelLayerLightingChanged (bool lighting)
 Slot when the lighting condition of the model layer has been changed. More...
 
virtual void slot_oceanLayerHeightChanged (double height)
 Slot when the height of the ocean layer has changed. More...
 
virtual void slot_oceanLayerLodChanged (int lod)
 Slot when the lod of the ocean layer has changed. More...
 
virtual void slot_groundCoverWindChanged (double wind)
 Slot when wind of the ground cover changed. More...
 
virtual void slot_groundCoverFillChanged (double fill)
 Slot when fill of the ground cover changed. More...
 
virtual void slot_groundCoverMaxDistanceChanged (double maxDistance)
 Slot when maxDistance of the ground cover changed. More...
 
virtual void contextMenuEvent (QContextMenuEvent *e)
 Context menu event override. More...
 
virtual void dragEnterEvent (QDragEnterEvent *e)
 Drag enter event override. Used to drap and drop data. More...
 
virtual void dropEvent (QDropEvent *e)
 Drop event override. Used to drap and drop data. More...
 

Protected Member Functions

 DtTerrainEditorWidget (DtDe &de, QWidget *parent)
 CTOR. Use DtOsgEarthProfileDialogCreator to create an instance of this class. More...
 
void setupGui ()
 Setups the GUI. More...
 
virtual void connectSignals ()
 Connects the signals. More...
 
virtual void connectRuntimeWidgetSignals (const TerrainContentItemKey &key)
 Connects the signals for the DtTerrainEditorRuntimePropertyWidgetItem with the given key. More...
 
virtual void addTerrainPropertyTreeWidgetItem (const TerrainContentItemKey &key, DtTerrainEditorPropertyTreeWidgetItem *item)
 Adds a terrain property item to the terrain property tree widget with the associated terrain content item key. More...
 
virtual void addTerrainRuntimeTreeWidgetItem (const TerrainContentItemKey &key, DtTerrainEditorRuntimePropertyWidgetItem *item)
 Adds a terrain runtime item to the terrain runtime tree widget with the associated terrain content item key. More...
 
virtual QTreeWidgetItemgetTerrainContentItem (const TerrainContentItemKey &key)
 Gets the terrain content item with the given key. More...
 
virtual void setTerrainContentItemAttributes (QTreeWidgetItem *item, const TerrainContentItemKey &key, const std::string &displayName, bool checked=true)
 Sets the attributes of a terrain content item. More...
 
virtual void removeTerrainContentTreeWidgetItem (QTreeWidgetItem *item)
 Removes a terrain content tree widget item from the tree. More...
 
virtual void removeTerrainContentTreeWidgetItemFromMap (QTreeWidgetItem *item)
 Removes a terrain content tree widget item from the TerrainContentTreeWidgetItemsMap. More...
 
virtual void setItemExpandedOrCollapsed (QTreeWidget *tree, QTreeWidgetItem *item, bool expanded)
 Expand or collapse a tree item. More...
 
virtual void setItemCheckedOrUnchecked (QTreeWidget *tree, QTreeWidgetItem *item, bool checkedOrUnchecked)
 Set the checkbox state of a tree item and its children. More...
 
int getTerrainContentItemType (QTreeWidgetItem *item)
 
int getTerrainContentItemId (QTreeWidgetItem *item)
 
std::string getTerrainContentItemName (QTreeWidgetItem *item)
 
std::string getTerrainContentItemDisplayName (QTreeWidgetItem *item)
 
int getTerrainContentItemParentType (QTreeWidgetItem *item)
 
int getTerrainContentItemParentId (QTreeWidgetItem *item)
 
TerrainContentItemKey getTerrainContentItemKey (QTreeWidgetItem *item)
 
virtual
DtTerrainEditorPropertyTreeWidgetItem
getTerrainEditorPropertyTreeWidgetItem (const TerrainContentItemKey &key)
 
virtual
DtTerrainEditorPropertyTreeWidgetItem
createTerrainEditorPropertyTreeWidgetItem (const TerrainContentItemKey &key)
 
virtual std::string getTerrainEditorPropertyTreeWidgetItemCreatorName (TerrainContentItemType type)
 
virtual
DtTerrainEditorRuntimePropertyWidgetItem
getTerrainEditorRuntimePropertyWidgetItem (const TerrainContentItemKey &key)
 
virtual
DtTerrainEditorRuntimePropertyWidgetItem
createTerrainEditorRuntimePropertyWidgetItem (const TerrainContentItemKey &key)
 
std::string getOsgEarthFragmentItemKey (QTreeWidgetItem *item)
 Gets the key of the osgEarth fragment item. More...
 
bool hasTerrainContentItem (const TerrainContentItemKey &key)
 Check if the terrain content item with the given key exists. More...
 
virtual void populateTerrainContentTreeContextMenu (QContextMenuEvent *e)
 Populates the context menu of the terrain content tree. More...
 
virtual void populateTerrainFragmentTreeContextMenu (QContextMenuEvent *e)
 Populates the context menu of the terrain content tree. More...
 
virtual void populateTerrainPropertyTreeContextMenu (QContextMenuEvent *e)
 Populates the context menu of the terrain property tree. More...
 
virtual void renameTerrainContentTreeWidgetItem ()
 Rename the current selected terrain content item. More...
 
virtual void moveUpTerrainContentTreeWidgetItem ()
 Moves up the current selected terrain content item. More...
 
virtual void moveDownTerrainContentTreeWidgetItem ()
 Moves down the current selected terrain content item. More...
 
virtual void saveTerrainContentTreeWidgetItem ()
 Saves the current selected terrain content item. More...
 
virtual void deleteTerrainContentTreeWidgetItem ()
 Deletes the current selected terrain content item. More...
 
virtual void hideAllTerrainContentTreeTopLevelItems ()
 Hides all the top level items in the terrain content tree. More...
 
virtual void hideAllTerrainPropertyTreeTopLevelItems ()
 Hides all the top level items in the terrain property tree. More...
 
virtual void showTerrainPropertyTreeTopLevelItem (DtTerrainEditorPropertyTreeWidgetItem *item)
 Displayes the specified top level item, hide all other top level items in the terrain property tree. More...
 
virtual void showTerrainPropertyTreeTopLevelItems (const std::vector< DtTerrainEditorPropertyTreeWidgetItem * > &items)
 Displayes the specified top level items, hide all other top level items in the terrain property tree. More...
 
virtual void showTerrainRuntimeTreeTopLevelItem (DtTerrainEditorRuntimePropertyWidgetItem *item)
 Displayes the specified top level item, hide all other top level items in the property tree. More...
 
virtual bool isTerrainContentTabEnabled ()
 check if the terrain content tab is enabled or not. More...
 
virtual bool isTerrainPropertyTabEnabled ()
 check if the terrain property tab is enabled or not. More...
 
virtual bool checkIfNameDuplicate (QTreeWidgetItem *item, const std::string &name)
 Checks if the name is duplicate for all the items that has the same parent as item. More...
 
virtual void slot_osgEarthTerrainLayerRequestAdded (int type, const std::string &name, const std::string &driver, const DtUnicode &url)
 Slot when a terrain layer has been added through the gui. More...
 
virtual void slot_osgEarthModelLayerDataRequestAdded (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 &definition, const std::string &name, bool, bool)
 Slot when receive the request to generate boundary for a given terrain patch. More...
 

Protected Attributes

DtDemyDe
 
bool myIsInitialized
 
DtSignalConnectionManager mySignals
 
DtOsgEarthAddTerrainLayerWidgetmyOsgEarthAddTerrainLayerWidget
 
DtOsgEarthAddModelLayerWidget * myOsgEarthAddModelLayerWidget
 
DtOsgEarthCacheDialogmyOsgEarthCacheDialog
 
DtOsgEarthGenerateBoundaryWidget * myOsgEarthGenerateBoundaryWidget
 
QVBoxLayout * myMainLayout
 
QTabWidgetmyTopLevelTabWidget
 
QWidget * myAddDataWidget
 
QGridLayout * myAddDataButtonsLayout
 
QToolButtonmyAddTerrainPatchButton
 
QToolButtonmyAddServerConnectionButton
 
QToolButtonmyAddImageLayerButton
 
QToolButtonmyAddElevationLayerButton
 
QToolButtonmyAddFeatureButton
 
QToolButtonmyAddFeatureLayerButton
 
QToolButtonmyAddOceanLayerButton
 
QWidget * myCacheWidget
 
QHBoxLayout * myCacheButtonsLayout
 
QToolButtonmyGenerateCacheButton
 
QToolButtonmyGenerateBoundaryButton
 
QWidget * mySaveWidget
 
QHBoxLayout * mySaveButtonsLayout
 
QToolButtonmySaveOsgEarthTerrainButton
 
QToolButtonmySaveTerrainButton
 
QTabWidgetmyTerrainRuntimeOptionsTabWidget
 
QHBoxLayout * myBottomButtonsLayout
 
QPushButtonmyCommitChangesButton
 
QPushButtonmyRevertChangesButton
 
QTabWidgetmyTerrainContentTabWidget
 
QTreeWidgetmyTerrainContentTreeWidget
 
QTreeWidgetmyOsgEarthFragmentTreeWidget
 
QTreeWidgetmyTerrainPropertyTreeWidget
 
QTreeWidgetmyTerrainRuntimeTreeWidget
 
TerrainContentItemKey mySelectedTerrainContentItemKey
 
TerrainContentTreeWidgetItemsMap myTerrainContentTreeWidgetItemsMap
 
TreeWidgetType mySelectedTreeWidget
 
DtOsgEarthPropertyItemKey mySelectedDtOsgEarthPropertyItemKey
 
std::vector
< TerrainContentItemKey
mySelectedOsgEarthFragmentKeys
 
OsgEarthFragmentContentItemsMap myOsgEarthFragmentContentItemsMap
 
TerrainPropertyTreeWidgetItemsMap myTerrainPropertyTreeWidgetItemsMap
 
TerrainRuntimeTreeWidgetItemsMap myTerrainRuntimeTreeWidgetItemsMap
 
QMenumyTerrainContentTreeMenu
 
QMenumyTerrainPropertyTreeMenu
 

Private Member Functions

 DtTerrainEditorWidget ()
 Private default constructor not implimented. More...
 
 DtTerrainEditorWidget (const DtTerrainEditorWidget &)
 Copy Constructor not implemented – Copy not allowed. More...
 
DtTerrainEditorWidgetoperator= (const DtTerrainEditorWidget &)
 Assignment Operator not implemented – Copy not allowed. More...
 

Friends

class DtTerrainEditorWidgetCreator
 

Additional Inherited Members

- Public Attributes inherited from makVrv::DtTerrainEditorInterface
boost::signal< void(const
TerrainContentItemKey &key)> 
signal_terrainPropertyTreeWidgetItem_currentItemChanged
 boost signals More...
 
boost::signal< void(const
TerrainContentItemKey &key)> 
signal_terrainRuntimeTreeWidgetItem_currentItemChanged
 The signal emitted when the current item of the terrain runtime property tree has changed. More...
 
boost::signal< void(const
TerrainContentItemKey &key)> 
signal_terrainContentTreeWidget_itemDoubleClicked
 The signal emitted when double click on the terrain content item. More...
 
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. More...
 
boost::signal< void(const
std::string &key)> 
signal_osgEarthFragmentTreeWidget_currentItemChanged
 The signal emitted when the current item of the osgEarth fragment tree has changed. More...
 
boost::signal< void(const
TerrainContentItemKey &key)> 
signal_terrainContentCommitChangesButtonReleased
 The signal emitted when user hits the commit changes button. More...
 
boost::signal< void(const
TerrainContentItemKey &key)> 
signal_terrainContentRevertChangesButtonReleased
 The signal emitted when user hits the revert changes button. More...
 
boost::signal< void(const
std::vector
< TerrainContentItemKey >
&keys)> 
signal_osgEarthFragmentCommitChangesButtonReleased
 The signal emitted when user hits the commit button when the osgEarth fragment Tab is enabled. More...
 
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. More...
 
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. More...
 
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 appliable). More...
 
boost::signal< void(const
TerrainContentItemKey &key)> 
signal_deleteTerrainContentTreeWidgetItem
 The signal emitted when the user clicks save on the terrain content item. More...
 
boost::signal< void()> signal_generateBoundaryButton_released
 The signal emitted when user clicks on the generate boundary button. More...
 
boost::signal< void(const
DtUnicode &fileName)> 
signal_addTerrainPatchButtonReleased
 The signal emitted when user clicks on the add terrain patch button. More...
 
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). More...
 
boost::signal< void()> signal_addOceanLayerButtonReleased
 The signal emitted when user clicks on the add ocean layer button. More...
 
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. More...
 
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. More...
 
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. More...
 
boost::signal< void()> signal_saveOsgEarthTerrain
 The signal emitted when receive the request to save the osgEarth terrain through the context menu. More...
 
boost::signal< void()> signal_saveTerrain
 The signal emitted when receive the request to save the terrain(MTF terrain) through the context menu. More...
 
boost::signal< void(const
TerrainContentItemKey &key,
bool visible)> 
signal_visibleLayerVisiblityChanged
 The signal emitted when the visibility of the layer has changed. More...
 
boost::signal< void(const
TerrainContentItemKey &key,
double opacity)> 
signal_visibleLayerOpacityChanged
 The signal emitted when the opacity of the layer has changed. More...
 
boost::signal< void(const
TerrainContentItemKey &key,
double minRange)> 
signal_visibleLayerMinVisibleRangeChanged
 The signal emitted when the minimal visible range of the layer has changed. More...
 
boost::signal< void(const
TerrainContentItemKey &key,
double maxRange)> 
signal_visibleLayerMaxVisibleRangeChanged
 The signal emitted when the maximum visible range of the layer has changed. More...
 
boost::signal< void(const
TerrainContentItemKey &key,
bool lighting)> 
signal_modelLayerLightingChanged
 The signal emitted when the lighting condition of the model layer has been changed. More...
 
boost::signal< void(const
TerrainContentItemKey &key,
double height)> 
signal_oceanLayerHeightChanged
 Signal emmitted when the height of the ocean layer has changed. More...
 
boost::signal< void(const
TerrainContentItemKey &key,
int lod)> 
signal_oceanLayerLodChanged
 Signal emmitted when the lod of the ocean layer has changed. More...
 
boost::signal< void(const
TerrainContentItemKey &key,
double wind)> 
signal_groundCoverWindChanged
 The signal emitted when wind of the ground cover changed. More...
 
boost::signal< void(const
TerrainContentItemKey &key,
double fill)> 
signal_groundCoverFillChanged
 The signal emitted when fill of the ground cover changed. More...
 
boost::signal< void(const
TerrainContentItemKey &key,
double maxDistance)> 
signal_groundCoverMaxDistanceChanged
 The signal emitted when maxDistance of the ground cover changed. More...
 
boost::signal< void(const
TerrainContentItemKey &key,
double brightness)> 
signal_groundCoverBrightnessChanged
 The signal emitted when brightness of the ground cover changed. More...
 
boost::signal< void(const
TerrainContentItemKey &key,
double contrast)> 
signal_groundCoverContrastChanged
 The signal emitted when contrast of the ground cover changed. More...
 
boost::signal< void()> signal_generateCacheButtonReleased
 The signal emitted when user clicks on the generate cache button. More...
 
boost::signal< void(std::vector
< std::string >)> 
signal_addData
 The signal emitted when user drag and drop data into the terrain editor. More...
 

Detailed Description

Widget for editing the terrain in the scene.

It supports adding/modifying image layer/elevation layer/model layer/terrain patch(OpenFlight etc)/ocean layer. It also has tools for generating cache data, generating boundary for a model, etc. It can save out the terrain as mtf file(MAK TERRAIN FORMAT).

See Also
makVrv::DtTerrainEditorInterface

Member Typedef Documentation

A map of the terrain content items indexed by the terrain content item key.

A map of the terrain property items indexed by the terrain content item key.

Each terrain content item corresponds to a terrain property item.

A map of the terrain runtime items indexed by the terrain content item key.

Each terrain content item corresponds to a terrain runtime item.

A map of the osgEarth fragment items indexed by the full url of the fragment file.

Member Enumeration Documentation

Item data stored in the terrain content item.

Enumerator
ItemDataType 
ItemDataId 
ItemDataName 
ItemDataParentType 
ItemDataParentId 
ItemDataDisplayName 

Item data stored in the osgEarth fragment item.

Enumerator
ItemDataUrl 

Different type of tree widget in the terrain editor.

Enumerator
TerrainContent 
TerrainFragment 
TerrainProperty 
UnknownTree 

Constructor & Destructor Documentation

virtual makVrv::DtTerrainEditorWidget::~DtTerrainEditorWidget ( )
virtual

DTOR.

makVrv::DtTerrainEditorWidget::DtTerrainEditorWidget ( DtDe de,
QWidget *  parent 
)
protected

CTOR. Use DtOsgEarthProfileDialogCreator to create an instance of this class.

makVrv::DtTerrainEditorWidget::DtTerrainEditorWidget ( )
private

Private default constructor not implimented.

makVrv::DtTerrainEditorWidget::DtTerrainEditorWidget ( const DtTerrainEditorWidget )
private

Copy Constructor not implemented – Copy not allowed.

Member Function Documentation

virtual void makVrv::DtTerrainEditorWidget::initialize ( )
virtual

Intialize the widget, set up the gui and connect signals.

virtual bool makVrv::DtTerrainEditorWidget::isInitialized ( )
virtual

Return true if initialize is already called.

virtual void makVrv::DtTerrainEditorWidget::cleanup ( )
virtual

Clean ups the data and tree.

virtual void makVrv::DtTerrainEditorWidget::addTerrainContentTopLevelItem ( const TerrainContentItemKey key,
const std::string &  displayName 
)
virtual

Adds a top level terrain content item(no parent) to the terrain content tree widget.

Parameters
keyThe unique key of the terrain content item.
displayNameThe name to be displayed in the tree.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::addTerrainContentItem ( const TerrainContentItemKey key,
const TerrainContentItemKey parentKey,
const std::string &  displayName,
int  index = -1,
bool  editable = false,
bool  checked = true 
)
virtual

Adds a terrain content item to the terrain content tree widget.

Parameters
keyThe unique key of the terrain content item.
displayNameThe name to be displayed in the tree.
indexThe sequence of the item under the parent item, default is -1 means inserts at last position.
editableWhether this item is editable.
checkedWhether check the checkbox that associated with this item.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::addOsgEarthFragmentContentTopLevelItem ( const std::string &  key,
const std::string &  displayName 
)
virtual

Adds a top level osgEarth fragment(no parent) item to the osgEarth fragment tree widget.

Parameters
keyThe unique key of the osgEarth fragment item, usually the full url of the external reference.
displayNameThe name to be displayed in the tree.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::addOsgEarthFragmentContentItem ( const std::string &  key,
const std::string &  parentKey,
const std::string &  displayName 
)
virtual

Adds an osgEarth fragment item to the osgEarth fragment tree widget.

Parameters
keyThe unique key of the osgEarth fragment item, usually the full url of the external reference.
parentKeyThe unique key of the osgEarth parent fragment item, usually the full url of the external reference.
displayNameThe name to be displayed in the tree.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::clearTreeWidgets ( )
virtual

Cleans the contents of all tree widgets.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::cleanOsgEarthFragmentTreeWidget ( )
virtual

Clean the contents of osgEarth fragment tree.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setSelectedOsgEarthFragmentKeys ( const std::vector< TerrainContentItemKey > &  keys)
virtual

Sets all the TerrainContentItemKeys associated with the osgEarth fragment.

An osgEarth fragment(external reference file) earth file may have several terrain contents(models,images,etc).

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setStyleSheetForTopPanelButtons ( )
virtual

Sets the style sheet associated with the top panel buttons.

Will be called in setupGui. can override this function to change the style of the buttons.

virtual void makVrv::DtTerrainEditorWidget::setFocusOnTerrainContentTreeWidgetItem ( const TerrainContentItemKey key,
bool  expanded = true 
)
virtual

Sets focus on the terrain content tree widget item.

Parameters
keyThe key of the terrain content tree widget item.
expandedWhether expands the tree widget item.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::removeTerrainContentTreeWidgetItem ( const TerrainContentItemKey key)
virtual

Removes the terrain content tree widget item.

Parameters
keyThe key of the terrain content tree widget item.

Implements makVrv::DtTerrainEditorInterface.

virtual bool makVrv::DtTerrainEditorWidget::hasTerrainContentTreeWidgetItem ( const TerrainContentItemKey key)
virtual

Check if the terrain content tree widget has the item specifiged with the key.

Parameters
keyThe key of the terrain content tree widget item.

Implements makVrv::DtTerrainEditorInterface.

virtual bool makVrv::DtTerrainEditorWidget::hasTerrainPropertyTreeWidgetItem ( const TerrainContentItemKey key)
virtual

Check if the terrain property tree widget has the item specifiged with the key.

Parameters
keyThe key of the terrain property tree widget item.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::resizeTerrainPropertyTreeWidget ( )
virtual

Resize the terrain property tree widget content.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::resizeTerrainRuntimeTreeWidget ( )
virtual

Resize the terrain runtime tree widget content.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::resizeTerrainFragmentTreeWidget ( )
virtual

Resize the terrain fragment tree widget content.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::moveTerrainContentTreeWidgetItem ( TerrainContentItemKey  key,
bool  up 
)
virtual

Moves the terrain content tree widget item up/down.

Parameters
keyThe key of the terrain content tree widget item.
upMoves the item up or down.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setGenerateCacheButtonEnabled ( bool  enabled)
virtual

Enables/Disables the generate cache button.

Parameters
enabledSets to true to enable, otherwise disable.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setGenerateBoundaryButtonEnabled ( bool  enabled)
virtual

Enables/Disables the generate boundary button.

Parameters
enabledSets to true to enable, otherwise disable.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setSaveTerrainButtonEnabled ( bool  enabled)
virtual

Enables/Disables the save terrain button.

Parameters
enabledSets to true to enable, otherwise disable.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setCommitChangeButtonEnabled ( bool  enabled)
virtual

Enables/Disables the save terrain button.

Parameters
enabledSets to true to enable, otherwise disable.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setRevertChangeButtonEnabled ( bool  enabled)
virtual

Enables/Disables the revert change button.

Parameters
enabledSets to true to enable, otherwise disable.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::enableOsgEarthFragmentTabWidget ( bool  enabled)
virtual

Enables/Disables the osgEarth fragment tab widget.

Parameters
enabledSets to true to enable, otherwise disable.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::enableTerrainRuntimeTabWidget ( bool  enabled)
virtual

Enables/Disables the terrain runtime tab widget.

Parameters
enabledSets to true to enable, otherwise disable.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::showTerrainPropertyTreeWidgetItem ( const TerrainContentItemKey key)
virtual

Shows the terrain property tree item associated with the terrain content item.

Parameters
keyThe key of the terrain content item.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::showTerrainPropertyTreeWidgetItems ( const std::vector< TerrainContentItemKey > &  key)
virtual

Shows the terrain property tree items associated with a list of terrain content items.

Parameters
keysA list of the keys of the terrain content items.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::showTerrainRuntimeTreeWidgetItem ( const TerrainContentItemKey key)
virtual

Shows the terrain runtime tree item associated with the terrain content item.

Parameters
keyThe key of the terrain content item.

Implements makVrv::DtTerrainEditorInterface.

int makVrv::DtTerrainEditorWidget::getIndexOfTerrainContentItem ( const TerrainContentItemKey key)
virtual

Gets the index of the terrain content item.

Parameters
keyThe key of the terrain content item. The index of the terrain content item under it's parent. Return -1 if the item not found.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setOsgEarthTerrainProperty ( const TerrainContentItemKey key,
const osgEarth::MapOptions &  mapOptions,
const osgEarth::MapNodeOptions &  mapNodeOptions,
const osgEarth::TerrainOptions &  terrainOptions 
)
virtual

Sets the osgEarth terrain property.

Parameters
keyThe key of the osgEarth terrain.
mapOptionsThe map options of the osgEarth terrain.
mapNodeOptionsThe map node options of the osgEarth terrain.
terrainOptionsThe terrain options of the osgEarth terrain.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::getOsgEarthTerrainProperty ( const TerrainContentItemKey key,
osgEarth::MapOptions &  mapOptions,
osgEarth::MapNodeOptions &  mapNodeOptions,
osgEarth::TerrainOptions &  terrainOptions 
)
virtual

Gets the osgEarth terrain property.

Parameters
keyThe key of the osgEarth terrain.
mapOptionsThe map options of the osgEarth terrain.
mapNodeOptionsThe map node options of the osgEarth terrain.
terrainOptionsThe terrain options of the osgEarth terrain.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setTerrainPatchProperty ( const TerrainContentItemKey key,
const makArchives::DtModelDefinitionRecord rec 
)
virtual

Sets the terrain patch property.

Parameters
keyThe key of the terrain patch.
recThe model definition record of the terrain patch.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::getTerrainPatchProperty ( const TerrainContentItemKey key,
makArchives::DtModelDefinitionRecord rec 
)
virtual

Gets the terrain patch property.

Parameters
keyThe key of the terrain patch.
recThe model definition record of the terrain patch.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setFeatureLayerProperty ( const TerrainContentItemKey key,
const makArchives::DtFeatureLayerRecord rec 
)
virtual

Sets the feature layer property.

Parameters
keyThe key of the feature layer.
recThe feature layer record of the feature layer.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::getFeatureLayerProperty ( const TerrainContentItemKey key,
makArchives::DtFeatureLayerRecord rec 
)
virtual

Gets the feature layer property.

Parameters
keyThe key of the feature layer.
recThe feature layer record of the feature layer.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setOceanLayerProperty ( const TerrainContentItemKey key,
const makArchives::DtOceanLayerRecord ref 
)
virtual

Sets the ocean layer property.

Parameters
keyThe key of the ocean layer.
recThe ocean layer record of the ocean layer.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::getOceanLayerProperty ( const TerrainContentItemKey key,
makArchives::DtOceanLayerRecord rec 
)
virtual

Gets the ocean layer property.

Parameters
keyThe key of the ocean layer.
recThe ocean layer record of the ocean layer.

Implements makVrv::DtTerrainEditorInterface.

void makVrv::DtTerrainEditorWidget::setImageLayerProperty ( const TerrainContentItemKey key,
const osgEarth::ImageLayerOptions &  options 
)
virtual

Sets the image layer property.

Parameters
keyThe key of the image layer.
optionThe image layer options of the image layer.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::getImageLayerProperty ( const TerrainContentItemKey key,
osgEarth::ImageLayerOptions &  options 
)
virtual

Gets the image layer property.

Parameters
keyThe key of the image layer.
optionThe image layer options of the image layer.

Implements makVrv::DtTerrainEditorInterface.

void makVrv::DtTerrainEditorWidget::setElevationLayerProperty ( const TerrainContentItemKey key,
const osgEarth::ElevationLayerOptions &  options 
)
virtual

Sets the elevation layer property.

Parameters
keyThe key of the elevation layer.
optionThe elevation layer options of the elevation layer.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::getElevationLayerProperty ( const TerrainContentItemKey key,
osgEarth::ElevationLayerOptions &  options 
)
virtual

Gets the elevation layer property.

Parameters
keyThe key of the elevation layer.
optionThe elevation layer options of the elevation layer.

Implements makVrv::DtTerrainEditorInterface.

void makVrv::DtTerrainEditorWidget::setModelLayerProperty ( const TerrainContentItemKey key,
const osgEarth::ModelLayerOptions &  options 
)
virtual

Sets the model layer property.

Parameters
keyThe key of the model layer.
optionThe elevation layer options of the model layer.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::getModelLayerProperty ( const TerrainContentItemKey key,
osgEarth::ModelLayerOptions &  options 
)
virtual

Gets the model layer property.

Parameters
keyThe key of the model layer.
optionThe elevation layer options of the model layer.

Implements makVrv::DtTerrainEditorInterface.

void makVrv::DtTerrainEditorWidget::setMaskLayerProperty ( const TerrainContentItemKey key,
const osgEarth::MaskLayerOptions &  options 
)
virtual

Sets the mask layer property.

Parameters
keyThe key of the mask layer.
optionThe mask layer options of the mask layer.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setBuildingLayerProperty ( const TerrainContentItemKey key,
const osgEarth::Buildings::BuildingLayerOptions &  options 
)
virtual

Sets the building layer property.

Parameters
keyThe key of the building layer.
optionThe building layer options of the building layer.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setLandCoverLayerProperty ( const TerrainContentItemKey key,
const osgEarth::LandCoverLayerOptions &  options 
)
virtual

Sets the land cover layer property.

Parameters
keyThe key of the land cover layer.
optionThe land cover layer options of the land cover layer.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setGroundCoverLayerProperty ( const TerrainContentItemKey key,
const osgEarth::Splat::GroundCoverLayerOptions &  options 
)
virtual

Sets the ground cover layer property.

Parameters
keyThe key of the ground cover layer.
optionThe ground cover layer options of the ground cover layer.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setGroundCoverProperty ( const TerrainContentItemKey key,
const osgEarth::Splat::GroundCoverOptions &  options 
)
virtual

Sets the ground cover property.

Parameters
keyThe key of the ground cover.
optionThe ground cover options of the ground cover.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setRoadSurfaceLayerProperty ( const TerrainContentItemKey key,
const osgEarth::Splat::RoadSurfaceLayerOptions &  options 
)
virtual

Sets the road surface layer property.

Parameters
keyThe key of the road surface layer.
optionThe road surface layer options of the road surface layer.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setSplatLayerProperty ( const TerrainContentItemKey key,
const osgEarth::Splat::SplatLayerOptions &  options 
)
virtual

Sets the splat layer property.

Parameters
keyThe key of the splat layer.
optionThe splat layer options of the splat layer.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::showCacheDialog ( const std::string &  osgEarthTerrainDefinition)
virtual

Shows the osgEarth cache dialog.

Parameters
osgEarthTerrainDefinitionThe osgEarth terrain definition.

Implements makVrv::DtTerrainEditorInterface.

virtual DtUnicode makVrv::DtTerrainEditorWidget::showSaveMtfFileDialog ( const DtUnicode directory)
virtual

Shows the dialog about saving as mtf file(MAK Terrain Format).

Parameters
directoryThe directory to save the mtf file.

Implements makVrv::DtTerrainEditorInterface.

virtual DtUnicode makVrv::DtTerrainEditorWidget::showSaveOsgEarthFileDialog ( const DtUnicode directory)
virtual

Shows the dialog about saving as earth file.

Parameters
directoryThe directory to save the earth file.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::showSaveFileConfirmationMessageBox ( const DtUnicode fileName)
virtual

Shows the message box to confirm the saving of a file.

Parameters
fileNameThe file name of the file.

Implements makVrv::DtTerrainEditorInterface.

virtual bool makVrv::DtTerrainEditorWidget::showOverrideOsgEarthFileDialog ( )
virtual

Shows the dialog to warn the user of overriding an existing earth file.

Implements makVrv::DtTerrainEditorInterface.

virtual bool makVrv::DtTerrainEditorWidget::showWarnReloadTerrainMessageBox ( bool checked)
virtual

Shows the dialog to warn the user of reloading the terrain.

Parameters
checkedWhether the not show again check box is checked by the user.

Implements makVrv::DtTerrainEditorInterface.

virtual bool makVrv::DtTerrainEditorWidget::showReloadTerrainAfterGenerateMaskMessageBox ( const std::string &  terrainPatch)
virtual

Shows the dialog to reload the terrain after generating a mask.

Parameters
terrainPatchThe name of the terrain patch to generate mask for.

Implements makVrv::DtTerrainEditorInterface.

virtual bool makVrv::DtTerrainEditorWidget::showChooseLayerTypeMessageBox ( const DtUnicode url,
int type 
)
virtual

Shows the message box that asks user to specify the type of the terrain layer when add new data to terrain.

Parameters
urlThe source data of the layer.
typeThe type of the layer.
Returns
Return true if user wants add this layer. Return false if use cancel the operation.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::showFileExtensionNotSupportedMessageBox ( const DtUnicode fileName)
virtual

Shows the message box that the files user are trying to drag into the terrain editor is not supported.

Parameters
fileNameThe name of the file.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setGenerateBoundaryModels ( const std::vector< std::string > &  models)
virtual

Sets the list of models to generate boundary for.

Parameters
modelsA list of file names of the models.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setTerrainPropertyTreeItemName ( const std::string &  name)
virtual

Sets the name entry to be displayed in the terrain property tree item.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setTerrainPropertyTreeItemVisiblity ( bool  visible)
virtual

Sets the visible entry to be displayed in the terrain property tree item.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::expandTerrainContentTreeWidget ( )
virtual

Expands all the items in terrain content tree widget.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::expandOsgEarthFragmentTreeWidget ( )
virtual

Expands all the items in osgEarth fragment tree widget.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setOceanLayerHeight ( const TerrainContentItemKey key,
double  height 
)
virtual

Sets the height of the ocean layer.

Parameters
keyThe key of the ocean layer.
heightThe height of the ocean layer.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setOceanLayerLod ( const TerrainContentItemKey key,
int  lod 
)
virtual

Sets the lod of the ocean layer.

Parameters
keyThe key of the ocean layer.
lodthe altitude at which the Ocean LOD's out.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setLayerVisiblity ( const TerrainContentItemKey key,
bool  visible 
)
virtual

Sets the visibility of the osgEarth::Layer.

Parameters
keyThe key of the osgEarth::Layer.
visibleThe visibility of the osgEarth::Layer.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setLayerOpacity ( const TerrainContentItemKey key,
double  opacity 
)
virtual

Sets the opacity of the osgEarth::Layer.

Parameters
keyThe key of the osgEarth::Layer.
opacityThe opacity of the osgEarth::Layer.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setLayerMinVisibleRange ( const TerrainContentItemKey key,
double  range 
)
virtual

Sets the minimum visible range of the osgEarth::VisibleLayer.

Parameters
rangeThe minimum visible range.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setLayerMaxVisibleRange ( const TerrainContentItemKey key,
double  range 
)
virtual

Sets the maximum visible range of the osgEarth::VisibleLayer.

Parameters
rangeThe maximum visible range.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setGroundCoverWind ( const TerrainContentItemKey key,
double  wind 
)
virtual

Sets the wind factor of ground cover.

Parameters
windThe wind speed of the ground cover[0..1].

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setGroundCoverFill ( const TerrainContentItemKey key,
double  fill 
)
virtual

Sets the fill of the groundCover in the gui.

Parameters
keyThe key of the ground cover.
fillPercentage of land that this layer's instances will cover [0..1]. Lower values will result is more "patchiness" of placement.

Implements makVrv::DtTerrainEditorInterface.

virtual void makVrv::DtTerrainEditorWidget::setGroundCoverMaxDistance ( const TerrainContentItemKey key,
double  maxDistance 
)
virtual

Sets the maxDistance of the groundCover in the gui.

Parameters
keyThe key of the ground cover.
maxDistanceMaximum viewing distance from camera.

Implements makVrv::DtTerrainEditorInterface.

void makVrv::DtTerrainEditorWidget::setupGui ( )
protected

Setups the GUI.

virtual void makVrv::DtTerrainEditorWidget::connectSignals ( )
protectedvirtual

Connects the signals.

virtual void makVrv::DtTerrainEditorWidget::connectRuntimeWidgetSignals ( const TerrainContentItemKey key)
protectedvirtual

Connects the signals for the DtTerrainEditorRuntimePropertyWidgetItem with the given key.

Parameters
Thekey of the terrain content item that has this runtime property.
virtual void makVrv::DtTerrainEditorWidget::addTerrainPropertyTreeWidgetItem ( const TerrainContentItemKey key,
DtTerrainEditorPropertyTreeWidgetItem item 
)
protectedvirtual

Adds a terrain property item to the terrain property tree widget with the associated terrain content item key.

Parameters
keyThe key of the terrain content item.
itemThe terrain property item to add.
virtual void makVrv::DtTerrainEditorWidget::addTerrainRuntimeTreeWidgetItem ( const TerrainContentItemKey key,
DtTerrainEditorRuntimePropertyWidgetItem item 
)
protectedvirtual

Adds a terrain runtime item to the terrain runtime tree widget with the associated terrain content item key.

Parameters
keyThe key of the terrain content item.
itemThe terrain runtime item to add.
virtual QTreeWidgetItem* makVrv::DtTerrainEditorWidget::getTerrainContentItem ( const TerrainContentItemKey key)
protectedvirtual

Gets the terrain content item with the given key.

Parameters
keyThe key of the terrain content item.
Returns
Return NULL if not found.
virtual void makVrv::DtTerrainEditorWidget::setTerrainContentItemAttributes ( QTreeWidgetItem item,
const TerrainContentItemKey key,
const std::string &  displayName,
bool  checked = true 
)
protectedvirtual

Sets the attributes of a terrain content item.

Parameters
itemThe terrain content item.
keyThe key of the terrain content item.
displayNameThe name to be displayed.
checkedWhether check the checkbox of the terrain content item.
virtual void makVrv::DtTerrainEditorWidget::removeTerrainContentTreeWidgetItem ( QTreeWidgetItem item)
protectedvirtual

Removes a terrain content tree widget item from the tree.

Parameters
itemThe item to remove.
virtual void makVrv::DtTerrainEditorWidget::removeTerrainContentTreeWidgetItemFromMap ( QTreeWidgetItem item)
protectedvirtual

Removes a terrain content tree widget item from the TerrainContentTreeWidgetItemsMap.

Parameters
itemThe item to remove. Recursive remove the children of item.
virtual void makVrv::DtTerrainEditorWidget::setItemExpandedOrCollapsed ( QTreeWidget tree,
QTreeWidgetItem item,
bool  expanded 
)
protectedvirtual

Expand or collapse a tree item.

It will expaned or collapse the children and may toggle the checkBox associated with the tree item.

Parameters
treeThe tree widget.
itemThe item to expand.
expandedIt true , it will expand the item , otherwise collspase it.
virtual void makVrv::DtTerrainEditorWidget::setItemCheckedOrUnchecked ( QTreeWidget tree,
QTreeWidgetItem item,
bool  checkedOrUnchecked 
)
protectedvirtual

Set the checkbox state of a tree item and its children.

This function will modify the checkBox associated with the tree item and its children.

Parameters
treeThe tree widget.
itemThe item that will be modified (along with its children).
checkedOrUncheckedWhether the checkboxes are checked or not.
int makVrv::DtTerrainEditorWidget::getTerrainContentItemType ( QTreeWidgetItem item)
protected
Parameters
Getsthe TerrainContentItemType of the terrain content item.
Returns
Return UnknownType if failed to retrieve from the user data.
int makVrv::DtTerrainEditorWidget::getTerrainContentItemId ( QTreeWidgetItem item)
protected
Parameters
Getsthe id of the terrain content item.
Returns
Return -1 if failed to retrieve from the user data.
std::string makVrv::DtTerrainEditorWidget::getTerrainContentItemName ( QTreeWidgetItem item)
protected
Parameters
Getsthe name of the terrain content item.
Returns
Return empty string if failed to retrieve from the user data.
std::string makVrv::DtTerrainEditorWidget::getTerrainContentItemDisplayName ( QTreeWidgetItem item)
protected
Parameters
Getsthe name of the terrain content item.
Returns
Return empty string if failed to retrieve from the user data.
int makVrv::DtTerrainEditorWidget::getTerrainContentItemParentType ( QTreeWidgetItem item)
protected
Parameters
Getsthe parent type of the terrain content item.
Returns
Return UnknownType if failed to retrieve from the user data.
int makVrv::DtTerrainEditorWidget::getTerrainContentItemParentId ( QTreeWidgetItem item)
protected
Parameters
Getsthe parent id of the terrain content item.
Returns
Return -1 if failed to retrieve from the user data.
TerrainContentItemKey makVrv::DtTerrainEditorWidget::getTerrainContentItemKey ( QTreeWidgetItem item)
protected
Parameters
Getsthe key of the terrain content item.
Returns
Return invalid key if failed to retrieve from the user data.
virtual DtTerrainEditorPropertyTreeWidgetItem* makVrv::DtTerrainEditorWidget::getTerrainEditorPropertyTreeWidgetItem ( const TerrainContentItemKey key)
protectedvirtual
Parameters
Getsthe DtTerrainEditorPropertyTreeWidgetItem with the given key.
Returns
Return NULL if not found.
virtual DtTerrainEditorPropertyTreeWidgetItem* makVrv::DtTerrainEditorWidget::createTerrainEditorPropertyTreeWidgetItem ( const TerrainContentItemKey key)
protectedvirtual
Parameters
CreatesDtTerrainEditorPropertyTreeWidgetItem with the given key. It will add the item to the top level of the terrain property tree, sets up the gui and connect the signals etc.
Returns
Return the item just created or null if failed.
virtual std::string makVrv::DtTerrainEditorWidget::getTerrainEditorPropertyTreeWidgetItemCreatorName ( TerrainContentItemType  type)
protectedvirtual
Parameters
Getsthe creator name with the given TerrainContentItemType. The type of the terrain content item.
Returns
Return empty string if not found.
virtual DtTerrainEditorRuntimePropertyWidgetItem* makVrv::DtTerrainEditorWidget::getTerrainEditorRuntimePropertyWidgetItem ( const TerrainContentItemKey key)
protectedvirtual
Parameters
Getsthe DtTerrainEditorRuntimePropertyWidgetItem with the given key. Each terrain content item corresponds to a terrain runtime item.
Returns
Return NULL if not found.
virtual DtTerrainEditorRuntimePropertyWidgetItem* makVrv::DtTerrainEditorWidget::createTerrainEditorRuntimePropertyWidgetItem ( const TerrainContentItemKey key)
protectedvirtual
Parameters
CreatesDtTerrainEditorRuntimePropertyWidgetItem with the given key. It will add the item to the top level of the terrain runtime tree, sets up the gui and connect the signals etc.
Returns
Return the item just created or null if failed.
std::string makVrv::DtTerrainEditorWidget::getOsgEarthFragmentItemKey ( QTreeWidgetItem item)
protected

Gets the key of the osgEarth fragment item.

Returns
The unique key of the osgEarth fragment item, usually the full url of the external reference.
bool makVrv::DtTerrainEditorWidget::hasTerrainContentItem ( const TerrainContentItemKey key)
protected

Check if the terrain content item with the given key exists.

Returns
Return true if we have this item.
virtual void makVrv::DtTerrainEditorWidget::populateTerrainContentTreeContextMenu ( QContextMenuEvent *  e)
protectedvirtual

Populates the context menu of the terrain content tree.

virtual void makVrv::DtTerrainEditorWidget::populateTerrainFragmentTreeContextMenu ( QContextMenuEvent *  e)
protectedvirtual

Populates the context menu of the terrain content tree.

virtual void makVrv::DtTerrainEditorWidget::populateTerrainPropertyTreeContextMenu ( QContextMenuEvent *  e)
protectedvirtual

Populates the context menu of the terrain property tree.

virtual void makVrv::DtTerrainEditorWidget::renameTerrainContentTreeWidgetItem ( )
protectedvirtual

Rename the current selected terrain content item.

virtual void makVrv::DtTerrainEditorWidget::moveUpTerrainContentTreeWidgetItem ( )
protectedvirtual

Moves up the current selected terrain content item.

virtual void makVrv::DtTerrainEditorWidget::moveDownTerrainContentTreeWidgetItem ( )
protectedvirtual

Moves down the current selected terrain content item.

virtual void makVrv::DtTerrainEditorWidget::saveTerrainContentTreeWidgetItem ( )
protectedvirtual

Saves the current selected terrain content item.

virtual void makVrv::DtTerrainEditorWidget::deleteTerrainContentTreeWidgetItem ( )
protectedvirtual

Deletes the current selected terrain content item.

virtual void makVrv::DtTerrainEditorWidget::hideAllTerrainContentTreeTopLevelItems ( )
protectedvirtual

Hides all the top level items in the terrain content tree.

virtual void makVrv::DtTerrainEditorWidget::hideAllTerrainPropertyTreeTopLevelItems ( )
protectedvirtual

Hides all the top level items in the terrain property tree.

virtual void makVrv::DtTerrainEditorWidget::showTerrainPropertyTreeTopLevelItem ( DtTerrainEditorPropertyTreeWidgetItem item)
protectedvirtual

Displayes the specified top level item, hide all other top level items in the terrain property tree.

Parameters
itemThe item to be display.
virtual void makVrv::DtTerrainEditorWidget::showTerrainPropertyTreeTopLevelItems ( const std::vector< DtTerrainEditorPropertyTreeWidgetItem * > &  items)
protectedvirtual

Displayes the specified top level items, hide all other top level items in the terrain property tree.

virtual void makVrv::DtTerrainEditorWidget::showTerrainRuntimeTreeTopLevelItem ( DtTerrainEditorRuntimePropertyWidgetItem item)
protectedvirtual

Displayes the specified top level item, hide all other top level items in the property tree.

virtual bool makVrv::DtTerrainEditorWidget::isTerrainContentTabEnabled ( )
protectedvirtual

check if the terrain content tab is enabled or not.

virtual bool makVrv::DtTerrainEditorWidget::isTerrainPropertyTabEnabled ( )
protectedvirtual

check if the terrain property tab is enabled or not.

virtual bool makVrv::DtTerrainEditorWidget::checkIfNameDuplicate ( QTreeWidgetItem item,
const std::string &  name 
)
protectedvirtual

Checks if the name is duplicate for all the items that has the same parent as item.

Parameters
itemAll the items that has the same parent as item will be checked.
nameThe name to check.
Returns
Return true if the name is duplicate.
virtual void makVrv::DtTerrainEditorWidget::slot_osgEarthTerrainLayerRequestAdded ( int  type,
const std::string &  name,
const std::string &  driver,
const DtUnicode url 
)
protectedvirtual

Slot when a terrain layer has been added through the gui.

Parameters
typeTerrainLayerType enum, imgae or elevation.
nameThe unique name of the model layer.
driverThe drive of the model layer.
urlThe url address of the model layer.
virtual void makVrv::DtTerrainEditorWidget::slot_osgEarthModelLayerDataRequestAdded ( const std::string &  name,
const std::string &  driver,
const DtUnicode url,
const std::string &  wfsType 
)
protectedvirtual

Slot when a model layer has been added through the gui.

Parameters
nameThe unique name of the model layer.
driverThe drive of the model layer.
urlThe url address of the model layer.
wfsTypeThe type name of the wfs source, only appliable when driver is wfs.
virtual void makVrv::DtTerrainEditorWidget::slot_generateBoundary ( const std::string &  definition,
const std::string &  name,
bool  ,
bool   
)
protectedvirtual

Slot when receive the request to generate boundary for a given terrain patch.

Parameters
terrainPatchDefinitionThe terrain definition of the terrain patch which used to generate boundary.
nameThe name of the mask layer.
geocentricIf the terrain database is geocentric.
convexHullCalculate a convex hull instead of a full boundary.
virtual void makVrv::DtTerrainEditorWidget::on_terrainContentTreeWidget_currentItemChanged ( QTreeWidgetItem current,
QTreeWidgetItem previous 
)
protectedvirtualslot

The slot when the current item of the terrain content tree has changed.

Parameters
currentThe current item of the tree.
previousThe previous item of the tree.
virtual void makVrv::DtTerrainEditorWidget::on_terrainContentTreeWidget_itemPressed ( QTreeWidgetItem item,
int  column 
)
protectedvirtualslot

The slot when press the item of the terrain content tree.

Parameters
itemThe item being pressed.
columnThe column of the item.
virtual void makVrv::DtTerrainEditorWidget::on_terrainContentTreeWidget_itemDoubleClicked ( QTreeWidgetItem item,
int  column 
)
protectedvirtualslot

Slot when double clicks on the terrain content tree item.

Parameters
itemThe item being double clicked.
columnThe column of the item.
virtual void makVrv::DtTerrainEditorWidget::on_terrainContentTreeWidget_itemChanged ( QTreeWidgetItem item,
int  column 
)
protectedvirtualslot

Slot when the attributes of the terrain content item has been changed.

Parameters
itemThe item has changed.
columnThe column of the item.
virtual void makVrv::DtTerrainEditorWidget::on_osgEarthFragmentTreeWidget_currentItemChanged ( QTreeWidgetItem current,
QTreeWidgetItem previous 
)
protectedvirtualslot

Slot when the current item of the osgEarth fragment tree has changed.

Parameters
currentThe current item of the tree.
previousThe previous item of the tree.
virtual void makVrv::DtTerrainEditorWidget::on_terrainPropertyTreeWidget_currentItemChanged ( QTreeWidgetItem current,
QTreeWidgetItem previous 
)
protectedvirtualslot

Slot when the current item of the terrain property tree has changed.

Parameters
currentThe current item of the tree.
previousThe previous item of the tree.
virtual void makVrv::DtTerrainEditorWidget::on_terrainPropertyTreeWidget_itemPressed ( QTreeWidgetItem ,
int  column 
)
protectedvirtualslot

Slot when press the item of the terrain property tree.

Parameters
itemThe item being pressed.
columnThe column of the item.
virtual void makVrv::DtTerrainEditorWidget::on_terrainContentTabWidget_currentChanged ( int  index)
protectedvirtualslot

Slot when the current activated widget in terrain content tab has changed.

Parameters
indexThe current index of the terrain content tab widget.
virtual void makVrv::DtTerrainEditorWidget::on_terrainRuntimeOptionsTabWidget_currentChanged ( int  index)
protectedvirtualslot

Slot when the current activated widget in terrain runtime tab has changed.

Parameters
indexThe current index of the terrain runtime tab widget.
virtual void makVrv::DtTerrainEditorWidget::on_terrainContentTreeMenu_triggered ( QAction action)
protectedvirtualslot

Slot when the action of the terrain content tree menu is triggered.

virtual void makVrv::DtTerrainEditorWidget::on_terrainPropertyTreeMenu_triggered ( QAction action)
protectedvirtualslot

Slot when the action of the terrain property tree menu is triggered.

virtual void makVrv::DtTerrainEditorWidget::on_terrainContentTree_checkBox_stateChanged ( const QTreeWidgetItem ,
int  checked 
)
protectedvirtualslot

Slot when the check box of the terrain content tree is checked/unchecked.

virtual void makVrv::DtTerrainEditorWidget::on_addTerrainPatchButton_released ( )
protectedvirtualslot

Slot when the add terrain patch button is released.

virtual void makVrv::DtTerrainEditorWidget::on_addImageLayerButton_released ( )
protectedvirtualslot

Slot when the add image layer button is released.

virtual void makVrv::DtTerrainEditorWidget::on_addElevationLayerButton_released ( )
protectedvirtualslot

Slot when the add elevation layer button is released.

virtual void makVrv::DtTerrainEditorWidget::on_addFeatureButton_released ( )
protectedvirtualslot

Slot when the add feature button is released.

virtual void makVrv::DtTerrainEditorWidget::on_addFeatureLayerButton_released ( )
protectedvirtualslot

Slot when the add feature layer button is released.

virtual void makVrv::DtTerrainEditorWidget::on_addOceanLayerButton_released ( )
protectedvirtualslot

Slot when the add ocean layer button is released.

virtual void makVrv::DtTerrainEditorWidget::on_commitChangesButton_released ( )
protectedvirtualslot

Slot when commit changes button is released.

virtual void makVrv::DtTerrainEditorWidget::on_revertChangesButton_released ( )
protectedvirtualslot

Slot when revert changes button is released.

virtual void makVrv::DtTerrainEditorWidget::on_saveTerrainButton_released ( )
protectedvirtualslot

Slot when save terrain button is released.

virtual void makVrv::DtTerrainEditorWidget::on_generateCacheButton_released ( )
protectedvirtualslot

Slot when generate cache button is released.

virtual void makVrv::DtTerrainEditorWidget::on_generateBoundaryButton_released ( )
protectedvirtualslot

Slot when generate boundary button is released.

virtual void makVrv::DtTerrainEditorWidget::slot_visibleLayerVisibilityChanged ( bool  visible)
protectedvirtualslot

Slot when the visibility of the layer has changed.

Parameters
visibleThe visibility of the layer.
virtual void makVrv::DtTerrainEditorWidget::slot_visibleLayerOpacityChanged ( double  opacity)
protectedvirtualslot

Slot when the opacity of the layer has changed.

Parameters
keyThe key of the current selected layer.
opacityThe opacity of the layer[0..1].
virtual void makVrv::DtTerrainEditorWidget::slot_visibleLayerMinVisibleRangeChanged ( double  minRange)
protectedvirtualslot

Slot when the minimal visible range of the layer has changed.

Parameters
keyThe key of the current selected layer.
minRangeThe minimal visible range.
virtual void makVrv::DtTerrainEditorWidget::slot_visibleLayerMaxVisibleRangeChanged ( double  maxRange)
protectedvirtualslot

Slot when the maximum visible range of the layer has changed.

Parameters
keyThe key of the current selected layer.
maxRangeThe maximum visible range.
virtual void makVrv::DtTerrainEditorWidget::slot_modelLayerLightingChanged ( bool  lighting)
protectedvirtualslot

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

Parameters
keyThe key of the current selected layer.
lightingWhether apply lighting on the model layer.
virtual void makVrv::DtTerrainEditorWidget::slot_oceanLayerHeightChanged ( double  height)
protectedvirtualslot

Slot when the height of the ocean layer has changed.

Parameters
heightThe height of the ocean layer.
virtual void makVrv::DtTerrainEditorWidget::slot_oceanLayerLodChanged ( int  lod)
protectedvirtualslot

Slot when the lod of the ocean layer has changed.

Parameters
lodThe altitude at which the Ocean LOD's out.
virtual void makVrv::DtTerrainEditorWidget::slot_groundCoverWindChanged ( double  wind)
protectedvirtualslot

Slot when wind of the ground cover changed.

Wind speed [0..1]

virtual void makVrv::DtTerrainEditorWidget::slot_groundCoverFillChanged ( double  fill)
protectedvirtualslot

Slot when fill of the ground cover changed.

Percentage of land that this layer's instances will cover [0..1]. Lower values will result is more "patchiness" of placement.

virtual void makVrv::DtTerrainEditorWidget::slot_groundCoverMaxDistanceChanged ( double  maxDistance)
protectedvirtualslot

Slot when maxDistance of the ground cover changed.

Maximum viewing distance from camera.

virtual void makVrv::DtTerrainEditorWidget::contextMenuEvent ( QContextMenuEvent *  e)
protectedvirtualslot

Context menu event override.

virtual void makVrv::DtTerrainEditorWidget::dragEnterEvent ( QDragEnterEvent *  e)
protectedvirtualslot

Drag enter event override. Used to drap and drop data.

virtual void makVrv::DtTerrainEditorWidget::dropEvent ( QDropEvent *  e)
protectedvirtualslot

Drop event override. Used to drap and drop data.

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

Assignment Operator not implemented – Copy not allowed.

Friends And Related Function Documentation

friend class DtTerrainEditorWidgetCreator
friend

Member Data Documentation

DtDe& makVrv::DtTerrainEditorWidget::myDe
protected
bool makVrv::DtTerrainEditorWidget::myIsInitialized
protected
DtSignalConnectionManager makVrv::DtTerrainEditorWidget::mySignals
protected
DtOsgEarthAddTerrainLayerWidget* makVrv::DtTerrainEditorWidget::myOsgEarthAddTerrainLayerWidget
protected
DtOsgEarthAddModelLayerWidget* makVrv::DtTerrainEditorWidget::myOsgEarthAddModelLayerWidget
protected
DtOsgEarthCacheDialog* makVrv::DtTerrainEditorWidget::myOsgEarthCacheDialog
protected
DtOsgEarthGenerateBoundaryWidget* makVrv::DtTerrainEditorWidget::myOsgEarthGenerateBoundaryWidget
protected
QVBoxLayout* makVrv::DtTerrainEditorWidget::myMainLayout
protected
QTabWidget* makVrv::DtTerrainEditorWidget::myTopLevelTabWidget
protected
QWidget* makVrv::DtTerrainEditorWidget::myAddDataWidget
protected
QGridLayout* makVrv::DtTerrainEditorWidget::myAddDataButtonsLayout
protected
QToolButton* makVrv::DtTerrainEditorWidget::myAddTerrainPatchButton
protected
QToolButton* makVrv::DtTerrainEditorWidget::myAddServerConnectionButton
protected
QToolButton* makVrv::DtTerrainEditorWidget::myAddImageLayerButton
protected
QToolButton* makVrv::DtTerrainEditorWidget::myAddElevationLayerButton
protected
QToolButton* makVrv::DtTerrainEditorWidget::myAddFeatureButton
protected
QToolButton* makVrv::DtTerrainEditorWidget::myAddFeatureLayerButton
protected
QToolButton* makVrv::DtTerrainEditorWidget::myAddOceanLayerButton
protected
QWidget* makVrv::DtTerrainEditorWidget::myCacheWidget
protected
QHBoxLayout* makVrv::DtTerrainEditorWidget::myCacheButtonsLayout
protected
QToolButton* makVrv::DtTerrainEditorWidget::myGenerateCacheButton
protected
QToolButton* makVrv::DtTerrainEditorWidget::myGenerateBoundaryButton
protected
QWidget* makVrv::DtTerrainEditorWidget::mySaveWidget
protected
QHBoxLayout* makVrv::DtTerrainEditorWidget::mySaveButtonsLayout
protected
QToolButton* makVrv::DtTerrainEditorWidget::mySaveOsgEarthTerrainButton
protected
QToolButton* makVrv::DtTerrainEditorWidget::mySaveTerrainButton
protected
QTabWidget* makVrv::DtTerrainEditorWidget::myTerrainRuntimeOptionsTabWidget
protected
QHBoxLayout* makVrv::DtTerrainEditorWidget::myBottomButtonsLayout
protected
QPushButton* makVrv::DtTerrainEditorWidget::myCommitChangesButton
protected
QPushButton* makVrv::DtTerrainEditorWidget::myRevertChangesButton
protected
QTabWidget* makVrv::DtTerrainEditorWidget::myTerrainContentTabWidget
protected
QTreeWidget* makVrv::DtTerrainEditorWidget::myTerrainContentTreeWidget
protected
QTreeWidget* makVrv::DtTerrainEditorWidget::myOsgEarthFragmentTreeWidget
protected
QTreeWidget* makVrv::DtTerrainEditorWidget::myTerrainPropertyTreeWidget
protected
QTreeWidget* makVrv::DtTerrainEditorWidget::myTerrainRuntimeTreeWidget
protected
TerrainContentItemKey makVrv::DtTerrainEditorWidget::mySelectedTerrainContentItemKey
protected
TerrainContentTreeWidgetItemsMap makVrv::DtTerrainEditorWidget::myTerrainContentTreeWidgetItemsMap
protected
TreeWidgetType makVrv::DtTerrainEditorWidget::mySelectedTreeWidget
protected
DtOsgEarthPropertyItemKey makVrv::DtTerrainEditorWidget::mySelectedDtOsgEarthPropertyItemKey
protected
std::vector<TerrainContentItemKey> makVrv::DtTerrainEditorWidget::mySelectedOsgEarthFragmentKeys
protected
OsgEarthFragmentContentItemsMap makVrv::DtTerrainEditorWidget::myOsgEarthFragmentContentItemsMap
protected
TerrainPropertyTreeWidgetItemsMap makVrv::DtTerrainEditorWidget::myTerrainPropertyTreeWidgetItemsMap
protected
TerrainRuntimeTreeWidgetItemsMap makVrv::DtTerrainEditorWidget::myTerrainRuntimeTreeWidgetItemsMap
protected
QMenu* makVrv::DtTerrainEditorWidget::myTerrainContentTreeMenu
protected
QMenu* makVrv::DtTerrainEditorWidget::myTerrainPropertyTreeMenu
protected

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

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