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 Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Friends
makVrv::DtGroundCoverTreeWidgetItem Class Reference

DtGroundCoverTreeWidgetItem. More...

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

Public Member Functions

virtual void setupGui ()
 Sets up the widgets. More...
 
virtual void connectSignals ()
 Connects the signals. More...
 
virtual void setWind (float wind)
 Sets the wind speed of the ground cover. More...
 
float getWind () const
 Gets the wind speed of the ground cover. More...
 
virtual void setDensity (float density)
 Sets the density of the ground cover. More...
 
virtual float getDensity () const
 Gets the density of the ground cover. More...
 
virtual void setFill (float fill)
 Sets the fill of the ground cover. More...
 
virtual float getFill () const
 Gets the fill of the ground cover. More...
 
virtual void setMaxDistance (float maxDistance)
 Sets the maximum viewing distance of the ground cover. More...
 
virtual float getMaxDistance () const
 Sets the maximum viewing distance of the ground cover. More...
 
- Public Member Functions inherited from makVrv::DtTerrainEditorPropertyTreeWidgetItem
 DtTerrainEditorPropertyTreeWidgetItem (QTreeWidget *tree, DtDe &de, const DtOsgEarthPropertyItemKey &key)
 Default constructor. More...
 
virtual ~DtTerrainEditorPropertyTreeWidgetItem ()
 Destructor. More...
 
virtual void setName (const std::string &name)
 Sets the name attribute if applies. More...
 
virtual void setVisible (bool visible)
 Sets the visible attribute if applies. More...
 
virtual void setTextAndTooltip (const QString &text, const QString &tooltip)
 Sets the display name and tooltip of the item. More...
 
virtual void setItemAttributes (QTreeWidgetItem *item, const DtOsgEarthPropertyItemKey &key, const QString &text, const QString &tooltip)
 Sets the attributs of the item. More...
 
virtual void setItemAttributes (QTreeWidgetItem *item, const DtOsgEarthPropertyItemKey &key)
 Sets the attributs of the item. More...
 
QTreeWidgetItemfindTreeWidgetItem (const DtOsgEarthPropertyItemKey &key, bool visibleOnly=true)
 Recursively find the QTreeWidgetItem with the given key. More...
 
DtTerrainEditorPropertyTreeWidgetItemfindTerrainEditorPropertyTreeWidgetItem (const DtOsgEarthPropertyItemKey &key)
 Recursively find the DtTerrainEditorPropertyTreeWidgetItem with the given key. More...
 
virtual void populateContextMenu (QMenu *menu)
 Populates the context menu of this DtTerrainEditorPropertyTreeWidgetItem. More...
 
virtual void populateContextMenu (QMenu *menu, const DtOsgEarthPropertyItemKey &key)
 Populates the context menu of a child DtTerrainEditorPropertyTreeWidgetItem with the given key. More...
 
virtual void triggleContextMenuAction (QAction *action, const DtOsgEarthPropertyItemKey &key)
 Method called when user toggles the action of an context menu for a child DtTerrainEditorPropertyTreeWidgetItem. More...
 
virtual int findDynamicItemCount (const std::string &type)
 Finds how many dynamic items are already allocated for an child with given type. More...
 
std::string getDynamicAttributeType (const std::string &text) const
 Gets the type of the dynamic child from the action text from the context menu. More...
 
void setItemVisible (QTreeWidgetItem *item, bool visible)
 Toggles the visibility of a child item. More...
 
AttributesMapattributesMap ()
 Gets the attributes children map. More...
 
DynamicAttributesMapdynamicAttributesMap ()
 Gets the dynamic attributes children map. More...
 
virtual void setTerrainContentItemKey (const DtTerrainEditorInterface::TerrainContentItemKey &key)
 Sets the associated terrain content item key. More...
 
virtual DtOsgEarthPropertyItemKey constructDtOsgEarthPropertyItemKey (const std::string &type) const
 Constructs a key with the given type and index sets to 0. More...
 
void setValue (const std::string &type, const std::string &value, bool set=true)
 Sets the value of a child item, the child item must have a QLineEdit widget associated with it. More...
 
