VR-Forces 5.0.3 Developer's Guide
 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 
9 
10 #pragma once
12 #include <QtWidgets/QTreeWidget>
13 #include <boost/unordered_map.hpp>
14 
15 namespace makVrv
16 {
17  class DtVectorNetworkTreeLogic;
18 
24  {
25  Q_OBJECT
26 
27  public:
28 
30  DtVectorNetworkTreeWidget(DtDe& de, QWidget* parent);
31 
33  virtual ~DtVectorNetworkTreeWidget();
34 
35  virtual void addLayer(const std::string& layerName);
36  virtual void removeLayer(const std::string& layerName);
37  virtual void showLayer(const std::string& layerName);
38  virtual void hideLayer(const std::string& layerName);
39 
40  virtual void addPointFeature(DtElementID id, const std::string& layerName,
41  unsigned int index, DFAD::FeatureID feature, const DtFaccCode& code);
42 
43  virtual void addLinearFeature(DtElementID id,const std::string& layerName,
44  unsigned int index, DFAD::FeatureID feature, const DtFaccCode& code);
45 
46  virtual void addArealFeature(DtElementID id, const std::string& layerName,
47  unsigned int index, DFAD::FeatureID feature, const DtFaccCode& code);
48 
49  virtual void removeFeature(DtElementID id);
50 
51  virtual void setFeatureSelected(DtElementID id, bool selected);
52 
53  virtual void finishedAdding();
54 
55  protected:
56 
58  virtual void selectionChanged( const QItemSelection& selected,
59  const QItemSelection& deselected );
60 
61  protected:
62 
64  {
67  Areal
68  };
69 
70  QTreeWidgetItem& layerRoot(const std::string& layerName);
71  QTreeWidgetItem& featureTypeRoot(const std::string& layerName,FeatureType type);
72  QTreeWidgetItem* findFeatureItem(DtElementID id) const;
73  protected:
74  typedef boost::unordered_map<QTreeWidgetItem*, QList<QTreeWidgetItem*> > ToAddMap;
77  };
78 }
79 
unsigned int FeatureID
Definition: DtFeature.h:21
DtVectorNetworkTreeLogic * myLogic
Definition: DtVectorNetworkTreeWidget.h:76
The vector network tree widget displays the tree representing vector network loaded from feature laye...
Definition: DtVectorNetworkTreeWidget.h:22
Definition: DtVectorNetworkTreeWidget.h:65
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
A data type which represents a FACC code.
Definition: DtFaccCode.h:19
The logic for populating the DtVectorNetworkTreeWidget.
Definition: DtVectorNetworkTreeLogic.h:22
FeatureType
Definition: DtVectorNetworkTreeWidget.h:63
The interface used by the DtVectorNetworkTreeWidget and the DtVectorNetworkTreeLogic.
Definition: DtVectorNetworkTreeInterface.h:21
boost::unordered_map< QTreeWidgetItem *, QList< QTreeWidgetItem * > > ToAddMap
Definition: DtVectorNetworkTreeWidget.h:74
Definition: DtVectorNetworkTreeWidget.h:66
Contains makVrv::DtVectorNetworkTreeInterface class.
ToAddMap myItemsToAdd
Definition: DtVectorNetworkTreeWidget.h:75
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)