12 #ifndef DTTERRAINMODELDATA_H_
13 #define DTTERRAINMODELDATA_H_
18 #include <QtCore/QHash>
20 class DtNetworkElement;
21 class DtNetworkSpecElement;
28 const DtNetworkElement* element()
const;
29 void setNetworkElement(
const DtNetworkElement*);
45 void activateAll(
bool b);
47 void setOn(
const DtNetworkElement* element,
bool onOff);
48 bool segmentActive(
const DtNetworkElement*)
const;
52 const QVector<DtPoint>& points()
const;
56 void setPoints(
const QVector<DtPoint>&);
61 void setElement(
const DtNetworkSpecElement*);
62 const DtNetworkSpecElement* element()
const;
82 virtual void activateAll(
bool);
84 virtual bool pruneInactiveVectorFeatures();
87 virtual bool active()
const;
96 virtual void activateSegment(
const DtNetworkSpecElement* parent,
const DtNetworkElement* segment);
97 virtual void deactivateSegment(
const DtNetworkSpecElement* parent,
const DtNetworkElement* segment);
98 virtual bool segmentActive(
const DtNetworkSpecElement* parent,
const DtNetworkElement* segment)
const;
100 void setIsPoint(
bool b);
101 bool isPoint()
const;
102 int numElements()
const;
103 const QHash<void*, DtSegmentList>& vectorFeatures()
const;
104 QHash<void*, DtSegmentList>& vectorFeatures();
113 void copyList(
const QHash<void*, DtSegmentList>&);
114 virtual DtSegmentList& segmentList(
const DtNetworkSpecElement* parent);
115 virtual void setOn(
DtSegmentList& list,
const DtNetworkElement* segment,
bool onOff);
202 #endif //DTTERRAINMODELDATA_H_