VR-Forces 4.0.4 Class Documentation
Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
DtTerrainFeaturesList Class Reference
Inheritance diagram for DtTerrainFeaturesList:
Inheritance graph
[legend]

List of all members.

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 DtFeatureEntrycreateFeatureEntry ()
 Return a new instance of the feature entry class.
virtual QTreeWidgetItemaddFeatureEntry (const DtSpecificationStringAttribute *group, const DtSpecificationStringAttribute *groupName, int uniqueIdentifier, int iSpecification, DtSpecification &spec)
 Add the new feature entry to the list box.
virtual QTreeWidgetItemcreateFeatureListEntry (QTreeWidget *parent, const QString &title, DtFeatureEntry *entry, QTreeWidgetItem *after)
virtual QTreeWidgetItemcreateFeatureListEntry (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

Constructor & Destructor Documentation


Member Function Documentation

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

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.

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.


Member Data Documentation

QHash<QString, QTreeWidgetItem*> DtTerrainFeaturesList::myGroups [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)