void setScriptValue (const std::string &type, const std::string &value, bool set=true)
 Sets the value of a child item, the child item must have a DtScriptEditorWidget associated with it. More...
 
void setValue (const std::string &type, bool value, bool set=true)
 Sets the value of a child item, the child item must have a QCheckBox widget associated with it. More...
 
void setValue (const std::string &type, int value, bool set=true)
 Sets the value of a child item, the child item must have a QSpinBox widget associated with it. More...
 
void setValue (const std::string &type, unsigned int value, bool set=true)
 Sets the value of a child item, the child item must have a QSpinBox widget associated with it. More...
 
void setValue (const std::string &type, unsigned short value, bool set=true)
 Sets the value of a child item, the child item must have a QLineEdit widget associated with it. More...
 
void setValue (const std::string &type, double value, bool set=true)
 Sets the value of a child item, the child item must have a QDoubleSpinBox widget associated with it. More...
 
void setValue (const std::string &type, const osgEarth::URI &url, bool set=true)
 Sets the value of a child item, the child item must have a DtFileBrowseWidget widget associated with it. More...
 
void setValue (const std::string &type, const osgEarth::NumericExpression &exp, bool set=true)
 Sets the value of a child item, the child item must have a DtUnitsWidget widget associated with it. More...
 
void setValue (const std::string &type, const osgEarth::StringExpression &exp, bool set=true)
 Sets the value of a child item, the child item must have a DtFileBrowseWidget widget associated with it. More...
 
void setScriptValue (const std::string &type, const osgEarth::StringExpression &exp, bool set=true)
 Sets the value of a child item, the child item must have a DtFileBrowseWidget widget associated with it. More...
 
void setValue (const std::string &type, const osgEarth::Color &color, bool set=true)
 Sets the value of a child item, the child item must have a DtColorPushButton widget associated with it. More...
 
void setValue (const std::string &type, float value, const osgEarth::Units &units, bool set=true)
 Sets the value of a child item, the child item must have a DtUnitsWidget widget associated with it. More...
 
void setValue (const std::string &type, const osgEarth::Distance &distance, bool set=true)
 Sets the value of a child item, the child item must have a DtUnitsWidget widget associated with it. More...
 
void setValue (const std::string &type, const osgEarth::Angle &angle, bool set=true)
 Sets the value of a child item, the child item must have a DtUnitsWidget widget associated with it. More...
 
void setValue (const std::string &type, const osg::Vec2f &value, bool set=true)
 Sets the value of a child item, the child item must have a DtVec2Widget widget associated with it. More...
 
void setValue (const std::string &type, const osg::Vec3f &value, bool set=true)
 Sets the value of a child item, the child item must have a DtVec3Widget widget associated with it. More...
 
void setValue (const std::string &type, const osg::Vec4f &value, bool set=true)
 Sets the value of a child item, the child item must have a DtVec4Widget widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::optional< std::string > &value) const
 Gets the value of a child item, the child item must have a QLineEdit widget associated with it. More...
 
void getScriptValue (const std::string &type, osgEarth::optional< std::string > &value) const
 Sets the value of a child item, the child item must have a DtScriptEditorWidget associated with it. More...
 
