44 myDepartPosition(departPosition),
45 myArrivalPosition(arrivalPosition),
46 myPlanElement(planElement) {
55 if (tagProperty->planToEdge() || tagProperty->planConsecutiveEdges() || tagProperty->planEdge()) {
78 if (tagProperty->planConsecutiveEdges()) {
80 }
else if (tagProperty->planRoute()) {
82 }
else if (tagProperty->planEdge()) {
84 }
else if (tagProperty->planBusStop()) {
86 }
else if (tagProperty->planTrainStop()) {
88 }
else if (tagProperty->planContainerStop()) {
90 }
else if (tagProperty->planChargingStation()) {
92 }
else if (tagProperty->planParkingArea()) {
98 if (tagProperty->planFromEdge()) {
100 }
else if (tagProperty->planFromTAZ()) {
102 }
else if (tagProperty->planFromJunction()) {
108 if (tagProperty->planToEdge()) {
110 }
else if (tagProperty->planToJunction()) {
112 }
else if (tagProperty->planToTAZ()) {
114 }
else if (tagProperty->planToBusStop()) {
116 }
else if (tagProperty->planToTrainStop()) {
118 }
else if (tagProperty->planToContainerStop()) {
120 }
else if (tagProperty->planToChargingStation()) {
122 }
else if (tagProperty->planToParkingArea()) {
145 if (tagProperty->planFromStoppingPlace()
149 if (tagProperty->planFromBusStop()) {
151 }
else if (tagProperty->planFromTrainStop()) {
153 }
else if (tagProperty->planFromContainerStop()) {
155 }
else if (tagProperty->planFromChargingStation()) {
157 }
else if (tagProperty->planFromParkingArea()) {
184 if (tagProperty->planRoute()) {
187 }
else if (tagProperty->planConsecutiveEdges() || tagProperty->planFromEdge() || tagProperty->planEdge()) {
190 }
else if (tagProperty->planStoppingPlace() || tagProperty->planFromStoppingPlace() || tagProperty->planToStoppingPlace()) {
207 if (tagProperty->planRoute()) {
210 }
else if (tagProperty->planConsecutiveEdges() || tagProperty->planToEdge() || tagProperty->planEdge()) {
213 }
else if (tagProperty->planStoppingPlace() || tagProperty->planFromStoppingPlace() || tagProperty->planToStoppingPlace()) {
232 if (tagProperty->planRoute()) {
235 }
else if (tagProperty->planConsecutiveEdges()) {
288 if (firstLane && lastLane) {
289 pathManager->calculatePath(
myPlanElement, vClass, firstLane, lastLane);
290 }
else if (firstLane) {
291 pathManager->calculateConsecutivePathLanes(
myPlanElement, {firstLane});
292 }
else if (lastLane) {
293 pathManager->calculateConsecutivePathLanes(
myPlanElement, {lastLane});
306 if (tagProperty->planFromTAZ() || tagProperty->planToTAZ()) {
311 if (tagProperty->planFromEdge()) {
314 }
else if (tagProperty->planFromJunction()) {
317 }
else if (tagProperty->planFromStoppingPlace()) {
320 }
else if (tagProperty->planFromTAZ()) {
329 if (tagProperty->planToEdge()) {
332 }
else if (tagProperty->planToJunction()) {
335 }
else if (tagProperty->planToStoppingPlace()) {
338 }
else if (tagProperty->planToTAZ()) {
357 demandElement->updateGeometry();
389 if (additional->getTagProperty()->getTag() ==
SUMO_TAG_TAZ) {
415 if (tagProperty->planRoute()) {
418 }
else if (tagProperty->isPlanStop()) {
420 }
else if (tagProperty->planFromEdge() || tagProperty->planConsecutiveEdges() || tagProperty->planEdge()) {
423 }
else if (tagProperty->planFromJunction()) {
426 }
else if (tagProperty->planStoppingPlace() || tagProperty->planFromStoppingPlace()) {
429 }
else if (tagProperty->planFromTAZ()) {
512 if (tagProperty->planStoppingPlace()) {
516 }
else if (tagProperty->planFromStoppingPlace()) {
520 }
else if (tagProperty->planFromTAZ()) {
522 }
else if (tagProperty->planFromJunction()) {
526 const auto previousPlan = planParent->getPreviousChildDemandElement(
myPlanElement);
532 if (posOverLane == -1) {
546 if (tagProperty->planStoppingPlace()) {
550 }
else if (tagProperty->planToStoppingPlace()) {
554 }
else if (tagProperty->planToJunction() || tagProperty->planToTAZ()) {
557 }
else if ((tagProperty->isPlanStopPerson() || tagProperty->isPlanStopContainer()) && tagProperty->planEdge()) {
562 const auto nextPlan = planParent->getNextChildDemandElement(
myPlanElement);
563 if (nextPlan && (nextPlan->getTagProperty()->isPlanStopPerson() ||
564 nextPlan->getTagProperty()->isPlanStopContainer()) &&
565 nextPlan->getTagProperty()->planEdge()) {
594 const auto previousPlan = planParent->getPreviousChildDemandElement(
myPlanElement);
595 if (previousPlan && previousPlan->getTagProperty()->isPlanStop() && previousPlan->getTagProperty()->planStoppingPlace()) {
596 return previousPlan->getParentStoppingPlaces().front()->getAdditionalGeometry().getShape().back();
599 if (tagProperty->planStoppingPlace()) {
601 }
else if (tagProperty->planFromStoppingPlace()) {
603 }
else if (tagProperty->planFromJunction()) {
606 }
else if (tagProperty->planFromTAZ()) {
612 }
else if (tagProperty->planConsecutiveEdges() || tagProperty->planRoute() || tagProperty->planFromEdge()) {
616 if (firstLane ==
nullptr) {
620 double lanePosition = 0;
630 const auto& laneShape = firstLane->getLaneShape();
632 if (lanePosition <= 0) {
633 return laneShape.front();
634 }
else if (lanePosition >= laneShape.length2D()) {
635 return laneShape.back();
637 return laneShape.positionAtOffset2D(lanePosition);
645 if (tagProperty->planToJunction()) {
648 }
else if (tagProperty->planStoppingPlace()) {
651 }
else if (tagProperty->planToStoppingPlace()) {
654 }
else if (tagProperty->planToTAZ()) {
661 }
else if (tagProperty->planConsecutiveEdges() || tagProperty->planRoute() || tagProperty->planFromEdge()) {
663 const auto nextPlan = planParent->getNextChildDemandElement(
myPlanElement);
667 if (lastLane ==
nullptr) {
671 const auto& laneShape = lastLane->getLaneShape();
673 if (nextPlan && nextPlan->getTagProperty()->isPlanStop()) {
676 return laneShape.front();
678 return laneShape.back();
721 }
else if (GNEAttributeCarrier::canParse<double>(value)) {
722 return GNEAttributeCarrier::parse<double>(value) >= 0;
727 return GNEAttributeCarrier::canParse<double>(value);
772 bool recompute =
false;
824 while (tagProperty->getTagStr().at(index) !=
':') {
825 result.push_back(tagProperty->getTagStr().at(index));
830 if (tagProperty->planConsecutiveEdges()) {
833 }
else if (tagProperty->planRoute()) {
836 }
else if (tagProperty->planEdge()) {
839 }
else if (tagProperty->planStoppingPlace()) {
844 if (tagProperty->planFromStoppingPlace()) {
848 if (tagProperty->planFromTAZ()) {
852 if (tagProperty->planFromJunction()) {
856 if (tagProperty->planFromEdge()) {
862 if (tagProperty->planToStoppingPlace()) {
866 if (tagProperty->planToTAZ()) {
870 if (tagProperty->planToJunction()) {
874 if (tagProperty->planToEdge()) {
887 if (viewNet->getEditModes().isCurrentSupermodeNetwork() &&
888 viewNet->getNetworkViewOptions().showDemandElements() &&
889 viewNet->getDemandViewOptions().showAllPersonPlans()) {
892 }
else if (viewNet->getEditModes().isCurrentSupermodeDemand() &&
893 viewNet->getDemandViewOptions().showAllPersonPlans()) {
907 if (inspectedElements.getFirstAC() && inspectedElements.getFirstAC()->getTagProperty()->isPlanPerson() &&
924 if (viewNet->getEditModes().isCurrentSupermodeNetwork() &&
925 viewNet->getNetworkViewOptions().showDemandElements() &&
926 viewNet->getDemandViewOptions().showAllContainerPlans()) {
929 }
else if (viewNet->getEditModes().isCurrentSupermodeDemand() &&
930 viewNet->getDemandViewOptions().showAllContainerPlans()) {
944 if (inspectedElements.getFirstAC() && inspectedElements.getFirstAC()->getTagProperty()->isPlanContainer() &&
967 if (drawPlan && (planGeometry.getShape().size() > 0)) {
978 if (tagProperty->isPlanRide()) {
980 }
else if (tagProperty->isPlanPersonTrip()) {
1006 1,
true,
true, 0,
nullptr,
nullptr);
1019 const double offsetFront,
const double planWidth,
const RGBColor& planColor,
const RGBColor& planSelectedColor)
const {
1038 if (tagProperty->planFromTAZ()) {
1044 }
else if (tagProperty->planToTAZ()) {
1077 const double endPosRadius =
getEndPosRadius(s, segment, drawHalfWidth);
1114 segment->
getContour()->
calculateContourExtrudedShape(s, d,
myPlanElement, shape,
myPlanElement->
getType(), drawingWidth, 1,
false,
false, 0,
1131 const double offsetFront,
const double planWidth,
const RGBColor& planColor,
const RGBColor& planSelectedColor)
const {
1191 segment->
getContour()->
calculateContourExtrudedShape(s, d,
myPlanElement, shape,
myPlanElement->
getType(), pathWidthDouble, 1,
false,
false, 0, segment, segment->
getJunction());
1218 const auto previousLastLane = previousPlan->getLastPathLane();
1222 if (previousLastLane && firstLane && (previousLastLane->getParentEdge() != firstLane->getParentEdge())) {
1231 const auto nextFirstLane = nextPlan->getFirstPathLane();
1235 if (nextFirstLane && lastLane && (nextFirstLane->getParentEdge() != lastLane->getParentEdge())) {
1251 const auto previousLastLane = previousPlan->getLastPathLane();
1255 if (previousLastLane && firstLane && (previousLastLane->getParentEdge() != firstLane->getParentEdge())) {
1256 return TLF(
"Edge '%' is not consecutive with edge '%'", previousLastLane->getParentEdge()->getID(), firstLane->getParentEdge()->getID());
1264 const auto nextFirstLane = nextPlan->getFirstPathLane();
1268 if (nextFirstLane && lastLane && (nextFirstLane->getParentEdge() != lastLane->getParentEdge())) {
1269 return TLF(
"Edge '%' is not consecutive with edge '%'", nextFirstLane->getParentEdge()->getID(), lastLane->getParentEdge()->getID());
1274 return "undefined problem";
1302 glTranslated(0, 0, 4);
1322 glTranslated(0, 0, 4);
1334 if (endPosRadius > 0) {
1339 glTranslated(geometryEndPos.
x(), geometryEndPos.
y(), 4);
1350 std::vector<SumoXMLTag> tags;
1359 for (
const auto& tag : tags) {
@ GLO_TAZ
Traffic Assignment Zones (TAZs)
GUIViewObjectsHandler gViewObjectsHandler
@ SUMO_TAG_TAZ
a traffic assignment zone
@ SUMO_TAG_STOP
stop for vehicles
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
@ GNE_ATTR_FROM_TRAINSTOP
@ GNE_ATTR_PLAN_GEOMETRY_STARTPOS
person/container geometry start position
@ SUMO_ATTR_FROM_JUNCTION
@ SUMO_ATTR_CONTAINER_STOP
@ GNE_ATTR_PARENT
parent of an additional element
@ GNE_ATTR_TAZ_CENTROID
TAZ Center (uses to return the TAZ centroid if center is not defined)
@ SUMO_ATTR_EDGES
the edges of a route
@ SUMO_ATTR_CHARGING_STATION
@ GNE_ATTR_FROM_PARKINGAREA
@ GNE_ATTR_FROM_CONTAINERSTOP
@ GNE_ATTR_FROM_CHARGINGSTATION
@ GNE_ATTR_PLAN_GEOMETRY_ENDPOS
person/container geometry end position
const double INVALID_DOUBLE
invalid double
const double SUMO_const_halfLaneWidth
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
A class that stores a 2D geometrical boundary.
Position getCenter() const
Returns the center of the boundary.
void add(double x, double y, double z=0)
Makes the boundary include the given coordinate.
bool isInitialised() const
check if Boundary is Initialised
Boundary & grow(double by)
extends the boundary by the given amount
static void setColor(const RGBColor &c)
Sets the gl-color to this value.
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.
static void popMatrix()
pop matrix
static void drawBoxLines(const PositionVector &geom, const std::vector< double > &rots, const std::vector< double > &lengths, double width, int cornerDetail=0, double offset=0)
Draws thick lines.
static void drawBoundary(const GUIVisualizationSettings &s, const Boundary &b)
Draw a boundary (used for debugging)
static void drawFilledCircleDetailled(const GUIVisualizationSettings::Detail d, const double radius)
Draws a filled circle around (0,0) depending of level of detail.
static void pushMatrix()
push matrix
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
bool drawUsingSelectColor() const
check if attribute carrier must be drawn using selecting color.
void drawInLayer(const double typeOrLayer, const double extraOffset=0) const
draw element in the given layer, or in front if corresponding flag is enabled
const GNETagProperties * getTagProperty() const
get tagProperty associated with this Attribute Carrier
GNENet * myNet
pointer to net
bool isCommonValid(SumoXMLAttr key, const std::string &value) const
GNENet * getNet() const
get pointer to net
static std::string parseIDs(const std::vector< T > &ACs)
parses a list of specific Attribute Carriers into a string of IDs
const GNETagProperties * myTagProperty
reference to tagProperty associated with this attribute carrier
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)
void calculateContourCircleShape(const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GUIGlObject *glObject, const Position &pos, double radius, const double layer, const double scale, const GUIGlObject *boundaryParent) const
calculate contour (circle elements)
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...)
bool checkDrawPathContour(const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const GNEAttributeCarrier *AC) const
drawing contour functions
virtual void updateGeometry()=0
update pre-computed geometry information
virtual SUMOVehicleClass getVClass() const =0
obtain VClass related with this demand element
void replaceDemandElementParent(SumoXMLTag tag, const std::string &value, const int parentIndex)
replace demand element parent
virtual GNELane * getLastPathLane() const =0
get last path lane
virtual GNELane * getFirstPathLane() const =0
get first path lane
GUIGeometry myDemandElementGeometry
demand element geometry (also called "stacked geometry")
void replaceLastParentEdge(const std::string &value)
replace the last parent edge
virtual std::string getAttribute(SumoXMLAttr key) const =0
virtual void computePathElement()=0
implement in children+
void replaceFirstParentEdge(const std::string &value)
replace the first parent edge
virtual Position getPositionInView() const =0
Returns position of demand element in view.
const GUIGeometry & getDemandElementGeometry()
get demand element geometry (stacked)
Problem
enum class for demandElement problems
GNEDemandElement * getPreviousChildDemandElement(const GNEDemandElement *demandElement) const
get previous child demand element to the given demand element
virtual void drawGL(const GUIVisualizationSettings &s) const =0
Draws the object.
Boundary myPlanBoundary
plan boundary
bool isPlanValid(SumoXMLAttr key, const std::string &value)
check if plan attribute is valid
Boundary getPlanCenteringBoundary() const
get plan centering boundary
Position getPlanPositionInView() const
Returns position of additional in view.
std::string getPersonPlanProblem() const
get plan problem
void computePlanPathElement()
compute plan pathElement
Position getPlanAttributePosition(SumoXMLAttr key) const
get plan attribute position
GNEDemandElement::Problem isPlanPersonValid() const
check if plan is valid
GNEContour myPlanContourEnd
variable used for draw contour end
GUIGLObjectPopupMenu * getPlanPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
GNEDemandElementPlan(GNEDemandElement *planElement, const double departPosition, const double arrivalPosition)
constructor
std::string getPlanHierarchyName() const
get plan Hierarchy Name (Used in AC Hierarchy)
void drawEndPosition(const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const double endPosRadius) const
draw to arrow
void drawFromArrow(const GUIVisualizationSettings &s, const GNELane *lane, const GNESegment *segment) const
draw from arrow
void writeLocationAttributes(OutputDevice &device) const
write plan element common attributes
bool checkDrawPersonPlan() const
check if person plan can be drawn
GNEContour myPlanContour
variable used for draw central contour
double getEndPosRadius(const GUIVisualizationSettings &s, const GNESegment *segment, const bool drawHalfWidth) const
get end position radius
GNEMoveOperation * getPlanMoveOperation()
get move operation
double getPlanAttributeDouble(SumoXMLAttr key) const
get plan attribute double
void setPlanAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
set plan attribute
double myArrivalPosition
arrival position (used in all plans over edges)
double myDepartPosition
depart position (used in tranships)
static const double myArrivalPositionDiameter
arrival position diameter
void drawToArrow(const GUIVisualizationSettings &s, const GNELane *lane, const GNESegment *segment) const
draw to arrow
std::string getPlanAttribute(SumoXMLAttr key) const
get plan attribute string
bool isPlanAttributeEnabled(SumoXMLAttr key) const
check if plan attribute is enabled
bool checkDrawContainerPlan() const
check if container plan can be drawn
GNELane * getLastPlanPathLane() const
get last plan path lane
GNEDemandElement * myPlanElement
pointer to plan element
void updatePlanCenteringBoundary(const bool updateGrid)
update plan centering boundary
void drawPlanGL(const bool drawPlan, const GUIVisualizationSettings &s, const RGBColor &planColor, const RGBColor &planSelectedColor) const
draw plan
void updatePlanGeometry()
update pre-computed geometry information
GNELane * getFirstPlanPathLane() const
get first plan path lane
void drawPlanLanePartial(const bool drawPlan, const GUIVisualizationSettings &s, const GNESegment *segment, const double offsetFront, const double planWidth, const RGBColor &planColor, const RGBColor &planSelectedColor) const
draw plan partial lane
void drawPlanJunctionPartial(const bool drawPlan, const GUIVisualizationSettings &s, const GNESegment *segment, const double offsetFront, const double planWidth, const RGBColor &planColor, const RGBColor &planSelectedColor) const
draw plan partial junction
void writeOriginStop(OutputDevice &device) const
write initial stop stage if plan starts at a stopping place
bool replacePlanParent(const std::string &newParentID)
replace plan parent
const GNEHierarchicalContainerParents< GNEAdditional * > & getParentAdditionals() const
get parent additionals
const GNEHierarchicalContainerParents< GNEDemandElement * > & getParentDemandElements() const
get parent demand elements
const GNEHierarchicalContainerParents< GNEEdge * > & getParentEdges() const
get parent edges
const GNEHierarchicalContainerParents< GNEJunction * > & getParentJunctions() const
get parent junctions
const GNEHierarchicalContainerParents< GNEAdditional * > getParentStoppingPlaces() const
get parent stoppingPlaces (used by plans)
const GNEHierarchicalContainerChildren< GNEDemandElement * > & getChildDemandElements() const
return child demand elements
const GNEHierarchicalContainerParents< GNEAdditional * > getParentTAZs() const
get parent TAZs (used by plans)
bool exist(const GNELane *toLane) const
check if exist a lane2lane geometry for the given toLane
const GUIGeometry & getLane2laneGeometry(const GNELane *toLane) const
get lane2lane geometry
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
const PositionVector & getLaneShape() const
get elements shape
const GNELane2laneConnection & getLane2laneConnections() const
get Lane2laneConnection struct
const GUIGeometry & getLaneGeometry() const
get lane geometry
GNEEdge * getParentEdge() const
get parent edge
GNEDemandElement * retrieveDemandElement(SumoXMLTag type, const std::string &id, bool hardFail=true) const
Returns the named demand element.
void addGLObjectIntoGrid(GNEAttributeCarrier *AC)
add GL Object into net
void removeGLObjectFromGrid(GNEAttributeCarrier *AC)
add GL Object into net
GNEPathManager * getDemandPathManager()
get demand path manager
GNENetHelper::AttributeCarriers * getAttributeCarriers() const
get all attribute carriers used in this net
GNEViewNet * getViewNet() const
get view net
bool checkDrawPathGeometry(const GUIVisualizationSettings &s, const GNELane *lane, const SumoXMLTag tag, const bool isPlan)
check if path element geometry must be drawn in the given lane
PathDraw * getPathDraw()
obtain instance of PathDraw
void calculateConsecutivePathEdges(GNEPathElement *pathElement, SUMOVehicleClass vClass, const std::vector< GNEEdge * > &edges, const int firstLaneIndex=-1, const int lastLaneIndex=-1)
calculate consecutive path edges
const GNELane * getLane() const
get lane associated with this segment
const GNEJunction * getJunction() const
get junction associated with this segment
const GNELane * getNextLane() const
get next lane
const GNELane * getPreviousLane() const
get previous lane
bool isFirstSegment() const
check if segment is the first path's segment
GNEContour * getContour() const
bool isLastSegment() const
check if segment is the last path's segment
bool planFromJunction() const
return true if tag correspond to a plan that starts in junction
bool planToStoppingPlace() const
return true if tag correspond to a plan that ends in stoppingPlace
bool planStoppingPlace() const
return true if tag correspond to a plan placed in stoppingPlace
bool planToJunction() const
return true if tag correspond to a plan that starts in junction
bool planFromStoppingPlace() const
return true if tag correspond to a plan that starts in stoppingPlace
SumoXMLTag getTag() const
get Tag vinculated with this attribute Property
bool planFromEdge() const
return true if tag correspond to a plan that starts in edge
bool isPlanPerson() const
return true if tag correspond to a person plan
bool planToEdge() const
return true if tag correspond to a plan that starts in edge
GNEViewNetHelper::InspectedElements & getInspectedElements()
get inspected elements
static FXMenuCommand * buildFXMenuCommand(FXComposite *p, const std::string &text, FXIcon *icon, FXObject *tgt, FXSelector sel, const bool disable=false)
build menu command
void clearGeometry()
clear geometry
static void drawGeometry(const GUIVisualizationSettings::Detail d, const GUIGeometry &geometry, const double width, double offset=0)
draw geometry
static void drawChildLine(const GUIVisualizationSettings &s, const Position &child, const Position &parent, const RGBColor &color, const bool drawEntire, const double lineWidth)
draw line between child and parent (used in netedit)
const PositionVector & getShape() const
The shape of the additional element.
void updateGeometry(const PositionVector &shape)
update entire geometry
virtual Boundary getCenteringBoundary() const =0
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
void buildPopUpMenuCommonOptions(GUIGLObjectPopupMenu *ret, GUIMainWindow &app, GUISUMOAbstractView *parent, const SumoXMLTag tag, const bool selected, bool addSeparator=true)
void drawName(const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0, bool forceShow=false) const
draw name of item
virtual Position getPositionInformation() const
Returns the cursor's x/y position within the network.
void addToRedrawPathElements(const GNEPathElement *pathElement)
add path element to redrawing set
bool isPathElementMarkForRedraw(const GNEPathElement *pathElement) const
check if the given path element has to be redraw again
bool isObjectSelected(const GUIGlObject *GLObject) const
check if element was already selected
Stores the information about how to visualize structures.
GUIVisualizationTextSettings addName
bool drawBoundaries
enable or disable draw boundaries
GUIVisualizationSizeSettings addSize
GUIVisualizationWidthSettings widthSettings
width settings
Detail getDetailLevel(const double exaggeration) const
return the detail level
double laneWidthExaggeration
The lane exaggeration (upscale thickness)
bool checkDrawContainer(Detail d, const bool selected) const
check if draw container
GUIVisualizationDottedContourSettings dottedContourSettings
dotted contour settings
double scale
information about a lane's width (temporary, used for a single view)
bool drawForViewObjectsHandler
whether drawing is performed for the purpose of selecting objects in view using ViewObjectsHandler
bool checkDrawPerson(Detail d, const bool selected) const
check if draw person
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.
An upper class for objects with additional parameters.
A point in 2D or 3D with translation and scaling methods.
double distanceSquaredTo2D(const Position &p2) const
returns the square of the distance to another position (Only using x and y positions)
static const Position INVALID
used to indicate that a position is valid
double x() const
Returns the x-position.
double y() const
Returns the y-position.
Boundary getBoxBoundary() const
Returns a boundary enclosing this list of lines.
static const RGBColor RED
named colors
static void drawLockIcon(const GUIVisualizationSettings::Detail d, const GNEAttributeCarrier *AC, GUIGlObjectType type, const Position position, const double exaggeration, const double size=0.5, const double offsetx=0, const double offsety=0)
draw lock icon
static const double segmentWidth
width of dotted contour segments
double getExaggeration(const GUIVisualizationSettings &s, const GUIGlObject *o, double factor=20) const
return the drawing size including exaggeration and constantSize values
double walkWidth
width for walks
double personTripWidth
width for person trips
double rideWidth
width for rides