VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtVectorNetworkTreeWidget.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: $ $Revision: $ $State: $
7 ******************************************************************************/
8 
12 
13 #pragma once
15 #include <QtWidgets/QTreeWidget>
16 #include <boost/unordered_map.hpp>
17 
18 namespace makVrv
19 {
20  class DtVectorNetworkTreeLogic;
21 
27  {
28  Q_OBJECT
29 
30  public:
31 
33  DtVectorNetworkTreeWidget(DtDe& de, QWidget* parent);
34 
36  virtual ~DtVectorNetworkTreeWidget();
37 
38  virtual void addLayer(const std::string& layerName);
39  virtual void removeLayer(const std::string& layerName);
40  virtual void showLayer(const std::string& layerName);
41  virtual void hideLayer(const std::string& layerName);
42 
43  virtual void addPointFeature(DtElementID id, const std::string& layerName,
44  unsigned int index, DFAD::FeatureID feature, const DtFaccCode& code);
45 
46  virtual void addLinearFeature(DtElementID id,const std::string& layerName,
47  unsigned int index, DFAD::FeatureID feature, const DtFaccCode& code);
48 
49  virtual void addArealFeature(DtElementID id, const std::string& layerName,
50  unsigned int index, DFAD::FeatureID feature, const DtFaccCode& code);
51 
52  virtual void removeFeature(DtElementID id);
53 
54  virtual void setFeatureSelected(DtElementID id, bool selected);
55 
56  virtual void finishedAdding();
57 
58  protected:
59 
61  virtual void selectionChanged( const QItemSelection& selected,
62  const QItemSelection& deselected );
63 
64  protected:
65 
67  {
70  Areal
71  };
72 
73  QTreeWidgetItem& layerRoot(const std::string& layerName);
74  QTreeWidgetItem& featureTypeRoot(const std::string& layerName,FeatureType type);
75  QTreeWidgetItem* findFeatureItem(DtElementID id) const;
76  protected:
77  typedef boost::unordered_map<QTreeWidgetItem*, QList<QTreeWidgetItem*> > ToAddMap;
80  };
81 }
82 
unsigned int FeatureID
Definition: DtFeature.h:24
DtVectorNetworkTreeLogic * myLogic
Definition: DtVectorNetworkTreeWidget.h:79
The vector network tree widget displays the tree representing vector network loaded from feature laye...
Definition: DtVectorNetworkTreeWidget.h:25
Definition: DtVectorNetworkTreeWidget.h:68
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
A data type which represents a FACC code.
Definition: DtFaccCode.h:22
The logic for populating the DtVectorNetworkTreeWidget.
Definition: DtVectorNetworkTreeLogic.h:25
DtUniqueID DtElementID
The ElementID is a specific type of unique ID used to represent VR-Vantage uniquely defined elements...
Definition: DtUniqueID.h:26
FeatureType
Definition: DtVectorNetworkTreeWidget.h:66
The interface used by the DtVectorNetworkTreeWidget and the DtVectorNetworkTreeLogic.
Definition: DtVectorNetworkTreeInterface.h:24
boost::unordered_map< QTreeWidgetItem *, QList< QTreeWidgetItem * > > ToAddMap
Definition: DtVectorNetworkTreeWidget.h:77
Definition: DtVectorNetworkTreeWidget.h:69
Contains makVrv::DtVectorNetworkTreeInterface class.
ToAddMap myItemsToAdd
Definition: DtVectorNetworkTreeWidget.h:78
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69

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)