void getValue (const std::string &type, osgEarth::optional< bool > &value) const
 Gets the value of a child item, the child item must have a QCheckBox widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::optional< int > &value) const
 Gets the value of a child item, the child item must have a QSpinBox widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::optional< unsigned int > &value) const
 Gets the value of a child item, the child item must have a QSpinBox widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::optional< unsigned short > &value) const
 Gets the value of a child item, the child item must have a QLineEdit widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::optional< double > &value) const
 Gets the value of a child item, the child item must have a QDoubleSpinBox widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::optional< float > &value) const
 Gets the value of a child item, the child item must have a QDoubleSpinBox widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::optional< osgEarth::URI > &url) const
 Gets the value of a child item, the child item must have a DtFileBrowseWidget widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::optional< osgEarth::Config > &config) const
 Gets the value of a child item, the child item must have a DtScriptEditorWidget widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::optional< osgEarth::NumericExpression > &exp) const
 Gets the value of a child item, the child item must have a DtScriptEditorWidget widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::optional< osgEarth::StringExpression > &exp) const
 Gets the value of a child item, the child item must have a DtScriptEditorWidget widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::optional< osgEarth::Color > &color) const
 Gets the value of a child item, the child item must have a DtColorPushButton widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::optional< osgEarth::Distance > &distance) const
 Gets the value of a child item, the child item must have a DtUnitsWidget widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::optional< osgEarth::Angle > &angle) const
 Gets the value of a child item, the child item must have a DtUnitsWidget widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::optional< float > &value, osgEarth::optional< osgEarth::Units > &units) const
 Gets the value of a child item, the child item must have a DtUnitsWidget widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::optional< osg::Vec2f > &value) const
 Sets the value of a child item, the child item must have a DtVec2Widget widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::optional< osg::Vec3f > &value) const
 Sets the value of a child item, the child item must have a DtVec3Widget widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::optional< osg::Vec4f > &value) const
 Sets the value of a child item, the child item must have a DtVec4Widget widget associated with it. More...
 
void getValue (const std::string &type, std::string &value) const
 Gets the value of a child item, the child item must have a QLineEdit widget associated with it. More...
 
void getValue (const std::string &type, bool &value) const
 Gets the value of a child item, the child item must have a QCheckBox widget associated with it. More...
 
void getValue (const std::string &type, int &value) const
 Gets the value of a child item, the child item must have a QSpinBox widget associated with it. More...
 
void getValue (const std::string &type, unsigned int &value) const
 Gets the value of a child item, the child item must have a QSpinBox widget associated with it. More...
 
void getValue (const std::string &type, unsigned short &value) const
 Gets the value of a child item, the child item must have a QLineEdit widget associated with it. More...
 
void getValue (const std::string &type, double &value) const
 Gets the value of a child item, the child item must have a QDoubleSpinBox widget associated with it. More...
 
void getValue (const std::string &type, float &value) const
 Gets the value of a child item, the child item must have a QDoubleSpinBox widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::URI &url) const
 Gets the value of a child item, the child item must have a DtFileBrowseWidget widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::Config &config) const
 Gets the value of a child item, the child item must have a DtScriptEditorWidget widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::NumericExpression &exp) const
 Gets the value of a child item, the child item must have a DtScriptEditorWidget widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::StringExpression &exp) const
 Gets the value of a child item, the child item must have a DtScriptEditorWidget widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::Color &color) const
 Gets the value of a child item, the child item must have a DtColorPushButton widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::Distance &distance) const
 Gets the value of a child item, the child item must have a DtUnitsWidget widget associated with it. More...
 
void getValue (const std::string &type, osgEarth::Angle &angle) const
 Gets the value of a child item, the child item must have a DtUnitsWidget widget associated with it. More...
 
void getValue (const std::string &type, float &value, osgEarth::Units &units) const
 Gets the value of a child item, the child item must have a DtUnitsWidget widget associated with it. More...
 
void getValue (const std::string &type, osg::Vec2f &value) const
 Sets the value of a child item, the child item must have a DtVec2Widget widget associated with it. More...
 
void getValue (const std::string &type, osg::Vec3f &value) const
 Sets the value of a child item, the child item must have a DtVec3Widget widget associated with it. More...
 
void getValue (const std::string &type, osg::Vec4f &value) const
 Sets the value of a child item, the child item must have a DtVec4Widget widget associated with it. More...
 
const QWidget * findChildWidget (const std::string &type) const
 Finds the child Qwidget. More...
 
const QLineEditfindChildWidgetAsQLineEdit (const std::string &type) const
 Finds the child QLineEdit. More...
 
const QCheckBoxfindChildWidgetAsQCheckBox (const std::string &type) const
 Finds the child QCheckBox. More...
 
const QSpinBoxfindChildWidgetAsQSpinBox (const std::string &type) const
 Finds the child QSpinBox. More...
 
const QDoubleSpinBoxfindChildWidgetAsQDoubleSpinBox (const std::string &type) const
 Finds the child QDoubleSpinBox. More...
 
