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 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->getViewParent()->getTAZRelDataFrame();
138 // get current data edit mode
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
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());
193 // move ringCenter to center
194 ringCenter.add(TAZA->getAttributePosition(SUMO_ATTR_CENTER));
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
225 }
226 // add into grid again
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 // fixed detail level because tazRelations need high detail when zoomed out
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 selectionScale = isAttributeCarrierSelected() ? s.selectorFrameScale : 1;
293 const double width = (onlyDrawContour ? 0.1 : 0.5 * s.tazRelWidthExaggeration * selectionScale
295 if (width != myLastWidth) {
296 myLastWidth = width;
297 }
298 // draw geometry
299 if (onlyDrawContour) {
300 // draw depending of TAZRelDrawing
303 } else {
305 }
306 } else {
307 // draw depending of TAZRelDrawing
310 GUIGeometry::drawGeometry(d, geom, width);
312 *(geom.getShape().end() - 2),
313 *(geom.getShape().end() - 1),
314 1.5 + width, 1.5 + width, 0.5 + width);
315 }
316 // pop matrix
318 // draw dotted contour
320 }
322 // calculate contour and draw dotted geometry
324 0.5, 1, true, true, 0, nullptr, nullptr);
325 } else {
326 // calculate contour and draw dotted geometry
328 0.5, 1, true, true, 0, nullptr, nullptr);
329 }
330 }
331}
332
333
334bool
335GNETAZRelData::setFunctionalColor(int activeScheme, RGBColor& col) const {
336 switch (activeScheme) {
337 case 2: { // origin taz
338 const GNETAZ* from = dynamic_cast<const GNETAZ*>(getParentAdditionals().front());
339 col = from->getShapeColor();
340 return true;
341 }
342 case 3: { // destination taz
343 const GNETAZ* to = dynamic_cast<const GNETAZ*>(getParentAdditionals().back());
344 col = to->getShapeColor();
345 return true;
346 }
347 default:
348 return false;
349 }
350}
351
352void
354 // nothing to compute
355}
356
357
358void
359GNETAZRelData::drawLanePartialGL(const GUIVisualizationSettings& /*s*/, const GNESegment* /*segment*/, const double /*offsetFront*/) const {
360 // nothing to draw
361}
362
363
364void
365GNETAZRelData::drawJunctionPartialGL(const GUIVisualizationSettings& /*s*/, const GNESegment* /*segment*/, const double /*offsetFront*/) const {
366 // nothing to draw
367}
368
369
370GNELane*
372 return nullptr;
373}
374
375
376GNELane*
378 return nullptr;
379}
380
381
384 Boundary b;
385 // add two shapes
388 b.grow(20);
389 return b;
390}
391
392
393std::string
395 switch (key) {
396 case SUMO_ATTR_ID:
397 if (getParentAdditionals().size() == 1) {
398 return getPartialID() + getParentAdditionals().front()->getID();
399 } else {
400 return getPartialID() + (getParentAdditionals().front()->getID() + "->" + getParentAdditionals().back()->getID());
401 }
402 case SUMO_ATTR_FROM:
403 return getParentAdditionals().front()->getID();
404 case SUMO_ATTR_TO:
405 return getParentAdditionals().back()->getID();
406 case GNE_ATTR_DATASET:
408 case SUMO_ATTR_BEGIN:
410 case SUMO_ATTR_END:
412 default:
413 return getCommonAttribute(key);
414 }
415}
416
417
418double
422
423
424void
425GNETAZRelData::setAttribute(SumoXMLAttr key, const std::string& value, GNEUndoList* undoList) {
426 if (value == getAttribute(key)) {
427 return; //avoid needless changes, later logic relies on the fact that attributes have changed
428 }
429 switch (key) {
430 case SUMO_ATTR_FROM:
431 case SUMO_ATTR_TO:
432 GNEChange_Attribute::changeAttribute(this, key, value, undoList);
433 break;
434 default:
435 setCommonAttribute(key, value, undoList);
436 break;
437 }
438}
439
440
441bool
442GNETAZRelData::isValid(SumoXMLAttr key, const std::string& value) {
443 switch (key) {
444 case SUMO_ATTR_FROM:
445 case SUMO_ATTR_TO:
446 return SUMOXMLDefinitions::isValidNetID(value) &&
447 (myNet->getAttributeCarriers()->retrieveAdditional(SUMO_TAG_TAZ, value, false) != nullptr);
448 default:
449 return isCommonAttributeValid(key, value);
450 }
451}
452
453
455 switch (key) {
456 case SUMO_ATTR_ID:
457 return false;
458 default:
459 return true;
460 }
461}
462
463
464std::string
466 return getTagStr();
467}
468
469
470std::string
472 if (getParentAdditionals().size() == 1) {
473 return getTagStr() + ": " + getParentAdditionals().front()->getID();
474 } else {
475 return getTagStr() + ": " + getParentAdditionals().front()->getID() + "->" + getParentAdditionals().back()->getID();
476 }
477}
478
479
480bool
482 const auto& inspectedElements = myNet->getViewNet()->getInspectedElements();
483 // first check supermode
485 return false;
486 }
487 // check TAZRelFrame
488 if (myNet->getViewParent()->getTAZRelDataFrame()->shown()) {
489 // check dataSet
491 if (dataSet && (myDataIntervalParent->getDataSetParent() != dataSet)) {
492 return false;
493 }
494 // check interval
496 if (dataInterval && (myDataIntervalParent != dataInterval)) {
497 return false;
498 }
499 }
500 // check if both draw TAZRel checkBox are disabled
502 return false;
503 }
504 // check if we're inspecting a TAZ
506 inspectedElements.isInspectingSingleElement() && (inspectedElements.getFirstAC()->getTagProperty()->getTag() == SUMO_TAG_TAZ)) {
507 // ignore TAZRels with one TAZParent
508 if (getParentAdditionals().size() == 2) {
509 if ((getParentAdditionals().front() == inspectedElements.getFirstAC()) &&
511 return true;
512 } else if ((getParentAdditionals().back() == inspectedElements.getFirstAC()) &&
514 return true;
515 } else {
516 return false;
517 }
518 }
519 }
520 return true;
521}
522
523
524void
525GNETAZRelData::setAttribute(SumoXMLAttr key, const std::string& value) {
526 switch (key) {
527 case SUMO_ATTR_FROM: {
528 // replace first TAZ Parent
529 replaceParentTAZElement(0, value);
530 // update geometry
532 break;
533 }
534 case SUMO_ATTR_TO: {
535 // replace second TAZ Parent
536 replaceParentTAZElement(1, value);
537 // update geometry
539 break;
540 }
541 default:
542 setCommonAttribute(key, value);
543 if (!isTemplate()) {
545 }
546 break;
547 }
548 // mark interval toolbar for update
549 if (!isTemplate()) {
551 }
552}
553
554/****************************************************************************/
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
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:649
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:624
static int angleLookup(double angleDeg)
normalize angle for lookup in myCircleCoords
Definition GLHelper.cpp:106
static void popMatrix()
pop matrix
Definition GLHelper.cpp:131
static void drawBoundary(const GUIVisualizationSettings &s, const Boundary &b)
Draw a boundary (used for debugging)
Definition GLHelper.cpp:952
static const std::vector< std::pair< double, double > > & getCircleCoords()
Storage for precomputed sin/cos-values describing a circle.
Definition GLHelper.cpp:92
static void pushMatrix()
push matrix
Definition GLHelper.cpp:118
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
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...)
GNEDataSet * getDataSetParent() const
Returns a pointer to GNEDataSet parent.
std::string getAttribute(SumoXMLAttr key) const override
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
GNEAdditional * retrieveAdditional(SumoXMLTag type, const std::string &id, bool hardFail=true) const
Returns the named additional.
void addGLObjectIntoGrid(GNEAttributeCarrier *AC)
add GL Object into net
Definition GNENet.cpp:1444
void removeGLObjectFromGrid(GNEAttributeCarrier *AC)
add GL Object into net
Definition GNENet.cpp:1454
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
Definition GNENet.cpp:174
GNEViewParent * getViewParent() const
get view parent (used for simplify code)
Definition GNENet.cpp:150
GNEViewNet * getViewNet() const
get view net (used for simplify code)
Definition GNENet.cpp:144
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.
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
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.
std::string relDataScaleAttr
key for scaling by edgeRelation / tazRelation attribute
GUIScaler dataScaler
The size scaling settings for data elements.
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)
double selectorFrameScale
the current selection scaling in netedit (set in SelectorFrame)
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
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.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
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