VR-Forces 4.1 Class Documentation
List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtVectorNetworkTreeWidget Class Reference

The vector network tree widget displays the tree representing vector network loaded from feature layers. More...

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

Public Member Functions

 DtVectorNetworkTreeWidget (DtDe &de, QWidget *parent)
 CTOR.
virtual ~DtVectorNetworkTreeWidget ()
 DTOR.
virtual void addLayer (const std::string &layerName)
 Call to add a feature layer to the gui.
virtual void removeLayer (const std::string &layerName)
 Call to remove a feature layer to the gui.
virtual void showLayer (const std::string &layerName)
 Call to show a layer in the gui.
virtual void hideLayer (const std::string &layerName)
 Call to hide a layer in the gui.
virtual void addPointFeature (DtElementID id, const std::string &layerName, unsigned int index, DFAD::FeatureID feature, const DtFaccCode &code)
 Call to add a point feature to the gui.
virtual void addLinearFeature (DtElementID id, const std::string &layerName, unsigned int index, DFAD::FeatureID feature, const DtFaccCode &code)
 Call to add a point feature to the gui.
virtual void addArealFeature (DtElementID id, const std::string &layerName, unsigned int index, DFAD::FeatureID feature, const DtFaccCode &code)
 Call to add a point feature to the gui.
virtual void removeFeature (DtElementID id)
 Call to remove a point feature to the gui.
virtual void setFeatureSelected (DtElementID id, bool selected)
 Call to select/deselect a point feature in the gui.
virtual void finishedAdding ()
 Call this function after adding new contents.
- Public Member Functions inherited from makVrv::DtVectorNetworkTreeInterface
 DtVectorNetworkTreeInterface ()
virtual ~DtVectorNetworkTreeInterface ()

Protected Types

enum  FeatureType { Point, Linear, Areal }
typedef boost::unordered_map
< QTreeWidgetItem *, QList
< QTreeWidgetItem * > > 
ToAddMap

Protected Member Functions

virtual void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 Override default version.
QTreeWidgetItemlayerRoot (const std::string &layerName)
QTreeWidgetItemfeatureTypeRoot (const std::string &layerName, FeatureType type)
QTreeWidgetItemfindFeatureItem (DtElementID id) const

Protected Attributes

ToAddMap myItemsToAdd
DtVectorNetworkTreeLogicmyLogic

Additional Inherited Members

- Public Attributes inherited from makVrv::DtVectorNetworkTreeInterface
boost::signal< void()> signal_refresh
 Signal to the logic to resend all data to the gui.
boost::signal< void(DtElementID
id, bool selection)> 
signal_featureSelectionChanged
 Signal to the logic that a point was selected.

Detailed Description

The vector network tree widget displays the tree representing vector network loaded from feature layers.

Member Typedef Documentation

Member Enumeration Documentation

Enumerator:
Point 
Linear 
Areal 

Constructor & Destructor Documentation

makVrv::DtVectorNetworkTreeWidget::DtVectorNetworkTreeWidget ( DtDe de,
QWidget parent 
)

CTOR.

virtual makVrv::DtVectorNetworkTreeWidget::~DtVectorNetworkTreeWidget ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtVectorNetworkTreeWidget::addLayer ( const std::string &  layerName)
virtual

Call to add a feature layer to the gui.

Implements makVrv::DtVectorNetworkTreeInterface.

virtual void makVrv::DtVectorNetworkTreeWidget::removeLayer ( const std::string &  layerName)
virtual

Call to remove a feature layer to the gui.

Implements makVrv::DtVectorNetworkTreeInterface.

virtual void makVrv::DtVectorNetworkTreeWidget::showLayer ( const std::string &  layerName)
virtual

Call to show a layer in the gui.

Implements makVrv::DtVectorNetworkTreeInterface.

virtual void makVrv::DtVectorNetworkTreeWidget::hideLayer ( const std::string &  layerName)
virtual

Call to hide a layer in the gui.

Implements makVrv::DtVectorNetworkTreeInterface.

virtual void makVrv::DtVectorNetworkTreeWidget::addPointFeature ( DtElementID  id,
const std::string &  layerName,
unsigned int  index,
DFAD::FeatureID  feature,
const DtFaccCode code 
)
virtual

Call to add a point feature to the gui.

Implements makVrv::DtVectorNetworkTreeInterface.

virtual void makVrv::DtVectorNetworkTreeWidget::addLinearFeature ( DtElementID  id,
const std::string &  layerName,
unsigned int  index,
DFAD::FeatureID  feature,
const DtFaccCode code 
)
virtual

Call to add a point feature to the gui.

Implements makVrv::DtVectorNetworkTreeInterface.

virtual void makVrv::DtVectorNetworkTreeWidget::addArealFeature ( DtElementID  id,
const std::string &  layerName,
unsigned int  index,
DFAD::FeatureID  feature,
const DtFaccCode code 
)
virtual

Call to add a point feature to the gui.

Implements makVrv::DtVectorNetworkTreeInterface.

virtual void makVrv::DtVectorNetworkTreeWidget::removeFeature ( DtElementID  id)
virtual

Call to remove a point feature to the gui.

Implements makVrv::DtVectorNetworkTreeInterface.

virtual void makVrv::DtVectorNetworkTreeWidget::setFeatureSelected ( DtElementID  id,
bool  selected 
)
virtual

Call to select/deselect a point feature in the gui.

Implements makVrv::DtVectorNetworkTreeInterface.

virtual void makVrv::DtVectorNetworkTreeWidget::finishedAdding ( )
virtual

Call this function after adding new contents.

Implements makVrv::DtVectorNetworkTreeInterface.

virtual void makVrv::DtVectorNetworkTreeWidget::selectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
protectedvirtual

Override default version.

QTreeWidgetItem& makVrv::DtVectorNetworkTreeWidget::layerRoot ( const std::string &  layerName)
protected
QTreeWidgetItem& makVrv::DtVectorNetworkTreeWidget::featureTypeRoot ( const std::string &  layerName,
FeatureType  type 
)
protected
QTreeWidgetItem* makVrv::DtVectorNetworkTreeWidget::findFeatureItem ( DtElementID  id) const
protected

Member Data Documentation

ToAddMap makVrv::DtVectorNetworkTreeWidget::myItemsToAdd
protected
DtVectorNetworkTreeLogic* makVrv::DtVectorNetworkTreeWidget::myLogic
protected

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)