const QComboBoxfindChildWidgetAsQComboBox (const std::string &type) const
 Finds the child QComboBox. More...
 
const DtFileBrowseWidgetfindChildWidgetAsDtFileBrowseWidget (const std::string &type) const
 Finds the child DtFileBrowseWidget. More...
 
const DtScriptEditorWidgetfindChildWidgetAsDtScriptEditorWidget (const std::string &type) const
 Finds the child DtScriptEditorWidget. More...
 
const DtColorPushButtonfindChildWidgetAsDtColorPushButton (const std::string &type) const
 Finds the child DtColorPushButton. More...
 
const DtUnitsWidgetfindChildWidgetAsDtUnitsWidget (const std::string &type) const
 Finds the child DtUnitsWidget. More...
 
const DtVec2WidgetfindChildWidgetAsDtVec2Widget (const std::string &type) const
 Finds the child DtVec2Widget. More...
 
const DtVec3WidgetfindChildWidgetAsDtVec3Widget (const std::string &type) const
 Finds the child DtVec3Widget. More...
 
const DtVec4WidgetfindChildWidgetAsDtVec4Widget (const std::string &type) const
 Finds the child DtVec4Widget. More...
 
QWidget * findChildWidget (const std::string &type)
 Finds the child Qwidget. More...
 
QLineEditfindChildWidgetAsQLineEdit (const std::string &type)
 Finds the child QLineEdit. More...
 
QCheckBoxfindChildWidgetAsQCheckBox (const std::string &type)
 Finds the child QCheckBox. More...
 
QSpinBoxfindChildWidgetAsQSpinBox (const std::string &type)
 Finds the child QSpinBox. More...
 
QDoubleSpinBoxfindChildWidgetAsQDoubleSpinBox (const std::string &type)
 Finds the child QDoubleSpinBox. More...
 
QComboBoxfindChildWidgetAsQComboBox (const std::string &type)
 Finds the child QComboBox. More...
 
DtFileBrowseWidgetfindChildWidgetAsDtFileBrowseWidget (const std::string &type)
 Finds the child DtFileBrowseWidget. More...
 
DtScriptEditorWidgetfindChildWidgetAsDtScriptEditorWidget (const std::string &type)
 Finds the child DtScriptEditorWidget. More...
 
DtColorPushButtonfindChildWidgetAsDtColorPushButton (const std::string &type)
 Finds the child DtColorPushButton. More...
 
DtUnitsWidgetfindChildWidgetAsDtUnitsWidget (const std::string &type)
 Finds the child DtUnitsWidget. More...
 
DtVec2WidgetfindChildWidgetAsDtVec2Widget (const std::string &type)
 Finds the child DtVec2Widget. More...
 
DtVec3WidgetfindChildWidgetAsDtVec3Widget (const std::string &type)
 Finds the child DtVec3Widget. More...
 
DtVec4WidgetfindChildWidgetAsDtVec4Widget (const std::string &type)
 Finds the child DtVec4Widget. More...
 
QTreeWidgetItemcreateQLineEditTreeWidgetItem (const std::string &type, const QString &text, const QString &tooltip, const QString &defaultValue="", bool required=false)
 Creates a child QLineEdit tree widget item. More...
 
QTreeWidgetItemcreateQCheckBoxTreeWidgetItem (const std::string &type, const QString &text, const QString &tooltip, bool defaultValue=false, bool required=false)
 Creates a child QCheckBox tree widget item. More...
 
QTreeWidgetItemcreateQSpinBoxTreeWidgetItem (const std::string &type, const QString &text, const QString &tooltip, int defaultValue=0, int singleStep=1, int min=0, int max=INT_MAX, bool required=false)
 Creates a child QSpinBoxTree tree widget item. More...
 
QTreeWidgetItemcreateQDoubleSpinBoxTreeWidgetItem (const std::string &type, const QString &text, const QString &tooltip, double defaultValue=0.0, double singleStep=0.1, double min=0.0, double max=FLT_MAX, bool required=false)
 Creates a child QDoubleSpinBox tree widget item. More...
 
