Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNETAZRelData.cpp
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
18// class for TAZ relation data
19/****************************************************************************/
20
21#include <netedit/GNENet.h>
23#include <netedit/GNEUndoList.h>
24#include <netedit/GNEViewNet.h>
32
33#include "GNETAZRelData.h"
34#include "GNEDataInterval.h"
35
36// ===========================================================================
37// member method definitions
38// ===========================================================================
39
42 myLastWidth(0) {
43}
44
45
47 const Parameterised::Map& parameters) :
48 GNEGenericData(SUMO_TAG_TAZREL, dataIntervalParent, parameters),
49 myLastWidth(0) {
50 // set parents
51 setParents<GNEAdditional*>({fromTAZ, toTAZ});
52}
53
54
56 const Parameterised::Map& parameters) :
57 GNEGenericData(SUMO_TAG_TAZREL, dataIntervalParent, parameters),
58 myLastWidth(0) {
59 // set parents
60 setParent<GNEAdditional*>(TAZ);
61}
62
63
65
66
69 RGBColor color;
72 } else {
73 if (!setFunctionalColor(s.dataColorer.getActive(), color)) {
74 double val = getColorValue(s, s.dataColorer.getActive());
75 color = s.dataColorer.getScheme().getColor(val);
76 }
77 }
78 return color;
79}
80
81
82double
83GNETAZRelData::getColorValue(const GUIVisualizationSettings& s, int activeScheme) const {
84 switch (activeScheme) {
85 case 0:
86 return 0;
87 case 1:
89 case 2:
90 return 0; // setfunctional color const GNEAdditional* TAZA = getParentAdditionals().front();
91 case 3:
92 return 0; // setfunctional color const GNEAdditional* TAZA = getParentAdditionals().back();
93 case 4:
94 // by numerical attribute value
95 try {
98 } else {
100 }
101 } catch (NumberFormatException&) {
103 }
104
105 }
106 return 0;
107
108}
109
110
111bool
113 // obtain pointer to TAZ data frame (only for code legibly)
114 const GNETAZRelDataFrame* TAZRelDataFrame = myNet->getViewNet()->getViewParent()->getTAZRelDataFrame();
115 // get current data edit mode
117 // check if we have to filter generic data
118 if ((dataMode == DataEditMode::DATA_INSPECT) || (dataMode == DataEditMode::DATA_DELETE) || (dataMode == DataEditMode::DATA_SELECT)) {
119 return /*isVisibleInspectDeleteSelect()*/ true;
120 } else if (TAZRelDataFrame->shown()) {
121 // check interval
122 if ((TAZRelDataFrame->getIntervalSelector()->getDataInterval() != nullptr) &&
123 (TAZRelDataFrame->getIntervalSelector()->getDataInterval() != myDataIntervalParent)) {
124 return false;
125 }
126 // check attribute
127 if ((TAZRelDataFrame->getAttributeSelector()->getFilteredAttribute().size() > 0) &&
128 (getParametersMap().count(TAZRelDataFrame->getAttributeSelector()->getFilteredAttribute()) == 0)) {
129 return false;
130 }
131 // all checks ok, then return true
132 return true;
133 } else {
134 // GNETAZRelDataFrame hidden, then return false
135 return false;
136 }
137}
138
139
140void
142 // remove from grid
144 // get both TAZs
145 const GNEAdditional* TAZA = getParentAdditionals().front();
146 const GNEAdditional* TAZB = getParentAdditionals().back();
147 // check if this is the same TAZ
148 if (TAZA == TAZB) {
149 // declare ring
150 PositionVector ring;
151 // declare first point
152 std::pair<double, double> p1 = GLHelper::getCircleCoords().at(GLHelper::angleLookup(0));
153 // add 8 segments
154 for (int i = 0; i <= 8; ++i) {
155 const std::pair<double, double>& p2 = GLHelper::getCircleCoords().at(GLHelper::angleLookup(0 + i * 45));
156 // make al line between 0,0 and p2
157 PositionVector line = {Position(), Position(p2.first, p2.second)};
158 // extrapolate
159 line.extrapolate(3, false, true);
160 // add line back to ring
161 ring.push_back(line.back());
162 // update p1
163 p1 = p2;
164 }
165 // make a copy of ring
166 PositionVector ringCenter = ring;
167 // move ring to first geometry point
168 ring.add(TAZA->getAdditionalGeometry().getShape().front());
170 // move ringCenter to center
171 ringCenter.add(TAZA->getAttributePosition(SUMO_ATTR_CENTER));
173 } else {
174 // calculate line between to TAZ centers
176 // check line
177 if (line.length() < 1) {
179 }
180 // add offset to line
181 line.move2side(0.5 + myLastWidth);
182 // calculate middle point
183 const Position middlePoint = line.getLineCenter();
184 // get closest points to middlePoint
187 // check positions
188 if (posA == Position::INVALID) {
189 posA = TAZA->getAdditionalGeometry().getShape().front();
190 }
191 if (posB == Position::INVALID) {
192 posB = TAZB->getAdditionalGeometry().getShape().front();
193 }
194 // update geometry
195 if (posA.distanceTo(posB) < 1) {
196 myTAZRelGeometry.updateGeometry({posA - 0.5, posB + 0.5});
197 } else {
198 myTAZRelGeometry.updateGeometry({posA, posB});
199 }
200 // update center geometry
202 }
203 // add into grid again
205}
206
207
210 return getParentAdditionals().front()->getAttributePosition(SUMO_ATTR_CENTER);
211}
212
213
214void
216 // open device
217 device.openTag(SUMO_TAG_TAZREL);
218 // write from
220 // write to
222 // iterate over attributes
223 for (const auto& attribute : getParametersMap()) {
224 // write attribute (don't use writeParams)
225 device.writeAttr(attribute.first, attribute.second);
226 }
227 // close device
228 device.closeTag();
229}
230
231
232bool
234 return true;
235}
236
237
238std::string
240 return "";
241}
242
243
244void
246 throw InvalidArgument(getTagStr() + " cannot fix any problem");
247}
248
249
250void
252 // draw boundaries
254 // draw TAZRels
255 if (drawTAZRel()) {
256 // get detail level
257 const auto d = s.getDetailLevel(1);
258 // draw geometry only if we'rent in drawForObjectUnderCursor mode
260 const auto& color = setColor(s);
261 // get flag for only draw contour
262 const bool onlyDrawContour = !isGenericDataVisible();
263 // push matrix
265 // translate to front
266 drawInLayer(GLO_TAZ + 1);
267 GLHelper::setColor(color);
268 // check if update lastWidth
269 const double width = onlyDrawContour ? 0.1 : 0.5 * s.tazRelWidthExaggeration;
270 if (width != myLastWidth) {
271 myLastWidth = width;
272 }
273 // draw geometry
274 if (onlyDrawContour) {
275 // draw depending of TAZRelDrawing
278 } else {
280 }
281 } else {
282 // draw depending of TAZRelDrawing
285 GUIGeometry::drawGeometry(d, geom, width);
287 *(geom.getShape().end() - 2),
288 *(geom.getShape().end() - 1),
289 1.5 + width, 1.5 + width, 0.5 + width);
290 }
291 // pop matrix
293 // draw dotted contour
295 }
297 // calculate contour and draw dotted geometry
299 0.5, 1, true, true, 0, nullptr, nullptr);
300 } else {
301 // calculate contour and draw dotted geometry
303 0.5, 1, true, true, 0, nullptr, nullptr);
304 }
305 }
306}
307
308
309bool
310GNETAZRelData::setFunctionalColor(int activeScheme, RGBColor& col) const {
311 switch (activeScheme) {
312 case 2: { // origin taz
313 const GNETAZ* from = dynamic_cast<const GNETAZ*>(getParentAdditionals().front());
314 col = from->getShapeColor();
315 return true;
316 }
317 case 3: { // destination taz
318 const GNETAZ* to = dynamic_cast<const GNETAZ*>(getParentAdditionals().back());
319 col = to->getShapeColor();
320 return true;
321 }
322 default:
323 return false;
324 }
325}
326
327void
329 // nothing to compute
330}
331
332
333void
334GNETAZRelData::drawLanePartialGL(const GUIVisualizationSettings& /*s*/, const GNESegment* /*segment*/, const double /*offsetFront*/) const {
335 // nothing to draw
336}
337
338
339void
340GNETAZRelData::drawJunctionPartialGL(const GUIVisualizationSettings& /*s*/, const GNESegment* /*segment*/, const double /*offsetFront*/) const {
341 // nothing to draw
342}
343
344
345GNELane*
347 return nullptr;
348}
349
350
351GNELane*
353 return nullptr;
354}
355
356
359 Boundary b;
360 // add two shapes
363 b.grow(20);
364 return b;
365}
366
367
368std::string
370 switch (key) {
371 case SUMO_ATTR_ID:
372 if (getParentAdditionals().size() == 1) {
373 return getPartialID() + getParentAdditionals().front()->getID();
374 } else {
375 return getPartialID() + (getParentAdditionals().front()->getID() + "->" + getParentAdditionals().back()->getID());
376 }
377 case SUMO_ATTR_FROM:
378 return getParentAdditionals().front()->getID();
379 case SUMO_ATTR_TO:
380 return getParentAdditionals().back()->getID();
381 case GNE_ATTR_DATASET:
383 case SUMO_ATTR_BEGIN:
385 case SUMO_ATTR_END:
387 default:
388 return getCommonAttribute(this, key);
389 }
390}
391
392
393double
395 throw InvalidArgument(getTagStr() + " doesn't have a double attribute of type '" + toString(key) + "'");
396}
397
398
399void
400GNETAZRelData::setAttribute(SumoXMLAttr key, const std::string& value, GNEUndoList* undoList) {
401 if (value == getAttribute(key)) {
402 return; //avoid needless changes, later logic relies on the fact that attributes have changed
403 }
404 switch (key) {
405 case SUMO_ATTR_FROM:
406 case SUMO_ATTR_TO:
407 GNEChange_Attribute::changeAttribute(this, key, value, undoList);
408 break;
409 default:
410 setCommonAttribute(key, value, undoList);
411 break;
412 }
413}
414
415
416bool
417GNETAZRelData::isValid(SumoXMLAttr key, const std::string& value) {
418 switch (key) {
419 case SUMO_ATTR_FROM:
420 case SUMO_ATTR_TO:
421 return SUMOXMLDefinitions::isValidNetID(value) &&
422 (myNet->getAttributeCarriers()->retrieveAdditional(SUMO_TAG_TAZ, value, false) != nullptr);
423 default:
424 return isCommonValid(key, value);
425 }
426}
427
428
430 switch (key) {
431 case SUMO_ATTR_ID:
432 return false;
433 default:
434 return true;
435 }
436}
437
438
439std::string
441 return getTagStr();
442}
443
444
445std::string
447 if (getParentAdditionals().size() == 1) {
448 return getTagStr() + ": " + getParentAdditionals().front()->getID();
449 } else {
450 return getTagStr() + ": " + getParentAdditionals().front()->getID() + "->" + getParentAdditionals().back()->getID();
451 }
452}
453
454
455bool
457 const auto& inspectedElements = myNet->getViewNet()->getInspectedElements();
458 // first check supermode
460 return false;
461 }
462 // check TAZRelFrame
463 if (myNet->getViewNet()->getViewParent()->getTAZRelDataFrame()->shown()) {
464 // check dataSet
466 if (dataSet && (myDataIntervalParent->getDataSetParent() != dataSet)) {
467 return false;
468 }
469 // check interval
471 if (dataInterval && (myDataIntervalParent != dataInterval)) {
472 return false;
473 }
474 }
475 // check if both draw TAZRel checkBox are disabled
477 return false;
478 }
479 // check if we're inspecting a TAZ
481 inspectedElements.isInspectingSingleElement() && (inspectedElements.getFirstAC()->getTagProperty()->getTag() == SUMO_TAG_TAZ)) {
482 // ignore TAZRels with one TAZParent
483 if (getParentAdditionals().size() == 2) {
484 if ((getParentAdditionals().front() == inspectedElements.getFirstAC()) &&
486 return true;
487 } else if ((getParentAdditionals().back() == inspectedElements.getFirstAC()) &&
489 return true;
490 } else {
491 return false;
492 }
493 }
494 }
495 return true;
496}
497
498
499void
500GNETAZRelData::setAttribute(SumoXMLAttr key, const std::string& value) {
501 switch (key) {
502 case SUMO_ATTR_FROM: {
503 // replace first TAZ Parent
504 replaceParentTAZElement(0, value);
505 // update geometry
507 break;
508 }
509 case SUMO_ATTR_TO: {
510 // replace second TAZ Parent
511 replaceParentTAZElement(1, value);
512 // update geometry
514 break;
515 }
516 default:
517 setCommonAttribute(this, key, value);
518 if (!isTemplate()) {
520 }
521 break;
522 }
523 // mark interval toolbar for update
525}
526
527/****************************************************************************/
DataEditMode
enum for data edit modes
@ DATA_SELECT
mode for selecting data elements
@ DATA_INSPECT
mode for inspecting data elements
@ DATA_DELETE
mode for deleting data elements
@ GLO_TAZ
Traffic Assignment Zones (TAZs)
@ SUMO_TAG_TAZ
a traffic assignment zone
@ SUMO_TAG_TAZREL
a relation between two TAZs
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
@ SUMO_ATTR_BEGIN
weights: time range begin
@ SUMO_ATTR_CENTER
@ SUMO_ATTR_TO
@ SUMO_ATTR_FROM
@ SUMO_ATTR_END
weights: time range end
@ GNE_ATTR_DATASET
data set of a generic data
@ SUMO_ATTR_ID
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
Definition ToString.h:46
A class that stores a 2D geometrical boundary.
Definition Boundary.h:39
void add(double x, double y, double z=0)
Makes the boundary include the given coordinate.
Definition Boundary.cpp:75
Boundary & grow(double by)
extends the boundary by the given amount
Definition Boundary.cpp:340
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
Definition GLHelper.cpp:653
static void drawTriangleAtEnd(const Position &p1, const Position &p2, double tLength, double tWidth, const double extraOffset=0)
Draws a triangle at the end of the given line.
Definition GLHelper.cpp:628
static int angleLookup(double angleDeg)
normalize angle for lookup in myCircleCoords
Definition GLHelper.cpp:110
static void popMatrix()
pop matrix
Definition GLHelper.cpp:135
static void drawBoundary(const GUIVisualizationSettings &s, const Boundary &b)
Draw a boundary (used for debugging)
Definition GLHelper.cpp:957
static const std::vector< std::pair< double, double > > & getCircleCoords()
Storage for precomputed sin/cos-values describing a circle.
Definition GLHelper.cpp:96
static void pushMatrix()
push matrix
Definition GLHelper.cpp:122
virtual Position getAttributePosition(SumoXMLAttr key) const
const GUIGeometry & getAdditionalGeometry() const
obtain additional geometry
const std::string getID() const
get ID (all Attribute Carriers have one)
bool isAttributeCarrierSelected() const
check if attribute carrier is selected
std::string getCommonAttribute(const Parameterised *parameterised, SumoXMLAttr key) const
void setCommonAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
const std::string & getTagStr() const
get tag assigned to this object in string format
bool isTemplate() const
check if this AC is template
void drawInLayer(const double typeOrLayer, const double extraOffset=0) const
draw element in the given layer, or in front if corresponding flag is enabled
GNENet * myNet
pointer to net
bool isCommonValid(SumoXMLAttr key, const std::string &value) const
static void changeAttribute(GNEAttributeCarrier *AC, SumoXMLAttr key, const std::string &value, GNEUndoList *undoList, const bool force=false)
change attribute
void calculateContourExtrudedShape(const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GUIGlObject *glObject, const PositionVector &shape, const double layer, const double extrusionWidth, const double scale, const bool closeFirstExtrem, const bool closeLastExtrem, const double offset, const GNESegment *segment, const GUIGlObject *boundaryParent, const bool addToSelectedObjects=true) const
calculate contour extruded (used in elements formed by a central shape)
bool drawDottedContours(const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GNEAttributeCarrier *AC, const double lineWidth, const bool addOffset) const
draw dotted contours (basics, select, delete, inspect...)
std::string getAttribute(SumoXMLAttr key) const
GNEDataSet * getDataSetParent() const
Returns a pointer to GNEDataSet parent.
void updateAttributeColors()
update attribute colors deprecated
std::string getFilteredAttribute() const
get filtered attribute
GNEDataSet * getDataSet() const
get current select data set ID
GNEDataInterval * getDataInterval() const
get current select data set ID
const AttributeSelector * getAttributeSelector() const
getattribute selector modul
const DataSetSelector * getDataSetSelector() const
get dataSet selector modul
const IntervalSelector * getIntervalSelector() const
get interval selector modul
GNEDataInterval * myDataIntervalParent
dataInterval Parent
std::string getPartialID() const
get partial ID
void replaceParentTAZElement(const int index, const std::string &value)
replace the first parent TAZElement
const GNEHierarchicalContainerParents< GNEAdditional * > & getParentAdditionals() const
get parent additionals
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
Definition GNELane.h:46
GNEAdditional * retrieveAdditional(SumoXMLTag type, const std::string &id, bool hardFail=true) const
Returns the named additional.
A NBNetBuilder extended by visualisation and editing capabilities.
Definition GNENet.h:42
void addGLObjectIntoGrid(GNEAttributeCarrier *AC)
add GL Object into net
Definition GNENet.cpp:1443
void removeGLObjectFromGrid(GNEAttributeCarrier *AC)
add GL Object into net
Definition GNENet.cpp:1453
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
Definition GNENet.cpp:147
GNEViewNet * getViewNet() const
get view net
Definition GNENet.cpp:2195
bool isGenericDataValid() const
check if current data set is valid to be written into XML (by default true, can be reimplemented in c...
RGBColor setColor(const GUIVisualizationSettings &s) const
get TAZ rel data color
void writeGenericData(OutputDevice &device) const
write data set element into a xml file
GNETAZRelData(GNENet *net)
default Constructor
void drawLanePartialGL(const GUIVisualizationSettings &s, const GNESegment *segment, const double offsetFront) const
Draws partial object over lane.
Boundary getCenteringBoundary() const
GNEContour myTAZRelDataContour
variable used for draw contours
GUIGeometry myTAZRelGeometry
Geometry for TAZRel data.
void drawJunctionPartialGL(const GUIVisualizationSettings &s, const GNESegment *segment, const double offsetFront) const
Draws partial object over junction.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform data set changes
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
bool isGenericDataVisible() const
check if current TAZ rel data is visible
GNELane * getLastPathLane() const
get last path lane
std::string getGenericDataProblem() const
return a string with the current data set problem (by default empty, can be reimplemented in children...
std::string getAttribute(SumoXMLAttr key) const
double getColorValue(const GUIVisualizationSettings &s, int activeScheme) const
void updateGeometry()
update pre-computed geometry information
Position getPositionInView() const
Returns element position in view.
GNELane * getFirstPathLane() const
get first path lane
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
GUIGeometry myTAZRelGeometryCenter
Geometry for TAZRel data (center)
void fixGenericDataProblem()
fix data set problem (by default throw an exception, has to be reimplemented in children)
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
bool drawTAZRel() const
check draw conditions
bool isAttributeEnabled(SumoXMLAttr key) const
double myLastWidth
TAZRel data width.
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
double getAttributeDouble(SumoXMLAttr key) const
bool setFunctionalColor(int activeScheme, RGBColor &col) const
sets the color according to the current scheme index and some tazRel function
void computePathElement()
compute pathElement
~GNETAZRelData()
Destructor.
const GNEViewNetHelper::DataViewOptions & getDataViewOptions() const
get data view options
const GNEViewNetHelper::EditModes & getEditModes() const
get edit modes
GNEViewNetHelper::InspectedElements & getInspectedElements()
get inspected elements
GNEViewNetHelper::IntervalBar & getIntervalBar()
get interval bar
GNEViewParent * getViewParent() const
get the net object
GNETAZRelDataFrame * getTAZRelDataFrame() const
get frame for DATA_TAZRELDATA
static void drawGeometry(const GUIVisualizationSettings::Detail d, const GUIGeometry &geometry, const double width, double offset=0)
draw geometry
const PositionVector & getShape() const
The shape of the additional element.
void updateGeometry(const PositionVector &shape)
update entire geometry
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
T getColor(const double value) const
Stores the information about how to visualize structures.
Detail getDetailLevel(const double exaggeration) const
return the detail level
GUIVisualizationColorSettings colorSettings
color settings
GUIVisualizationDottedContourSettings dottedContourSettings
dotted contour settings
bool drawForViewObjectsHandler
whether drawing is performed for the purpose of selecting objects in view using ViewObjectsHandler
double tazRelWidthExaggeration
The tazRelation exaggeration (upscale thickness)
std::string relDataAttr
key for coloring by edgeRelation / tazRelation attribute
Static storage of an output device and its base (abstract) implementation.
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
bool closeTag(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.
bool hasParameter(const std::string &key) const
Returns whether the parameter is set.
std::map< std::string, std::string > Map
parameters map
virtual const std::string getParameter(const std::string &key, const std::string defaultValue="") const
Returns the value for a given key.
const Parameterised::Map & getParametersMap() const
Returns the inner key/value map.
A point in 2D or 3D with translation and scaling methods.
Definition Position.h:37
static const Position INVALID
used to indicate that a position is valid
Definition Position.h:319
double distanceTo(const Position &p2) const
returns the euclidean distance in 3 dimensions
Definition Position.h:263
A list of positions.
double length() const
Returns the length.
void add(double xoff, double yoff, double zoff)
double nearest_offset_to_point2D(const Position &p, bool perpendicular=true) const
return the nearest offest to point 2D
void move2side(double amount, double maxExtension=100)
move position vector to side using certain amount
Boundary getBoxBoundary() const
Returns a boundary enclosing this list of lines.
void extrapolate(const double val, const bool onlyFirst=false, const bool onlyLast=false)
extrapolate position vector
Position getLineCenter() const
get line center
Position positionAtOffset2D(double pos, double lateralOffset=0, bool extrapolateBeyond=false) const
Returns the position at the given length.
static bool isValidNetID(const std::string &value)
whether the given string is a valid id for a network element
const RGBColor & getShapeColor() const
Returns the color of the Shape.
Definition Shape.h:82
static double toDouble(const std::string &sData)
converts a string into the double value described by it by calling the char-type converter
bool TAZRelOnlyTo() const
check if toggle TAZRel only to checkbox is enabled
bool TAZRelOnlyFrom() const
check if toggle TAZRel only from checkbox is enabled
bool TAZRelDrawing() const
check if toggle TAZRel drawing checkbox is enabled
DataEditMode dataEditMode
the current Data edit mode
bool isCurrentSupermodeData() const
@check if current supermode is Data
RGBColor selectedEdgeDataColor
edge data selection color
static const double segmentWidth
width of dotted contour segments