![]() |
VR-Forces 4.0.4 Class Documentation
|

Signals | |
| void | featureChanged (QTreeWidgetItem *item) |
Public Member Functions | |
| DtTerrainFeaturesList (QWidget *parent) | |
| virtual | ~DtTerrainFeaturesList () |
| virtual void | setTerrainDatabase (const DtTerrainDatabase *db) |
| Sets up the list view to create the list of features and specifications. | |
| virtual void | featureChange (QTreeWidgetItem *item, bool enableItem) |
| virtual bool | init (bool onByDefault=true) |
| Initializes columns. | |
| virtual int | numSpecifications () const |
| Returns the number of items in the myFidList. | |
| virtual void | restoreFeatures () |
| Restores feature list to original values. | |
| virtual void | selectGroup (QString select) |
| Selects the group with the specified feature name. | |
| virtual void | getSelectedSpecifications (QHash< QString, QString > &specifications, bool inverse=false) |
| Fills in the dictionary with the key (specification value) and value (specification label). | |
| virtual void | setSelectedSpecifications (const QHash< QString, QString > &dict, bool inverse=false) |
| Select all items within a group or selected items. | |
| virtual bool | allChildrenSelected (QTreeWidgetItem *item) const |
| Returns true if all children of this partiular item are selected. | |
| virtual bool | showGroup (const QString &group, bool show) |
| Sets to show/hide the feature group. | |
| virtual bool | setFeatureColor (int fid, const QColor &color) |
| Sets the color of the feature item that matches the specified fid group. | |
| virtual bool | showFeature (int fid, bool b) |
| Turns on/off the display of this feature. | |
Protected Slots | |
| virtual void | featureChanged (QTreeWidgetItem *item, int iCol) |
Protected Member Functions | |
| virtual DtFeatureEntry * | createFeatureEntry () |
| Return a new instance of the feature entry class. | |
| virtual QTreeWidgetItem * | addFeatureEntry (const DtSpecificationStringAttribute *group, const DtSpecificationStringAttribute *groupName, int uniqueIdentifier, int iSpecification, DtSpecification &spec) |
| Add the new feature entry to the list box. | |
| virtual QTreeWidgetItem * | createFeatureListEntry (QTreeWidget *parent, const QString &title, DtFeatureEntry *entry, QTreeWidgetItem *after) |
| virtual QTreeWidgetItem * | createFeatureListEntry (QTreeWidgetItem *parent, const QString &title, DtFeatureEntry *entry, QTreeWidgetItem *after) |
| virtual void | restore (QTreeWidgetItem *item) |
| Restores the feature list item to its original state. | |
Protected Attributes | |
| QHash< int, DtFeatureEntry * > | myFidList |
| QHash< QString, QTreeWidgetItem * > | myGroups |
| bool | myOnByDefault |
| DtTerrainFeaturesList::DtTerrainFeaturesList | ( | QWidget * | parent | ) |
| virtual DtTerrainFeaturesList::~DtTerrainFeaturesList | ( | ) | [virtual] |
| virtual void DtTerrainFeaturesList::setTerrainDatabase | ( | const DtTerrainDatabase * | db | ) | [virtual] |
Sets up the list view to create the list of features and specifications.
Reimplemented in DtTerrainFeaturesListEx.
| virtual void DtTerrainFeaturesList::featureChange | ( | QTreeWidgetItem * | item, |
| bool | enableItem | ||
| ) | [virtual] |
| virtual bool DtTerrainFeaturesList::init | ( | bool | onByDefault = true | ) | [virtual] |
Initializes columns.
Reimplemented in DtTerrainFeaturesListEx.
| virtual int DtTerrainFeaturesList::numSpecifications | ( | ) | const [virtual] |
Returns the number of items in the myFidList.
| virtual void DtTerrainFeaturesList::restoreFeatures | ( | ) | [virtual] |
Restores feature list to original values.
| virtual void DtTerrainFeaturesList::selectGroup | ( | QString | select | ) | [virtual] |
Selects the group with the specified feature name.
| virtual void DtTerrainFeaturesList::getSelectedSpecifications | ( | QHash< QString, QString > & | specifications, |
| bool | inverse = false |
||
| ) | [virtual] |
Fills in the dictionary with the key (specification value) and value (specification label).
Note that if all the specifications in a group are selected, only the group name is returned in the dictionary. If inverse is true, return the items that are not selected
| virtual void DtTerrainFeaturesList::setSelectedSpecifications | ( | const QHash< QString, QString > & | dict, |
| bool | inverse = false |
||
| ) | [virtual] |
Select all items within a group or selected items.
If inverse is true, all items that appear in the list will not be selected
| virtual bool DtTerrainFeaturesList::allChildrenSelected | ( | QTreeWidgetItem * | item | ) | const [virtual] |
Returns true if all children of this partiular item are selected.
| virtual bool DtTerrainFeaturesList::showGroup | ( | const QString & | group, |
| bool | show | ||
| ) | [virtual] |
Sets to show/hide the feature group.
Does not commit the changes, but rather just changes internal structures. Returns false if feature group does not exist
| virtual bool DtTerrainFeaturesList::setFeatureColor | ( | int | fid, |
| const QColor & | color | ||
| ) | [virtual] |
Sets the color of the feature item that matches the specified fid group.
Reimplemented in DtTerrainFeaturesListEx.
| virtual bool DtTerrainFeaturesList::showFeature | ( | int | fid, |
| bool | b | ||
| ) | [virtual] |
Turns on/off the display of this feature.
| void DtTerrainFeaturesList::featureChanged | ( | QTreeWidgetItem * | item | ) | [signal] |
| virtual void DtTerrainFeaturesList::featureChanged | ( | QTreeWidgetItem * | item, |
| int | iCol | ||
| ) | [protected, virtual, slot] |
| virtual DtFeatureEntry* DtTerrainFeaturesList::createFeatureEntry | ( | ) | [protected, virtual] |
Return a new instance of the feature entry class.
| virtual QTreeWidgetItem* DtTerrainFeaturesList::addFeatureEntry | ( | const DtSpecificationStringAttribute * | group, |
| const DtSpecificationStringAttribute * | groupName, | ||
| int | uniqueIdentifier, | ||
| int | iSpecification, | ||
| DtSpecification & | spec | ||
| ) | [protected, virtual] |
Add the new feature entry to the list box.
Reimplemented in DtTerrainFeaturesListEx.
| virtual QTreeWidgetItem* DtTerrainFeaturesList::createFeatureListEntry | ( | QTreeWidget * | parent, |
| const QString & | title, | ||
| DtFeatureEntry * | entry, | ||
| QTreeWidgetItem * | after | ||
| ) | [protected, virtual] |
| virtual QTreeWidgetItem* DtTerrainFeaturesList::createFeatureListEntry | ( | QTreeWidgetItem * | parent, |
| const QString & | title, | ||
| DtFeatureEntry * | entry, | ||
| QTreeWidgetItem * | after | ||
| ) | [protected, virtual] |
| virtual void DtTerrainFeaturesList::restore | ( | QTreeWidgetItem * | item | ) | [protected, virtual] |
Restores the feature list item to its original state.
Reimplemented in DtTerrainFeaturesListEx.
QHash<int, DtFeatureEntry*> DtTerrainFeaturesList::myFidList [protected] |
QHash<QString, QTreeWidgetItem*> DtTerrainFeaturesList::myGroups [protected] |
bool DtTerrainFeaturesList::myOnByDefault [protected] |