QTreeWidgetItemcreateQComboBoxTreeWidgetItem (const std::string &type, const QString &text, const QString &tooltip, bool required=false)
 Creates a child QComboBox tree widget item. More...
 
QTreeWidgetItemcreateDtFileBrowseWidgetTreeWidgetItem (const std::string &type, const QString &text, const QString &tooltip, std::string defaultValue="", bool required=false)
 Creates a child DtFileBrowseWidget tree widget item. More...
 
QTreeWidgetItemcreateDtScriptEditorWidgetTreeWidgetItem (const std::string &type, const QString &text, const QString &tooltip, std::string defaultValue="", bool required=false)
 Creates a child DtScriptEditorWidget tree widget item. More...
 
QTreeWidgetItemcreateDtColorPushButtonTreeWidgetItem (const std::string &type, const QString &text, const QString &tooltip, osg::Vec4f defaultValue=osg::Vec4f(255, 255, 255, 255), bool required=false)
 Creates a child DtColorPushButton tree widget item. More...
 
QTreeWidgetItemcreateDtUnitsWidgetTreeWidgetItem (const std::string &type, const QString &text, const QString &tooltip, double defaultValue, const std::string &defaultUnit, bool required=false)
 Creates a child DtUnitsWidget tree widget item. More...
 
QTreeWidgetItemcreateDtVec2WidgetTreeWidgetItem (const std::string &type, const QString &text, const QString &tooltip, osg::Vec2f defaultValue=osg::Vec2f(0, 0), bool required=false)
 Creates a child DtVec2Widget tree widget item. More...
 
QTreeWidgetItemcreateDtVec3WidgetTreeWidgetItem (const std::string &type, const QString &text, const QString &tooltip, osg::Vec3f defaultValue=osg::Vec3f(0, 0, 0), bool required=false)
 Creates a child DtVec3Widget tree widget item. More...
 
QTreeWidgetItemcreateDtVec4WidgetTreeWidgetItem (const std::string &type, const QString &text, const QString &tooltip, osg::Vec4f defaultValue=osg::Vec4f(0, 0, 0, 0), bool required=false)
 Creates a child DtVec4Widget tree widget item. More...
 
DtTerrainEditorPropertyTreeWidgetItemcreateTerrainEditorPropertyTreeWidgetItem (const std::string &type, bool required=false)
 Creates a child DtTerrainEditorPropertyTreeWidgetItem tree widget item. More...
 
DtTerrainEditorPropertyTreeWidgetItemcreateDynamicTerrainEditorPropertyTreeWidgetItem (const std::string &type)
 Creates a dynamic child DtTerrainEditorPropertyTreeWidgetItem tree widget item. More...
 
DtTerrainEditorPropertyTreeWidgetItemcreateDynamicTerrainEditorPropertyTreeWidgetItem (const std::string &type, int index)
 Creates a dynamic child DtTerrainEditorPropertyTreeWidgetItem tree widget item. More...
 
int getDynamicTerrainEditorPropertyTreeWidgetItemCount (const std::string &type)
 Gets the maximum index of dynamic child item. More...
 
void hideChildWidgetItem (const std::string &type)
 Hides a child item. More...
 
bool isChildWidgetItemSet (const std::string &type) const
 Checks whether a child item is visible. More...
 
void clearDynamicAttributesMap ()
 Cleans the dynamic attributes map. More...
 
virtual void getCssSymbolEnum (std::string &css, const std::string &key) const
 Gets the CSS symbol text for a child item with QComboxBox. More...
 
virtual void getCssSymbolString (std::string &css, const std::string &key, const std::string &value) const
 Gets the CSS symbol text for a given key and value pair. More...
 
std::string convertBoolToString (bool value) const
 convenient function for converting a boolean to string("true" or "false"). More...
 

Public Attributes

boost::signal< void(double wind)> signal_groundCoverWindChanged
 Signal emits when the wind speed of the ground cover has been changed. More...
 
boost::signal< void(double
density)> 
signal_groundCoverDensityChanged
 Signal emits when the density of the ground cover has been changed. More...
 
