![]() |
Eclipse SUMO - Simulation of Urban MObility
|
An special type of Attribute carrier that owns hierarchical elements. More...
#include <GNEHierarchicalElementParents.h>
Data Structures | |
struct | ParentConnections |
struct for pack all variables and functions relative to connections between hierarchical element and their children More... | |
Public Member Functions | |
GNEHierarchicalElementParents (GNEAttributeCarrier *AC, const std::vector< GNEEdge *> &edgeParents, const std::vector< GNELane *> &laneParents, const std::vector< GNEShape *> &shapeParents, const std::vector< GNEAdditional *> &additionalParents, const std::vector< GNEDemandElement *> &demandElementParents) | |
Constructor used by elements that have another additionals as parent. More... | |
~GNEHierarchicalElementParents () | |
Destructor. More... | |
Functions related with geometry of element | |
update pre-computed geometry information | |
virtual void | updateGeometry ()=0 |
virtual Position | getPositionInView () const =0 |
Returns position of hierarchical element in view. More... | |
members and functions related to edge parents | |
add edge parent | |
void | addEdgeParent (GNEEdge *edge) |
void | removeEdgeParent (GNEEdge *edge) |
remove edge parent More... | |
const std::vector< GNEEdge * > & | getEdgeParents () const |
get edge parents More... | |
members and functions related to lane parents | |
add lane parent | |
void | addLaneParent (GNELane *lane) |
void | removeLaneParent (GNELane *lane) |
remove lane parent More... | |
const std::vector< GNELane * > & | getLaneParents () const |
get lanes of VSS More... | |
members and functions related to shape parents | |
add shape parent | |
void | addShapeParent (GNEShape *shape) |
void | removeShapeParent (GNEShape *shape) |
remove shape parent More... | |
const std::vector< GNEShape * > & | getShapeParents () const |
get shapes of VSS More... | |
members and functions related to additional parents | |
add additional parent to this additional | |
void | addAdditionalParent (GNEAdditional *additional) |
void | removeAdditionalParent (GNEAdditional *additional) |
remove additional parent from this additional More... | |
const std::vector< GNEAdditional * > & | getAdditionalParents () const |
return vector of additionals that have as Parent this edge (For example, Calibrators) More... | |
members and functions related to demand element parents | |
add demand element parent to this demand element | |
void | addDemandElementParent (GNEDemandElement *demandElement) |
void | removeDemandElementParent (GNEDemandElement *demandElement) |
remove demand element parent from this demand element More... | |
const std::vector< GNEDemandElement * > & | getDemandElementParents () const |
return vector of demand elements that have as Parent this edge (For example, Calibrators) More... | |
Protected Member Functions | |
members and functions relative to changing parents | |
void | changeEdgeParents (GNEShape *elementChild, const std::string &newEdgeIDs) |
change edge parents of a shape More... | |
void | changeEdgeParents (GNEAdditional *elementChild, const std::string &newEdgeIDs) |
change edge parents of an additional More... | |
void | changeEdgeParents (GNEDemandElement *elementChild, const std::string &newEdgeIDs) |
change edge parents of a demandElement More... | |
void | changeEdgeParents (GNEDemandElement *elementChild, const std::vector< GNEEdge *> &newEdges) |
change edge parents of a demandElement (GNEEdge version) More... | |
void | changeLaneParents (GNEShape *elementChild, const std::string &newLaneIDs) |
change edge parents of a shape More... | |
void | changeLaneParents (GNEAdditional *elementChild, const std::string &newLaneIDs) |
change edge parents of an additional More... | |
void | changeLaneParents (GNEDemandElement *elementChild, const std::string &newLaneIDs) |
change edge parents of a demandElement More... | |
void | changeAdditionalParent (GNEShape *shapeTobeChanged, const std::string &newAdditionalParentID, int additionalParentIndex) |
change additional parent of a shape More... | |
void | changeAdditionalParent (GNEAdditional *additionalTobeChanged, const std::string &newAdditionalParentID, int additionalParentIndex) |
change additional parent of an additional More... | |
void | changeAdditionalParent (GNEDemandElement *demandElementTobeChanged, const std::string &newAdditionalParentID, int additionalParentIndex) |
change additional parent of a demand element More... | |
void | changeDemandElementParent (GNEShape *shapeTobeChanged, const std::string &newDemandElementParentID, int demandElementParentIndex) |
change first demand element parent of a shape More... | |
void | changeDemandElementParent (GNEAdditional *additionalTobeChanged, const std::string &newDemandElementParentID, int demandElementParentIndex) |
change first demand element parent of an additional More... | |
void | changeDemandElementParent (GNEDemandElement *demandElementTobeChanged, const std::string &newDemandElementParentID, int demandElementParentIndex) |
change first demand element parent of demandElement More... | |
Protected Attributes | |
ParentConnections | myParentConnections |
variable ParentConnections More... | |
Private Member Functions | |
GNEHierarchicalElementParents (const GNEHierarchicalElementParents &)=delete | |
Invalidated copy constructor. More... | |
GNEHierarchicalElementParents & | operator= (const GNEHierarchicalElementParents &)=delete |
Invalidated assignment operator. More... | |
Private Attributes | |
GNEAttributeCarrier * | myAC |
pointer to AC (needed to avoid diamond problem) More... | |
std::vector< GNEAdditional * > | myAdditionalParents |
list of additional parents of this element More... | |
std::vector< GNEDemandElement * > | myDemandElementParents |
list of demand elements parents of this element More... | |
std::vector< GNEEdge * > | myEdgeParents |
list of edge parents of this element More... | |
std::vector< GNELane * > | myLaneParents |
list of lane parents of this element More... | |
std::vector< GNEShape * > | myShapeParents |
list of shape parents of this element More... | |
Friends | |
class | GNEChange_Children |
declare GNEChange_Children as friend class More... | |
An special type of Attribute carrier that owns hierarchical elements.
Definition at line 48 of file GNEHierarchicalElementParents.h.
GNEHierarchicalElementParents::GNEHierarchicalElementParents | ( | GNEAttributeCarrier * | AC, |
const std::vector< GNEEdge *> & | edgeParents, | ||
const std::vector< GNELane *> & | laneParents, | ||
const std::vector< GNEShape *> & | shapeParents, | ||
const std::vector< GNEAdditional *> & | additionalParents, | ||
const std::vector< GNEDemandElement *> & | demandElementParents | ||
) |
Constructor used by elements that have another additionals as parent.
[in] | tag | Type of xml tag that define the element (SUMO_TAG_BUS_STOP, SUMO_TAG_JUNCTION, etc...) |
[in] | edgeParents | vector of edge parents |
[in] | laneParents | vector of lane parents |
[in] | shapeParents | vector of shape parents |
[in] | additionalParents | vector of additional parents |
[in] | demandElementParents | vector of demand element parents |
Definition at line 43 of file GNEHierarchicalElementParents.cpp.
GNEHierarchicalElementParents::~GNEHierarchicalElementParents | ( | ) |
Destructor.
Definition at line 59 of file GNEHierarchicalElementParents.cpp.
|
privatedelete |
Invalidated copy constructor.
void GNEHierarchicalElementParents::addAdditionalParent | ( | GNEAdditional * | additional | ) |
Definition at line 63 of file GNEHierarchicalElementParents.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), myAC, and myAdditionalParents.
void GNEHierarchicalElementParents::addDemandElementParent | ( | GNEDemandElement * | demandElement | ) |
Definition at line 92 of file GNEHierarchicalElementParents.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), myAC, and myDemandElementParents.
void GNEHierarchicalElementParents::addEdgeParent | ( | GNEEdge * | edge | ) |
Definition at line 121 of file GNEHierarchicalElementParents.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), myAC, myEdgeParents, SUMO_TAG_EDGE, and toString().
void GNEHierarchicalElementParents::addLaneParent | ( | GNELane * | lane | ) |
Definition at line 156 of file GNEHierarchicalElementParents.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), myAC, myLaneParents, SUMO_TAG_EDGE, and toString().
void GNEHierarchicalElementParents::addShapeParent | ( | GNEShape * | shape | ) |
Definition at line 188 of file GNEHierarchicalElementParents.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), myAC, myShapeParents, SUMO_TAG_EDGE, and toString().
|
protected |
change additional parent of a shape
exception | if this shape doesn't have previously a defined Additional parent |
exception | if shape with ID newAdditionalParentID doesn't exist |
Definition at line 480 of file GNEHierarchicalElementParents.cpp.
References GNEAttributeCarrier::getID(), GNEShape::getNet(), GNEAttributeCarrier::getTagStr(), myAC, myAdditionalParents, GNENet::retrieveAdditional(), toString(), and GNEShape::updateGeometry().
Referenced by GNEDetectorEntryExit::setAttribute(), GNEParkingAreaReroute::setAttribute(), GNEParkingSpace::setAttribute(), GNEStop::setAttribute(), GNERide::setAttribute(), GNEWalk::setAttribute(), and GNEPersonTrip::setAttribute().
|
protected |
change additional parent of an additional
exception | if this additional doesn't have previously a defined Additional parent |
exception | if additional with ID newAdditionalParentID doesn't exist |
Definition at line 497 of file GNEHierarchicalElementParents.cpp.
References GNEAttributeCarrier::getID(), GNEViewNet::getNet(), GNEAttributeCarrier::getTagStr(), GNEAdditional::getViewNet(), myAC, myAdditionalParents, GNENet::retrieveAdditional(), toString(), and GNEAdditional::updateGeometry().
|
protected |
change additional parent of a demand element
exception | if this additional doesn't have previously a defined Additional parent |
exception | if additional with ID newAdditionalParentID doesn't exist |
Definition at line 514 of file GNEHierarchicalElementParents.cpp.
References GNEAttributeCarrier::getID(), GNEViewNet::getNet(), GNEAttributeCarrier::getTagStr(), GNEDemandElement::getViewNet(), myAC, myAdditionalParents, GNENet::retrieveAdditional(), toString(), and GNEDemandElement::updateGeometry().
|
protected |
change first demand element parent of a shape
exception | if this demand element doesn't have previously a defined DemandElement parent |
exception | if demand element with ID newDemandElementParentID doesn't exist |
Definition at line 531 of file GNEHierarchicalElementParents.cpp.
References GNEAttributeCarrier::getID(), GNEShape::getNet(), GNEAttributeCarrier::getTagStr(), myAC, myDemandElementParents, GNENet::retrieveDemandElement(), toString(), and GNEShape::updateGeometry().
Referenced by GNEWalk::setAttribute(), GNEPerson::setAttribute(), and GNEVehicle::setAttribute().
|
protected |
change first demand element parent of an additional
exception | if this demand element doesn't have previously a defined DemandElement parent |
exception | if demand element with ID newDemandElementParentID doesn't exist |
Definition at line 548 of file GNEHierarchicalElementParents.cpp.
References GNEAttributeCarrier::getID(), GNEViewNet::getNet(), GNEAttributeCarrier::getTagStr(), GNEAdditional::getViewNet(), myAC, myDemandElementParents, GNENet::retrieveDemandElement(), toString(), and GNEAdditional::updateGeometry().
|
protected |
change first demand element parent of demandElement
exception | if this demand element doesn't have previously a defined DemandElement parent |
exception | if demand element with ID newDemandElementParentID doesn't exist |
Definition at line 565 of file GNEHierarchicalElementParents.cpp.
References GNEAttributeCarrier::getID(), GNEViewNet::getNet(), GNEAttributeCarrier::getTagStr(), GNEDemandElement::getViewNet(), myAC, myDemandElementParents, GNENet::retrieveDemandElement(), toString(), and GNEDemandElement::updateGeometry().
|
protected |
change edge parents of a shape
Definition at line 340 of file GNEHierarchicalElementParents.cpp.
References GNEShape::getNet(), and myEdgeParents.
Referenced by GNEVehicle::compute(), GNEVaporizer::setAttribute(), GNERouteProbe::setAttribute(), GNECalibrator::setAttribute(), GNERide::setAttribute(), GNEWalk::setAttribute(), GNEPersonTrip::setAttribute(), and GNERoute::setAttribute().
|
protected |
change edge parents of an additional
Definition at line 360 of file GNEHierarchicalElementParents.cpp.
References GNEViewNet::getNet(), GNEAdditional::getViewNet(), and myEdgeParents.
|
protected |
change edge parents of a demandElement
Definition at line 380 of file GNEHierarchicalElementParents.cpp.
References GNEViewNet::getNet(), GNEDemandElement::getViewNet(), and myEdgeParents.
|
protected |
change edge parents of a demandElement (GNEEdge version)
Definition at line 400 of file GNEHierarchicalElementParents.cpp.
References myEdgeParents.
|
protected |
change edge parents of a shape
Definition at line 460 of file GNEHierarchicalElementParents.cpp.
References GNEShape::getNet(), and myLaneParents.
Referenced by GNEContainerStop::setAttribute(), GNEBusStop::setAttribute(), GNEChargingStation::setAttribute(), GNEParkingArea::setAttribute(), GNEDetectorE1::setAttribute(), GNEDetectorEntryExit::setAttribute(), GNEDetectorE1Instant::setAttribute(), GNEAccess::setAttribute(), GNECalibrator::setAttribute(), GNEDetectorE2::setAttribute(), GNEStop::setAttribute(), and GNEPOI::setAttribute().
|
protected |
change edge parents of an additional
Definition at line 420 of file GNEHierarchicalElementParents.cpp.
References GNEViewNet::getNet(), GNEAdditional::getViewNet(), and myLaneParents.
|
protected |
change edge parents of a demandElement
Definition at line 440 of file GNEHierarchicalElementParents.cpp.
References GNEViewNet::getNet(), GNEDemandElement::getViewNet(), and myLaneParents.
const std::vector< GNEAdditional * > & GNEHierarchicalElementParents::getAdditionalParents | ( | ) | const |
return vector of additionals that have as Parent this edge (For example, Calibrators)
Definition at line 86 of file GNEHierarchicalElementParents.cpp.
References myAdditionalParents.
Referenced by GNEPerson::calculatePersonPlanConnectionStop(), GNELane::drawGL(), GNEEdge::drawGL(), GNELane::endGeometryMoving(), GNEEdge::endGeometryMoving(), GNEClosingReroute::getAttribute(), GNERouteProbReroute::getAttribute(), GNEDestProbReroute::getAttribute(), GNEClosingLaneReroute::getAttribute(), GNEParkingAreaReroute::getAttribute(), GNEParkingSpace::getAttribute(), GNEVariableSpeedSignStep::getAttribute(), GNECalibratorFlow::getAttribute(), GNEDetectorEntryExit::getAttribute(), GNETAZSourceSink::getAttribute(), GNERerouterInterval::getAttribute(), GNEAccess::getAttribute(), GNEStop::getAttribute(), GNERide::getAttribute(), GNEPersonTrip::getAttribute(), GNEWalk::getAttribute(), GNEDestProbReroute::getCenteringBoundary(), GNERouteProbReroute::getCenteringBoundary(), GNEParkingAreaReroute::getCenteringBoundary(), GNEVariableSpeedSignStep::getCenteringBoundary(), GNECalibratorFlow::getCenteringBoundary(), GNERerouterInterval::getCenteringBoundary(), GNEStop::getCenteringBoundary(), GNEStop::getFromEdge(), GNEParkingAreaReroute::getHierarchyName(), GNEStop::getHierarchyName(), GNERide::getHierarchyName(), GNEPersonTrip::getHierarchyName(), GNEWalk::getHierarchyName(), GNEClosingReroute::getParentName(), GNEDestProbReroute::getParentName(), GNEClosingLaneReroute::getParentName(), GNERouteProbReroute::getParentName(), GNEParkingAreaReroute::getParentName(), GNEParkingSpace::getParentName(), GNEVariableSpeedSignStep::getParentName(), GNECalibratorFlow::getParentName(), GNETAZSourceSink::getParentName(), GNERerouterInterval::getParentName(), GNEAccess::getParentName(), GNEStop::getParentName(), GNEClosingReroute::getPositionInView(), GNEDestProbReroute::getPositionInView(), GNEClosingLaneReroute::getPositionInView(), GNERouteProbReroute::getPositionInView(), GNEParkingAreaReroute::getPositionInView(), GNECalibratorFlow::getPositionInView(), GNEVariableSpeedSignStep::getPositionInView(), GNETAZSourceSink::getPositionInView(), GNERerouterInterval::getPositionInView(), GNEStop::getToEdge(), GNEVariableSpeedSignStep::GNEVariableSpeedSignStep(), GNEVariableSpeedSignStep::isValid(), GNEAccess::isValid(), GNECalibratorFlowDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), GNEAdditionalHandler::parseAndBuildRerouterInterval(), GNEPersonPlanFrame::PersonPlanCreator::refreshPersonPlanCreator(), GNENet::replaceIncomingEdge(), GNETAZSourceSink::setAttribute(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents(), GNELane::startGeometryMoving(), GNEEdge::startGeometryMoving(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNELane::updateGeometry(), GNEEdge::updateGeometry(), GNEDetectorEntryExit::updateGeometry(), GNEStop::updateGeometry(), GNEPerson::updateGeometry(), GNERide::writeDemandElement(), GNEPersonTrip::writeDemandElement(), and GNEWalk::writeDemandElement().
const std::vector< GNEDemandElement * > & GNEHierarchicalElementParents::getDemandElementParents | ( | ) | const |
return vector of demand elements that have as Parent this edge (For example, Calibrators)
Definition at line 115 of file GNEHierarchicalElementParents.cpp.
References myDemandElementParents.
Referenced by GNEStop::commitGeometryMoving(), GNEVehicle::compute(), GNEFrameModuls::AttributeCarrierHierarchy::createPopUpMenu(), GNEStop::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNERouteHandler::embebbeRoute(), GNELane::endGeometryMoving(), GNEEdge::endGeometryMoving(), GNEStop::getAttribute(), GNERide::getAttribute(), GNEPersonTrip::getAttribute(), GNEWalk::getAttribute(), GNEPerson::getAttribute(), GNEVehicle::getAttribute(), GNERide::getColor(), GNEPersonTrip::getColor(), GNEWalk::getColor(), GNERide::getDemandElementProblem(), GNEPersonTrip::getDemandElementProblem(), GNEWalk::getDemandElementProblem(), GNEVehicle::getDemandElementProblem(), GNEWalk::getFromEdge(), GNEVehicle::getFromEdge(), GNEStop::getHierarchyName(), GNEWalk::getHierarchyName(), GNEStop::getParentName(), GNEVehicle::getParentName(), GNEStop::getPositionInView(), GNEWalk::getToEdge(), GNEVehicle::getToEdge(), GNEStop::getVClass(), GNERide::getVClass(), GNEPersonTrip::getVClass(), GNEWalk::getVClass(), GNEPerson::getVClass(), GNEVehicle::getVClass(), GNERide::isDemandElementValid(), GNEPersonTrip::isDemandElementValid(), GNEWalk::isDemandElementValid(), GNEVehicle::isDemandElementValid(), GNEVehicle::isValid(), GNEStop::moveGeometry(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdMoveItemDown(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdMoveItemUp(), GNEViewNet::onCmdToogleLockPerson(), GNEPersonPlanFrame::PersonPlanCreator::refreshPersonPlanCreator(), GNERouteHandler::separateEmbeddedRoute(), GNEWalk::setAttribute(), GNEPersonTrip::setAttribute(), GNEVehicle::setAttribute(), GNEVehicle::setColor(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents(), GNEViewNetHelper::DemandViewOptions::showNonInspectedDemandElements(), GNELane::startGeometryMoving(), GNEEdge::startGeometryMoving(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), GNERouteHandler::transformToVehicle(), GNELane::updateGeometry(), GNEEdge::updateGeometry(), GNERide::updateGeometry(), GNEPersonTrip::updateGeometry(), GNEWalk::updateGeometry(), GNERide::writeDemandElement(), GNEPersonTrip::writeDemandElement(), GNEWalk::writeDemandElement(), GNEPerson::writeDemandElement(), and GNEVehicle::writeDemandElement().
const std::vector< GNEEdge * > & GNEHierarchicalElementParents::getEdgeParents | ( | ) | const |
get edge parents
Definition at line 150 of file GNEHierarchicalElementParents.cpp.
References myEdgeParents.
Referenced by GNEVehicleFrame::addVehicle(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowWithEmbeddedRoute(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVehicleWithEmbeddedRoute(), GNEVehicle::compute(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNECalibrator::drawGL(), GNEVehicle::drawGL(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNERouteProbe::getAttribute(), GNETAZSourceSink::getAttribute(), GNECalibrator::getAttribute(), GNERide::getAttribute(), GNEPersonTrip::getAttribute(), GNEWalk::getAttribute(), GNERoute::getAttribute(), GNEVehicle::getAttribute(), GNETAZSourceSink::getCenteringBoundary(), GNERide::getCenteringBoundary(), GNEPersonTrip::getCenteringBoundary(), GNEWalk::getCenteringBoundary(), GNERoute::getCenteringBoundary(), GNEPerson::getCenteringBoundary(), GNERide::getDemandElementProblem(), GNEPersonTrip::getDemandElementProblem(), GNEWalk::getDemandElementProblem(), GNERoute::getDemandElementProblem(), GNEVehicle::getDemandElementProblem(), GNERide::getFromEdge(), GNEPersonTrip::getFromEdge(), GNEWalk::getFromEdge(), GNERoute::getFromEdge(), GNEVehicle::getFromEdge(), GNERide::getHierarchyName(), GNEPersonTrip::getHierarchyName(), GNEWalk::getHierarchyName(), GNEPerson::getHierarchyName(), GNEVehicle::getHierarchyName(), GNERouteHandler::PersonPlansValues::getLastEdge(), GNEVaporizer::getParentName(), GNERouteProbe::getParentName(), GNECalibrator::getParentName(), GNEVehicle::getParentName(), GNEVaporizer::getPositionInView(), GNERouteProbe::getPositionInView(), GNECalibrator::getPositionInView(), GNERide::getToEdge(), GNEPersonTrip::getToEdge(), GNEWalk::getToEdge(), GNERoute::getToEdge(), GNEVehicle::getToEdge(), GNERide::isDemandElementValid(), GNEPersonTrip::isDemandElementValid(), GNEWalk::isDemandElementValid(), GNERoute::isDemandElementValid(), GNEVehicle::isDemandElementValid(), GNECalibrator::isValid(), GNERide::moveGeometry(), GNEPersonTrip::moveGeometry(), GNEWalk::moveGeometry(), GNERoute::GNERoutePopupMenu::onCmdApplyDistance(), GNEPersonPlanFrame::PersonPlanCreator::refreshPersonPlanCreator(), GNERide::setAttribute(), GNEWalk::setAttribute(), GNEPersonTrip::setAttribute(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToTrip(), GNEVaporizer::updateGeometry(), GNERouteProbe::updateGeometry(), GNECalibrator::updateGeometry(), GNERoute::updateGeometry(), GNEVehicle::updateGeometry(), GNERide::writeDemandElement(), GNEPersonTrip::writeDemandElement(), GNEWalk::writeDemandElement(), GNERoute::writeDemandElement(), and GNEVehicle::writeDemandElement().
const std::vector< GNELane * > & GNEHierarchicalElementParents::getLaneParents | ( | ) | const |
get lanes of VSS
Definition at line 182 of file GNEHierarchicalElementParents.cpp.
References myLaneParents.
Referenced by GNERouteHandler::PersonPlansValues::calculateEdgePath(), GNEDetectorE2::checkE2MultilaneIntegrity(), GNEStop::commitGeometryMoving(), GNEDetectorE2::commitGeometryMoving(), GNEPOI::commitGeometryMoving(), GNECalibrator::drawGL(), GNEStop::drawGL(), GNEStop::endGeometryMoving(), GNEDetectorE1Instant::fixAdditionalProblem(), GNEDetectorE1::fixAdditionalProblem(), GNEStoppingPlace::fixAdditionalProblem(), GNEDetectorEntryExit::fixAdditionalProblem(), GNEDetectorE2::fixAdditionalProblem(), GNEDetectorE1Instant::getAdditionalProblem(), GNEDetectorE1::getAdditionalProblem(), GNEStoppingPlace::getAdditionalProblem(), GNEDetectorEntryExit::getAdditionalProblem(), GNEDetectorE2::getAdditionalProblem(), GNEChargingStation::getAttribute(), GNEContainerStop::getAttribute(), GNEBusStop::getAttribute(), GNEParkingArea::getAttribute(), GNEDetectorE1::getAttribute(), GNEDetectorEntryExit::getAttribute(), GNEAccess::getAttribute(), GNEDetectorE1Instant::getAttribute(), GNECalibrator::getAttribute(), GNEDetectorE2::getAttribute(), GNEStop::getAttribute(), GNEPOI::getAttribute(), GNEStop::getAttributeDouble(), GNEStop::getDemandElementProblem(), GNEAccess::getEdge(), GNEStoppingPlace::getEndGeometryPositionOverLane(), GNEStop::getEndGeometryPositionOverLane(), GNEStoppingPlace::getEndPosition(), GNEStop::getFromEdge(), GNEAccess::getHierarchyName(), GNEDetector::getLane(), GNERouteHandler::PersonPlansValues::getLastEdge(), GNECalibrator::getParentName(), GNEStop::getParentName(), GNEStoppingPlace::getParentName(), GNEPOI::getPopUpMenu(), GNEAccess::getPositionInView(), GNECalibrator::getPositionInView(), GNEStop::getPositionInView(), GNEStoppingPlace::getPositionInView(), GNEStoppingPlace::getStartGeometryPositionOverLane(), GNEStop::getStartGeometryPositionOverLane(), GNEStop::getToEdge(), GNEAccess::isAccessPositionFixed(), GNEDetectorE1Instant::isAdditionalValid(), GNEDetectorE1::isAdditionalValid(), GNEStoppingPlace::isAdditionalValid(), GNEDetectorEntryExit::isAdditionalValid(), GNEDetectorE2::isAdditionalValid(), GNEStop::isDemandElementValid(), GNEBusStop::isValid(), GNEChargingStation::isValid(), GNEContainerStop::isValid(), GNEParkingArea::isValid(), GNEDetectorE1::isValid(), GNEDetectorEntryExit::isValid(), GNEAccess::isValid(), GNEDetectorE1Instant::isValid(), GNECalibrator::isValid(), GNEStop::isValid(), GNEPOI::isValid(), GNEAccess::moveGeometry(), GNEDetectorE1::moveGeometry(), GNEDetectorEntryExit::moveGeometry(), GNEDetectorE1Instant::moveGeometry(), GNEStoppingPlace::moveGeometry(), GNEStop::moveGeometry(), GNEDetectorE2::moveGeometry(), GNEPOI::moveGeometry(), GNEPersonPlanFrame::personPlanCreated(), GNEPersonPlanFrame::PersonPlanCreator::refreshPersonPlanCreator(), GNEPOI::setAttribute(), GNEStoppingPlace::setStoppingPlaceGeometry(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents(), GNEStop::startGeometryMoving(), GNEChargingStation::updateGeometry(), GNEContainerStop::updateGeometry(), GNEBusStop::updateGeometry(), GNEParkingArea::updateGeometry(), GNEAccess::updateGeometry(), GNEDetectorE1::updateGeometry(), GNEDetectorEntryExit::updateGeometry(), GNEDetectorE1Instant::updateGeometry(), GNECalibrator::updateGeometry(), GNEStop::updateGeometry(), GNEDetectorE2::updateGeometry(), GNEPOI::updateGeometry(), GNEPerson::updateGeometry(), and GNEPOI::writeShape().
|
pure virtual |
Returns position of hierarchical element in view.
Implemented in GNEDemandElement, GNEVehicle, GNEAdditional, GNEPerson, GNERoute, GNEPOI, GNEWalk, GNEPersonTrip, GNERide, GNEPoly, GNEDetector, GNEStoppingPlace, GNEStop, GNEShape, GNEVehicleType, GNECalibrator, GNENetElement, GNEEdge, GNEJunction, GNEAccess, GNERerouter, GNEVariableSpeedSign, GNERerouterInterval, GNETAZSourceSink, GNECalibratorFlow, GNEParkingSpace, GNEVariableSpeedSignStep, GNEDetectorE3, GNEParkingAreaReroute, GNELane, GNEClosingLaneReroute, GNEDestProbReroute, GNERouteProbReroute, GNEClosingReroute, GNERouteProbe, GNEVaporizer, GNECrossing, GNETAZ, and GNEConnection.
Referenced by GNEHierarchicalElementParents::ParentConnections::update().
const std::vector< GNEShape * > & GNEHierarchicalElementParents::getShapeParents | ( | ) | const |
get shapes of VSS
Definition at line 214 of file GNEHierarchicalElementParents.cpp.
References myShapeParents.
Referenced by GNELane::endGeometryMoving(), GNELane::startGeometryMoving(), and GNELane::updateGeometry().
|
privatedelete |
Invalidated assignment operator.
void GNEHierarchicalElementParents::removeAdditionalParent | ( | GNEAdditional * | additional | ) |
remove additional parent from this additional
Definition at line 74 of file GNEHierarchicalElementParents.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), myAC, and myAdditionalParents.
void GNEHierarchicalElementParents::removeDemandElementParent | ( | GNEDemandElement * | demandElement | ) |
remove demand element parent from this demand element
Definition at line 103 of file GNEHierarchicalElementParents.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), myAC, and myDemandElementParents.
void GNEHierarchicalElementParents::removeEdgeParent | ( | GNEEdge * | edge | ) |
remove edge parent
Definition at line 134 of file GNEHierarchicalElementParents.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), myAC, myEdgeParents, SUMO_TAG_EDGE, and toString().
void GNEHierarchicalElementParents::removeLaneParent | ( | GNELane * | lane | ) |
remove lane parent
Definition at line 169 of file GNEHierarchicalElementParents.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), myAC, myLaneParents, SUMO_TAG_EDGE, and toString().
void GNEHierarchicalElementParents::removeShapeParent | ( | GNEShape * | shape | ) |
remove shape parent
Definition at line 201 of file GNEHierarchicalElementParents.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), myAC, myShapeParents, SUMO_TAG_EDGE, and toString().
|
pure virtual |
Implemented in GNEDemandElement, GNEVehicle, GNEAdditional, GNEPerson, GNERoute, GNEWalk, GNEPersonTrip, GNEPOI, GNERide, GNEDetectorE2, GNEPoly, GNEDetector, GNEStoppingPlace, GNEStop, GNEShape, GNEVehicleType, GNECalibrator, GNEDetectorE1Instant, GNENetElement, GNEDetectorEntryExit, GNEDetectorE1, GNEEdge, GNEAccess, GNERerouter, GNEJunction, GNEVariableSpeedSign, GNERerouterInterval, GNETAZSourceSink, GNECalibratorFlow, GNEParkingSpace, GNEVariableSpeedSignStep, GNEDetectorE3, GNEParkingAreaReroute, GNELane, GNEClosingLaneReroute, GNEDestProbReroute, GNERouteProbReroute, GNEClosingReroute, GNERouteProbe, GNEVaporizer, GNECrossing, GNEParkingArea, GNETAZ, GNEBusStop, GNEChargingStation, GNEContainerStop, and GNEConnection.
|
friend |
declare GNEChange_Children as friend class
Definition at line 53 of file GNEHierarchicalElementParents.h.
|
private |
pointer to AC (needed to avoid diamond problem)
Definition at line 252 of file GNEHierarchicalElementParents.h.
Referenced by addAdditionalParent(), addDemandElementParent(), addEdgeParent(), addLaneParent(), addShapeParent(), changeAdditionalParent(), changeDemandElementParent(), removeAdditionalParent(), removeDemandElementParent(), removeEdgeParent(), removeLaneParent(), and removeShapeParent().
|
private |
list of additional parents of this element
Definition at line 246 of file GNEHierarchicalElementParents.h.
Referenced by addAdditionalParent(), changeAdditionalParent(), getAdditionalParents(), removeAdditionalParent(), and GNEHierarchicalElementParents::ParentConnections::update().
|
private |
list of demand elements parents of this element
Definition at line 249 of file GNEHierarchicalElementParents.h.
Referenced by addDemandElementParent(), changeDemandElementParent(), getDemandElementParents(), and removeDemandElementParent().
|
private |
list of edge parents of this element
Definition at line 237 of file GNEHierarchicalElementParents.h.
Referenced by addEdgeParent(), changeEdgeParents(), getEdgeParents(), removeEdgeParent(), and GNEHierarchicalElementParents::ParentConnections::update().
|
private |
list of lane parents of this element
Definition at line 240 of file GNEHierarchicalElementParents.h.
Referenced by addLaneParent(), changeLaneParents(), getLaneParents(), removeLaneParent(), and GNEHierarchicalElementParents::ParentConnections::update().
|
protected |
variable ParentConnections
Definition at line 233 of file GNEHierarchicalElementParents.h.
|
private |
list of shape parents of this element
Definition at line 243 of file GNEHierarchicalElementParents.h.
Referenced by addShapeParent(), getShapeParents(), and removeShapeParent().