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
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
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 default:
105 return 0;
106 }
107}
108
109
110double
112 switch (activeScheme) {
113 case 0: // uniform
114 return 0;
115 case 1: // selection
117 case 2: // by numerical attribute value
118 try {
121 } else {
123 }
124 } catch (NumberFormatException&) {
126 }
127 default:
128 return 0;
129 }
130}
131
132
133
134bool
136 // obtain pointer to TAZ data frame (only for code legibly)
137 const GNETAZRelDataFrame* TAZRelDataFrame = myNet->getViewNet()->getViewParent()->getTAZRelDataFrame();
138 // get current data edit mode
139 DataEditMode dataMode = myNet->getViewNet()->getEditModes().dataEditMode;
140 // check if we have to filter generic data
141 if ((dataMode == DataEditMode::DATA_INSPECT) || (dataMode == DataEditMode::DATA_DELETE) || (dataMode == DataEditMode::DATA_SELECT)) {
142 return /*isVisibleInspectDeleteSelect()*/ true;
143 } else if (TAZRelDataFrame->shown()) {
144 // check interval
145 if ((TAZRelDataFrame->getIntervalSelector()->getDataInterval() != nullptr) &&
146 (TAZRelDataFrame->getIntervalSelector()->getDataInterval() != myDataIntervalParent)) {
147 return false;
148 }
149 // check attribute
150 if ((TAZRelDataFrame->getAttributeSelector()->getFilteredAttribute().size() > 0) &&
151 (getParametersMap().count(TAZRelDataFrame->getAttributeSelector()->getFilteredAttribute()) == 0)) {
152 return false;
153 }
154 // all checks ok, then return true
155 return true;
156 } else {
157 // GNETAZRelDataFrame hidden, then return false
158 return false;
159 }
160}
161
162
163void
165 // remove from grid
166 myNet->removeGLObjectFromGrid(this);
167 // get both TAZs
168 const GNEAdditional* TAZA = getParentAdditionals().front();
169 const GNEAdditional* TAZB = getParentAdditionals().back();
170 // check if this is the same TAZ
171 if (TAZA == TAZB) {
172 // declare ring
173 PositionVector ring;
174 // declare first point
175 std::pair<double, double> p1 = GLHelper::getCircleCoords().at(GLHelper::angleLookup(0));
176 // add 8 segments
177 for (int i = 0; i <= 8; ++i) {
178 const std::pair<double, double>& p2 = GLHelper::getCircleCoords().at(GLHelper::angleLookup(0 + i * 45));
179 // make al line between 0,0 and p2
180 PositionVector line = {Position(), Position(p2.first, p2.second)};
181 // extrapolate
182 line.extrapolate(3, false, true);
183 // add line back to ring
184 ring.push_back(line.back());
185 // update p1
186 p1 = p2;
187 }
188 // make a copy of ring
189 PositionVector ringCenter = ring;
190 // move ring to first geometry point
191 ring.add(TAZA->getAdditionalGeometry().getShape().front());
192 myTAZRelGeometry.updateGeometry(ring);
193 // move ringCenter to center
194 ringCenter.add(TAZA->getAttributePosition(SUMO_ATTR_CENTER));
195 myTAZRelGeometryCenter.updateGeometry(ringCenter);
196 } else {
197 // calculate line between to TAZ centers
199 // check line
200 if (line.length() < 1) {
202 }
203 // add offset to line
204 line.move2side(0.5 + myLastWidth);
205 // calculate middle point
206 const Position middlePoint = line.getLineCenter();
207 // get closest points to middlePoint
210 // check positions
211 if (posA == Position::INVALID) {
212 posA = TAZA->getAdditionalGeometry().getShape().front();
213 }
214 if (posB == Position::INVALID) {
215 posB = TAZB->getAdditionalGeometry().getShape().front();
216 }
217 // update geometry
218 if (posA.distanceTo(posB) < 1) {
219 myTAZRelGeometry.updateGeometry({posA - 0.5, posB + 0.5});
220 } else {
221 myTAZRelGeometry.updateGeometry({posA, posB});
222 }
223 // update center geometry
224 myTAZRelGeometryCenter.updateGeometry(line);
225 }
226 // add into grid again
227 myNet->addGLObjectIntoGrid(this);
228}
229
230
233 return getParentAdditionals().front()->getAttributePosition(SUMO_ATTR_CENTER);
234}
235
236
237void
239 // open device
240 device.openTag(SUMO_TAG_TAZREL);
241 // write from
243 // write to
245 // iterate over attributes
246 for (const auto& attribute : getParametersMap()) {
247 // write attribute (don't use writeParams)
248 device.writeAttr(attribute.first, attribute.second);
249 }
250 // close device
251 device.closeTag();
252}
253
254
255bool
257 return true;
258}
259
260
261std::string
263 return "";
264}
265
266
267void
269 throw InvalidArgument(getTagStr() + " cannot fix any problem");
270}
271
272
273void
275 // draw boundaries
277 // draw TAZRels
278 if (drawTAZRel()) {
279 // get detail level
280 const auto d = s.getDetailLevel(1);
281 // draw geometry only if we'rent in drawForObjectUnderCursor mode
283 const auto& color = setColor(s);
284 // get flag for only draw contour
285 const bool onlyDrawContour = !isGenericDataVisible();
286 // push matrix
288 // translate to front
289 drawInLayer(GLO_TAZ + 1);
290 GLHelper::setColor(color);
291 // check if update lastWidth
292 const double width = (onlyDrawContour ? 0.1 : 0.5 * s.tazRelWidthExaggeration
293 * s.dataScaler.getScheme().getColor(getScaleValue(s, s.dataScaler.getActive())));
294 if (width != myLastWidth) {
295 myLastWidth = width;
296 }
297 // draw geometry
298 if (onlyDrawContour) {
299 // draw depending of TAZRelDrawing
300 if (myNet->getViewNet()->getDataViewOptions().TAZRelDrawing()) {
302 } else {
304 }
305 } else {
306 // draw depending of TAZRelDrawing
307 const GUIGeometry& geom = (myNet->getViewNet()->getDataViewOptions().TAZRelDrawing()
309 GUIGeometry::drawGeometry(d, geom, width);
311 *(geom.getShape().end() - 2),
312 *(geom.getShape().end() - 1),
313 1.5 + width, 1.5 + width, 0.5 + width);
314 }
315 // pop matrix
317 // draw dotted contour
318 myTAZRelDataContour.drawDottedContours(s, d, this, s.dottedContourSettings.segmentWidth, true);
319 }
320 if (myNet->getViewNet()->getDataViewOptions().TAZRelDrawing()) {
321 // calculate contour and draw dotted geometry
322 myTAZRelDataContour.calculateContourExtrudedShape(s, d, this, myTAZRelGeometryCenter.getShape(), getType(),
323 0.5, 1, true, true, 0, nullptr, nullptr);
324 } else {
325 // calculate contour and draw dotted geometry
326 myTAZRelDataContour.calculateContourExtrudedShape(s, d, this, myTAZRelGeometry.getShape(), getType(),
327 0.5, 1, true, true, 0, nullptr, nullptr);
328 }
329 }
330}
331
332
333bool
334GNETAZRelData::setFunctionalColor(int activeScheme, RGBColor& col) const {
335 switch (activeScheme) {
336 case 2: { // origin taz
337 const GNETAZ* from = dynamic_cast<const GNETAZ*>(getParentAdditionals().front());
338 col = from->getShapeColor();
339 return true;
340 }
341 case 3: { // destination taz
342 const GNETAZ* to = dynamic_cast<const GNETAZ*>(getParentAdditionals().back());
343 col = to->getShapeColor();
344 return true;
345 }
346 default:
347 return false;
348 }
349}
350
351void
353 // nothing to compute
354}
355
356
357void
358GNETAZRelData::drawLanePartialGL(const GUIVisualizationSettings& /*s*/, const GNESegment* /*segment*/, const double /*offsetFront*/) const {
359 // nothing to draw
360}
361
362
363void
364GNETAZRelData::drawJunctionPartialGL(const GUIVisualizationSettings& /*s*/, const GNESegment* /*segment*/, const double /*offsetFront*/) const {
365 // nothing to draw
366}
367
368
369GNELane*
371 return nullptr;
372}
373
374
375GNELane*
377 return nullptr;
378}
379
380
383 Boundary b;
384 // add two shapes
385 b.add(myTAZRelGeometry.getShape().getBoxBoundary());
386 b.add(myTAZRelGeometryCenter.getShape().getBoxBoundary());
387 b.grow(20);
388 return b;
389}
390
391
392std::string
394 switch (key) {
395 case SUMO_ATTR_ID:
396 if (getParentAdditionals().size() == 1) {
397 return getPartialID() + getParentAdditionals().front()->getID();
398 } else {
399 return getPartialID() + (getParentAdditionals().front()->getID() + "->" + getParentAdditionals().back()->getID());
400 }
401 case SUMO_ATTR_FROM:
402 return getParentAdditionals().front()->getID();
403 case SUMO_ATTR_TO:
404 return getParentAdditionals().back()->getID();
405 case GNE_ATTR_DATASET:
406 return myDataIntervalParent->getDataSetParent()->getID();
407 case SUMO_ATTR_BEGIN:
408 return myDataIntervalParent->getAttribute(SUMO_ATTR_BEGIN);
409 case SUMO_ATTR_END:
410 return myDataIntervalParent->getAttribute(SUMO_ATTR_END);
411 default:
412 return getCommonAttribute(key);
413 }
414}
415
416
417double
421
422
423void
424GNETAZRelData::setAttribute(SumoXMLAttr key, const std::string& value, GNEUndoList* undoList) {
425 if (value == getAttribute(key)) {
426 return; //avoid needless changes, later logic relies on the fact that attributes have changed
427 }
428 switch (key) {
429 case SUMO_ATTR_FROM:
430 case SUMO_ATTR_TO:
431 GNEChange_Attribute::changeAttribute(this, key, value, undoList);
432 break;
433 default:
434 setCommonAttribute(key, value, undoList);
435 break;
436 }
437}
438
439
440bool
441GNETAZRelData::isValid(SumoXMLAttr key, const std::string& value) {
442 switch (key) {
443 case SUMO_ATTR_FROM:
444 case SUMO_ATTR_TO:
446 (myNet->getAttributeCarriers()->retrieveAdditional(SUMO_TAG_TAZ, value, false) != nullptr);
447 default:
448 return isCommonAttributeValid(key, value);
449 }
450}
451
452
454 switch (key) {
455 case SUMO_ATTR_ID:
456 return false;
457 default:
458 return true;
459 }
460}
461
462
463std::string
465 return getTagStr();
466}
467
468
469std::string
471 if (getParentAdditionals().size() == 1) {
472 return getTagStr() + ": " + getParentAdditionals().front()->getID();
473 } else {
474 return getTagStr() + ": " + getParentAdditionals().front()->getID() + "->" + getParentAdditionals().back()->getID();
475 }
476}
477
478
479bool
481 const auto& inspectedElements = myNet->getViewNet()->getInspectedElements();
482 // first check supermode
483 if (!myNet->getViewNet()->getEditModes().isCurrentSupermodeData()) {
484 return false;
485 }
486 // check TAZRelFrame
487 if (myNet->getViewNet()->getViewParent()->getTAZRelDataFrame()->shown()) {
488 // check dataSet
489 const GNEDataSet* dataSet = myNet->getViewNet()->getViewParent()->getTAZRelDataFrame()->getDataSetSelector()->getDataSet();
490 if (dataSet && (myDataIntervalParent->getDataSetParent() != dataSet)) {
491 return false;
492 }
493 // check interval
494 const GNEDataInterval* dataInterval = myNet->getViewNet()->getViewParent()->getTAZRelDataFrame()->getIntervalSelector()->getDataInterval();
495 if (dataInterval && (myDataIntervalParent != dataInterval)) {
496 return false;
497 }
498 }
499 // check if both draw TAZRel checkBox are disabled
500 if (!myNet->getViewNet()->getDataViewOptions().TAZRelOnlyFrom() && !myNet->getViewNet()->getDataViewOptions().TAZRelOnlyTo()) {
501 return false;
502 }
503 // check if we're inspecting a TAZ
504 if ((myNet->getViewNet()->getEditModes().dataEditMode == DataEditMode::DATA_INSPECT) &&
505 inspectedElements.isInspectingSingleElement() && (inspectedElements.getFirstAC()->getTagProperty()->getTag() == SUMO_TAG_TAZ)) {
506 // ignore TAZRels with one TAZParent
507 if (getParentAdditionals().size() == 2) {
508 if ((getParentAdditionals().front() == inspectedElements.getFirstAC()) &&
509 myNet->getViewNet()->getDataViewOptions().TAZRelOnlyFrom()) {
510 return true;
511 } else if ((getParentAdditionals().back() == inspectedElements.getFirstAC()) &&
512 myNet->getViewNet()->getDataViewOptions().TAZRelOnlyTo()) {
513 return true;
514 } else {
515 return false;
516 }
517 }
518 }
519 return true;
520}
521
522
523void
525 switch (key) {
526 case SUMO_ATTR_FROM: {
527 // replace first TAZ Parent
529 // update geometry
531 break;
532 }
533 case SUMO_ATTR_TO: {
534 // replace second TAZ Parent
536 // update geometry
538 break;
539 }
540 default:
542 if (!isTemplate()) {
543 myDataIntervalParent->getDataSetParent()->updateAttributeColors();
544 }
545 break;
546 }
547 // mark interval toolbar for update
548 myNet->getViewNet()->getIntervalBar().markForUpdate();
549}
550
551/****************************************************************************/
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).
const std::string invalid_return< std::string >::value
@ 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
A class that stores a 2D geometrical boundary.
Definition Boundary.h:39
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
const GUIGeometry & getAdditionalGeometry() const
obtain additional geometry
bool isAttributeCarrierSelected() const
check if attribute carrier is selected
double getCommonAttributeDouble(SumoXMLAttr key) const
const std::string getID() const override
get ID (all Attribute Carriers have one)
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
virtual Position getAttributePosition(SumoXMLAttr key) const =0
GNENet * myNet
pointer to net
bool isCommonAttributeValid(SumoXMLAttr key, const std::string &value) const
std::string getCommonAttribute(SumoXMLAttr key) const
static void changeAttribute(GNEAttributeCarrier *AC, SumoXMLAttr key, const std::string &value, GNEUndoList *undoList, const bool force=false)
change attribute
std::string getFilteredAttribute() const
get filtered attribute
GNEDataInterval * getDataInterval() const
get current select data set ID
const AttributeSelector * getAttributeSelector() const
getattribute selector modul
const IntervalSelector * getIntervalSelector() const
get interval selector modul
GNEDataInterval * myDataIntervalParent
dataInterval Parent
std::string getPartialID() const
get partial ID
GNEGenericData(SumoXMLTag tag, GNENet *net)
default Constructor
void replaceParentTAZElement(const int index, const std::string &value)
replace the first parent TAZElement
const GNEHierarchicalContainerParents< GNEAdditional * > & getParentAdditionals() const
get parent additionals
void setParent(ParentType parent)
edit parent and childrens without maintain integrity (use carefully)
void setParents(const GNEHierarchicalContainerParents< ParentType > &parents)
set multiple parent element (ONLY use in constructors)
A NBNetBuilder extended by visualisation and editing capabilities.
Definition GNENet.h:42
RGBColor setColor(const GUIVisualizationSettings &s) const
get TAZ rel data color
GNETAZRelData(GNENet *net)
default Constructor
bool isValid(SumoXMLAttr key, const std::string &value) override
method for checking if the key and their conrrespond attribute are valids
Boundary getCenteringBoundary() const override
void drawGL(const GUIVisualizationSettings &s) const override
Draws the object.
bool isGenericDataVisible() const override
check if current TAZ rel data is visible
GNEContour myTAZRelDataContour
variable used for draw contours
std::string getHierarchyName() const override
get Hierarchy Name (Used in AC Hierarchy)
bool isGenericDataValid() const override
check if current data set is valid to be written into XML (by default true, can be reimplemented in c...
GUIGeometry myTAZRelGeometry
Geometry for TAZRel data.
void updateGeometry() override
update pre-computed geometry information
void drawLanePartialGL(const GUIVisualizationSettings &s, const GNESegment *segment, const double offsetFront) const override
Draws partial object over lane.
std::string getPopUpID() const override
get PopPup ID (Used in AC Hierarchy)
void computePathElement() override
compute pathElement
void fixGenericDataProblem() override
fix data set problem (by default throw an exception, has to be reimplemented in children)
std::string getAttribute(SumoXMLAttr key) const override
GNELane * getFirstPathLane() const override
get first path lane
double getColorValue(const GUIVisualizationSettings &s, int activeScheme) const override
void drawJunctionPartialGL(const GUIVisualizationSettings &s, const GNESegment *segment, const double offsetFront) const override
Draws partial object over junction.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList) override
method for setting the attribute and letting the object perform data set changes
double getScaleValue(const GUIVisualizationSettings &s, int activeScheme) const
GNELane * getLastPathLane() const override
get last path lane
bool isAttributeEnabled(SumoXMLAttr key) const override
double getAttributeDouble(SumoXMLAttr key) const override
GUIGeometry myTAZRelGeometryCenter
Geometry for TAZRel data (center).
bool drawTAZRel() const
check draw conditions
Position getPositionInView() const override
Returns element position in view.
std::string getGenericDataProblem() const override
return a string with the current data set problem (by default empty, can be reimplemented in children...
double myLastWidth
TAZRel data width.
void writeGenericData(OutputDevice &device) const override
write data set element into a xml file
bool setFunctionalColor(int activeScheme, RGBColor &col) const
sets the color according to the current scheme index and some tazRel function
~GNETAZRelData()
Destructor.
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.
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.
std::string relDataScaleAttr
key for scaling by edgeRelation / tazRelation attribute
GUIScaler dataScaler
The size scaling settings for data elements.
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:323
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
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.cpp:109
static double toDouble(const std::string &sData)
converts a string into the double value described by it by calling the char-type converter
RGBColor selectedEdgeDataColor
edge data selection color
static const double segmentWidth
width of dotted contour segments