boost::signal< void(double fill)> signal_groundCoverFillChanged
 Signal emits when the fill of the ground cover has been changed. More...
 
boost::signal< void(double
maxDistance)> 
signal_groundCoverMaxDistanceChanged
 Signal emits when the maximum viewing distance of the ground cover has been changed. More...
 

Protected Slots

virtual void on_windDoubleSpinBox_valueChanged (double)
 Qt Slots. More...
 
virtual void on_densityDoubleSpinBox_valueChanged (double)
 Slot when the density of the ground cover has been changed. More...
 
virtual void on_fillDoubleSpinBox_valueChanged (double)
 Slot when the fill of the ground cover has been changed. More...
 
virtual void on_maxDistanceDoubleSpinBox_valueChanged (double)
 Slot when the maximum viewing distance of the ground cover has been changed. More...
 

Protected Member Functions

 DtGroundCoverTreeWidgetItem (QTreeWidget *parentTree, DtDe &de, const DtOsgEarthPropertyItemKey &key)
 Protected Constructor. More...
 

Friends

class DtGroundCoverTreeWidgetItemCreator
 

Additional Inherited Members

- Public Types inherited from makVrv::DtTerrainEditorPropertyTreeWidgetItem
enum  TerrainEditorPropertyDataRole {
  ItemDataType = Qt::UserRole, ItemDataIndex, ItemDataParentType, ItemDataParentIndex,
  ItemContentType, ItemContentId
}
 
typedef
osgEarth::FeatureSource::Options 
FeatureSourceOptions
 
typedef std::pair
< QTreeWidgetItem *, bool
AttributeSetPair
 
typedef std::map
< DtOsgEarthPropertyItemKey,
AttributeSetPair
AttributesMap
 
typedef std::map
< DtOsgEarthPropertyItemKey,
QTreeWidgetItem * > 
DynamicAttributesMap
 
- Static Public Member Functions inherited from makVrv::DtTerrainEditorPropertyTreeWidgetItem
static std::string getTerrainPropertyItemType (QTreeWidgetItem *item)
 Gets the type from the user data stored in QTreeWidgetItem. More...
 
static int getTerrainPropertyItemIndex (QTreeWidgetItem *item)
 Gets the index from the user data stored in QTreeWidgetItem. More...
 
static std::string getTerrainPropertyItemParentType (QTreeWidgetItem *item)
 Gets the parent type from the user data stored in QTreeWidgetItem. More...
 
static int getTerrainPropertyItemParentIndex (QTreeWidgetItem *item)
 Gets the parent index from the user data stored in QTreeWidgetItem. More...
 
static DtOsgEarthPropertyItemKey getDtOsgEarthPropertyItemKey (QTreeWidgetItem *item)
 Gets the key from the user data stored in QTreeWidgetItem. More...
 
- Protected Attributes inherited from makVrv::DtTerrainEditorPropertyTreeWidgetItem
DtDemyDe
 
QTreeWidgetmyParentTree
 
AttributesMap myAttributesMap
 
DynamicAttributesMap myDynamicAttributesMap
 
DtOsgEarthPropertyItemKey myOsgEarthPropertyItemKey
 
DtTerrainEditorInterface::TerrainContentItemKey myTerrainContentItemKey
 
int myTerrainContentType
 
int myTerrainContentId
 

Detailed Description

DtGroundCoverTreeWidgetItem.

Serializable configuration options for a ground cover. osgEarth::Splat::GroundCoverOptions

Constructor & Destructor Documentation

makVrv::DtGroundCoverTreeWidgetItem::DtGroundCoverTreeWidgetItem ( QTreeWidget parentTree,
DtDe de,
const DtOsgEarthPropertyItemKey key 
)
protected

Protected Constructor.

Use DtGroundCoverTreeWidgetItemCreator to create instances of this class

Parameters
parentTreeThe parent tree of this tree widget item.
deDtDe
keyThe key of this DtTerrainEditorPropertyTreeWidgetItem.

Member Function Documentation

virtual void makVrv::DtGroundCoverTreeWidgetItem::setupGui ( )
virtual

Sets up the widgets.

