VR-Forces 4.6 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 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)