42 myDepartPosition(departPosition),
43 myArrivalPosition(arrivalPosition),
44 myPlanElement(planElement) {
52 if (tagProperty->planConsecutiveEdges()) {
54 }
else if (tagProperty->planRoute()) {
56 }
else if (tagProperty->planEdge()) {
58 }
else if (tagProperty->planBusStop()) {
60 }
else if (tagProperty->planTrainStop()) {
62 }
else if (tagProperty->planContainerStop()) {
64 }
else if (tagProperty->planChargingStation()) {
66 }
else if (tagProperty->planParkingArea()) {
72 if (tagProperty->planFromEdge()) {
74 }
else if (tagProperty->planFromTAZ()) {
76 }
else if (tagProperty->planFromJunction()) {
82 if (tagProperty->planToEdge()) {
84 }
else if (tagProperty->planToJunction()) {
86 }
else if (tagProperty->planToTAZ()) {
88 }
else if (tagProperty->planToBusStop()) {
90 }
else if (tagProperty->planToTrainStop()) {
92 }
else if (tagProperty->planToContainerStop()) {
94 }
else if (tagProperty->planToChargingStation()) {
96 }
else if (tagProperty->planToParkingArea()) {
119 if (tagProperty->planFromStoppingPlace()
123 if (tagProperty->planFromBusStop()) {
125 }
else if (tagProperty->planFromTrainStop()) {
127 }
else if (tagProperty->planFromContainerStop()) {
129 }
else if (tagProperty->planFromChargingStation()) {
131 }
else if (tagProperty->planFromParkingArea()) {
158 if (tagProperty->planRoute()) {
161 }
else if (tagProperty->planConsecutiveEdges() || tagProperty->planFromEdge() || tagProperty->planEdge()) {
164 }
else if (tagProperty->planStoppingPlace() || tagProperty->planFromStoppingPlace() || tagProperty->planToStoppingPlace()) {
181 if (tagProperty->planRoute()) {
184 }
else if (tagProperty->planConsecutiveEdges() || tagProperty->planToEdge() || tagProperty->planEdge()) {
187 }
else if (tagProperty->planStoppingPlace() || tagProperty->planFromStoppingPlace() || tagProperty->planToStoppingPlace()) {
206 if (tagProperty->planRoute()) {
209 }
else if (tagProperty->planConsecutiveEdges()) {
262 if (firstLane && lastLane) {
263 pathManager->calculatePath(
myPlanElement, vClass, firstLane, lastLane);
264 }
else if (firstLane) {
265 pathManager->calculateConsecutivePathLanes(
myPlanElement, {firstLane});
266 }
else if (lastLane) {
267 pathManager->calculateConsecutivePathLanes(
myPlanElement, {lastLane});
280 if (tagProperty->planFromTAZ() || tagProperty->planToTAZ()) {
285 if (tagProperty->planFromEdge()) {
288 }
else if (tagProperty->planFromJunction()) {
291 }
else if (tagProperty->planFromStoppingPlace()) {
294 }
else if (tagProperty->planFromTAZ()) {
303 if (tagProperty->planToEdge()) {
306 }
else if (tagProperty->planToJunction()) {
309 }
else if (tagProperty->planToStoppingPlace()) {
312 }
else if (tagProperty->planToTAZ()) {
331 demandElement->updateGeometry();
363 if (additional->getTagProperty()->getTag() ==
SUMO_TAG_TAZ) {
389 if (tagProperty->planRoute()) {
392 }
else if (tagProperty->isPlanStop()) {
394 }
else if (tagProperty->planFromEdge() || tagProperty->planConsecutiveEdges() || tagProperty->planEdge()) {
397 }
else if (tagProperty->planFromJunction()) {
400 }
else if (tagProperty->planStoppingPlace() || tagProperty->planFromStoppingPlace()) {
403 }
else if (tagProperty->planFromTAZ()) {
486 if (tagProperty->planStoppingPlace()) {
490 }
else if (tagProperty->planFromStoppingPlace()) {
494 }
else if (tagProperty->planFromTAZ()) {
496 }
else if (tagProperty->planFromJunction()) {
500 const auto previousPlan = planParent->getPreviousChildDemandElement(
myPlanElement);
506 if (posOverLane == -1) {
520 if (tagProperty->planStoppingPlace()) {
524 }
else if (tagProperty->planToStoppingPlace()) {
528 }
else if (tagProperty->planToJunction() || tagProperty->planToTAZ()) {
531 }
else if ((tagProperty->isPlanStopPerson() || tagProperty->isPlanStopContainer()) && tagProperty->planEdge()) {
536 const auto nextPlan = planParent->getNextChildDemandElement(
myPlanElement);
537 if (nextPlan && (nextPlan->getTagProperty()->isPlanStopPerson() ||
538 nextPlan->getTagProperty()->isPlanStopContainer()) &&
539 nextPlan->getTagProperty()->planEdge()) {
568 const auto previousPlan = planParent->getPreviousChildDemandElement(
myPlanElement);
569 if (previousPlan && previousPlan->getTagProperty()->isPlanStop() && previousPlan->getTagProperty()->planStoppingPlace()) {
570 return previousPlan->getParentStoppingPlaces().front()->getAdditionalGeometry().getShape().back();
573 if (tagProperty->planStoppingPlace()) {
575 }
else if (tagProperty->planFromStoppingPlace()) {
577 }
else if (tagProperty->planFromJunction()) {
580 }
else if (tagProperty->planFromTAZ()) {
586 }
else if (tagProperty->planConsecutiveEdges() || tagProperty->planRoute() || tagProperty->planFromEdge()) {
590 if (firstLane ==
nullptr) {
594 double lanePosition = 0;
604 const auto& laneShape = firstLane->getLaneShape();
606 if (lanePosition <= 0) {
607 return laneShape.front();
608 }
else if (lanePosition >= laneShape.length2D()) {
609 return laneShape.back();
611 return laneShape.positionAtOffset2D(lanePosition);
619 if (tagProperty->planToJunction()) {
622 }
else if (tagProperty->planStoppingPlace()) {
625 }
else if (tagProperty->planToStoppingPlace()) {
628 }
else if (tagProperty->planToTAZ()) {
635 }
else if (tagProperty->planConsecutiveEdges() || tagProperty->planRoute() || tagProperty->planFromEdge()) {
637 const auto nextPlan = planParent->getNextChildDemandElement(
myPlanElement);
641 if (lastLane ==
nullptr) {
645 const auto& laneShape = lastLane->getLaneShape();
647 if (nextPlan && nextPlan->getTagProperty()->isPlanStop()) {
650 return laneShape.front();
652 return laneShape.back();
695 }
else if (GNEAttributeCarrier::canParse<double>(value)) {
696 return GNEAttributeCarrier::parse<double>(value) >= 0;
701 return GNEAttributeCarrier::canParse<double>(value);
746 bool recompute =
false;
798 while (tagProperty->getTagStr().at(index) !=
':') {
799 result.push_back(tagProperty->getTagStr().at(index));
804 if (tagProperty->planConsecutiveEdges()) {
807 }
else if (tagProperty->planRoute()) {
810 }
else if (tagProperty->planEdge()) {
813 }
else if (tagProperty->planStoppingPlace()) {
818 if (tagProperty->planFromStoppingPlace()) {
822 if (tagProperty->planFromTAZ()) {
826 if (tagProperty->planFromJunction()) {
830 if (tagProperty->planFromEdge()) {
836 if (tagProperty->planToStoppingPlace()) {
840 if (tagProperty->planToTAZ()) {
844 if (tagProperty->planToJunction()) {
848 if (tagProperty->planToEdge()) {
861 if (viewNet->getEditModes().isCurrentSupermodeNetwork() &&
862 viewNet->getNetworkViewOptions().showDemandElements() &&
863 viewNet->getDemandViewOptions().showAllPersonPlans()) {
866 }
else if (viewNet->getEditModes().isCurrentSupermodeDemand() &&
867 viewNet->getDemandViewOptions().showAllPersonPlans()) {
881 if (inspectedElements.getFirstAC() && inspectedElements.getFirstAC()->getTagProperty()->isPlanPerson() &&
898 if (viewNet->getEditModes().isCurrentSupermodeNetwork() &&
899 viewNet->getNetworkViewOptions().showDemandElements() &&
900 viewNet->getDemandViewOptions().showAllContainerPlans()) {
903 }
else if (viewNet->getEditModes().isCurrentSupermodeDemand() &&
904 viewNet->getDemandViewOptions().showAllContainerPlans()) {
918 if (inspectedElements.getFirstAC() && inspectedElements.getFirstAC()->getTagProperty()->isPlanContainer() &&
941 if (drawPlan && (planGeometry.getShape().size() > 0)) {
952 if (tagProperty->isPlanRide()) {
954 }
else if (tagProperty->isPlanPersonTrip()) {
980 1,
true,
true, 0,
nullptr,
nullptr);
993 const double offsetFront,
const double planWidth,
const RGBColor& planColor,
const RGBColor& planSelectedColor)
const {
1012 if (tagProperty->planFromTAZ()) {
1018 }
else if (tagProperty->planToTAZ()) {
1051 const double endPosRadius =
getEndPosRadius(s, segment, drawHalfWidth);
1088 segment->
getContour()->
calculateContourExtrudedShape(s, d,
myPlanElement, shape,
myPlanElement->
getType(), drawingWidth, 1,
false,
false, 0,
1105 const double offsetFront,
const double planWidth,
const RGBColor& planColor,
const RGBColor& planSelectedColor)
const {
1165 segment->
getContour()->
calculateContourExtrudedShape(s, d,
myPlanElement, shape,
myPlanElement->
getType(), pathWidthDouble, 1,
false,
false, 0, segment, segment->
getJunction());
1192 const auto previousLastLane = previousPlan->getLastPathLane();
1196 if (previousLastLane && firstLane && (previousLastLane->getParentEdge() != firstLane->getParentEdge())) {
1205 const auto nextFirstLane = nextPlan->getFirstPathLane();
1209 if (nextFirstLane && lastLane && (nextFirstLane->getParentEdge() != lastLane->getParentEdge())) {
1225 const auto previousLastLane = previousPlan->getLastPathLane();
1229 if (previousLastLane && firstLane && (previousLastLane->getParentEdge() != firstLane->getParentEdge())) {
1230 return TLF(
"Edge '%' is not consecutive with edge '%'", previousLastLane->getParentEdge()->getID(), firstLane->getParentEdge()->getID());
1238 const auto nextFirstLane = nextPlan->getFirstPathLane();
1242 if (nextFirstLane && lastLane && (nextFirstLane->getParentEdge() != lastLane->getParentEdge())) {
1243 return TLF(
"Edge '%' is not consecutive with edge '%'", nextFirstLane->getParentEdge()->getID(), lastLane->getParentEdge()->getID());
1248 return "undefined problem";
1276 glTranslated(0, 0, 4);
1296 glTranslated(0, 0, 4);
1308 if (endPosRadius > 0) {
1313 glTranslated(geometryEndPos.
x(), geometryEndPos.
y(), 4);
1324 std::vector<SumoXMLTag> tags;
1333 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
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
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
bool isCommonAttributeValid(SumoXMLAttr key, const std::string &value) const
virtual void updateGeometry()=0
update pre-computed geometry information
virtual std::string getAttribute(SumoXMLAttr key) const =0
std::string getCommonAttribute(SumoXMLAttr key) const
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 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
GUIGeometry myDemandElementGeometry
demand element geometry (also called "stacked geometry")
void replaceLastParentEdge(const std::string &value)
replace the last parent edge
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
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
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
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
virtual GNELane * getLastPathLane() const =0
get last path lane
virtual void computePathElement()=0
implement in children+
virtual GNELane * getFirstPathLane() const =0
get first path lane
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)
virtual void drawGL(const GUIVisualizationSettings &s) const =0
Draws the object.
void drawName(const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0, bool forceShow=false) const
draw name of item
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.
A point in 2D or 3D with translation and scaling methods.
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