Implements makVrv::DtTerrainEditorPropertyTreeWidgetItem.

virtual void makVrv::DtGroundCoverTreeWidgetItem::connectSignals ( )
virtual

Connects the signals.

Reimplemented from makVrv::DtTerrainEditorPropertyTreeWidgetItem.

virtual void makVrv::DtGroundCoverTreeWidgetItem::setWind ( float  wind)
virtual

Sets the wind speed of the ground cover.

Parameters
windThe wind speed of the ground cover[0..1].
float makVrv::DtGroundCoverTreeWidgetItem::getWind ( ) const

Gets the wind speed of the ground cover.

Returns
The wind speed of the ground cover[0..1].
virtual void makVrv::DtGroundCoverTreeWidgetItem::setDensity ( float  density)
virtual

Sets the density of the ground cover.

Parameters
densityMetric that controls the number of land cover instances will render in a given area. [1..5]
virtual float makVrv::DtGroundCoverTreeWidgetItem::getDensity ( ) const
virtual

Gets the density of the ground cover.

Returns
density Metric that controls the number of land cover instances will render in a given area. [1..5]
virtual void makVrv::DtGroundCoverTreeWidgetItem::setFill ( float  fill)
virtual

Sets the fill of the ground cover.

Parameters
fillPercentage of land that this layer's instances will cover [0..1]. Lower values will result is more "patchiness" of placement.
virtual float makVrv::DtGroundCoverTreeWidgetItem::getFill ( ) const
virtual

Gets the fill of the ground cover.

Returns
Percentage of land that this layer's instances will cover [0..1]. Lower values will result is more "patchiness" of placement.
virtual void makVrv::DtGroundCoverTreeWidgetItem::setMaxDistance ( float  maxDistance)
virtual

Sets the maximum viewing distance of the ground cover.

Parameters
maxDistanceMaximum viewing distance from camera.
virtual float makVrv::DtGroundCoverTreeWidgetItem::getMaxDistance ( ) const
virtual

Sets the maximum viewing distance of the ground cover.

Returns
maxDistance Maximum viewing distance from camera.
virtual void makVrv::DtGroundCoverTreeWidgetItem::on_windDoubleSpinBox_valueChanged ( double  )
protectedvirtualslot

Qt Slots.

Slot when the wind speed of the ground cover has been changed.

virtual void makVrv::DtGroundCoverTreeWidgetItem::on_densityDoubleSpinBox_valueChanged ( double  )
protectedvirtualslot

Slot when the density of the ground cover has been changed.

virtual void makVrv::DtGroundCoverTreeWidgetItem::on_fillDoubleSpinBox_valueChanged ( double  )
protectedvirtualslot

Slot when the fill of the ground cover has been changed.

virtual void makVrv::DtGroundCoverTreeWidgetItem::on_maxDistanceDoubleSpinBox_valueChanged ( double  )
protectedvirtualslot

Slot when the maximum viewing distance of the ground cover has been changed.

Friends And Related Function Documentation

Member Data Documentation

boost::signal<void(double wind)> makVrv::DtGroundCoverTreeWidgetItem::signal_groundCoverWindChanged

Signal emits when the wind speed of the ground cover has been changed.

Parameters
windThe wind speed of the ground cover[0..1].
boost::signal<void(double density)> makVrv::DtGroundCoverTreeWidgetItem::signal_groundCoverDensityChanged

Signal emits when the density of the ground cover has been changed.

Parameters
densityMetric that controls the number of land cover instances will render in a given area. [1..5]
boost::signal<void(double fill)> makVrv::DtGroundCoverTreeWidgetItem::signal_groundCoverFillChanged

Signal emits when the fill of the ground cover has been changed.

Parameters
fillPercentage of land that this layer's instances will cover [0..1]. Lower values will result is more "patchiness" of placement.
boost::signal<void(double maxDistance)> makVrv::DtGroundCoverTreeWidgetItem::signal_groundCoverMaxDistanceChanged

Signal emits when the maximum viewing distance of the ground cover has been changed.

Parameters
maxDistanceMaximum viewing distance from camera.

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)