Eclipse SUMO - Simulation of Urban MObility
GNEHierarchicalElementParents Class Referenceabstract

An special type of Attribute carrier that owns hierarchical elements. More...

#include <GNEHierarchicalElementParents.h>

Inheritance diagram for GNEHierarchicalElementParents:
Collaboration diagram for GNEHierarchicalElementParents:

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...
 
GNEHierarchicalElementParentsoperator= (const GNEHierarchicalElementParents &)=delete
 Invalidated assignment operator. More...
 

Private Attributes

GNEAttributeCarriermyAC
 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...
 

Detailed Description

An special type of Attribute carrier that owns hierarchical elements.

Definition at line 48 of file GNEHierarchicalElementParents.h.

Constructor & Destructor Documentation

◆ GNEHierarchicalElementParents() [1/2]

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.

Parameters
[in]tagType of xml tag that define the element (SUMO_TAG_BUS_STOP, SUMO_TAG_JUNCTION, etc...)
[in]edgeParentsvector of edge parents
[in]laneParentsvector of lane parents
[in]shapeParentsvector of shape parents
[in]additionalParentsvector of additional parents
[in]demandElementParentsvector of demand element parents

Definition at line 43 of file GNEHierarchicalElementParents.cpp.

◆ ~GNEHierarchicalElementParents()

GNEHierarchicalElementParents::~GNEHierarchicalElementParents ( )

Destructor.

Definition at line 59 of file GNEHierarchicalElementParents.cpp.

◆ GNEHierarchicalElementParents() [2/2]

GNEHierarchicalElementParents::GNEHierarchicalElementParents ( const GNEHierarchicalElementParents )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ addAdditionalParent()

void GNEHierarchicalElementParents::addAdditionalParent ( GNEAdditional additional)

◆ addDemandElementParent()

void GNEHierarchicalElementParents::addDemandElementParent ( GNEDemandElement demandElement)

◆ addEdgeParent()

void GNEHierarchicalElementParents::addEdgeParent ( GNEEdge edge)

◆ addLaneParent()

void GNEHierarchicalElementParents::addLaneParent ( GNELane lane)

◆ addShapeParent()

void GNEHierarchicalElementParents::addShapeParent ( GNEShape shape)

◆ changeAdditionalParent() [1/3]

void GNEHierarchicalElementParents::changeAdditionalParent ( GNEShape shapeTobeChanged,
const std::string &  newAdditionalParentID,
int  additionalParentIndex 
)
protected

change additional parent of a shape

Exceptions
exceptionif this shape doesn't have previously a defined Additional parent
exceptionif 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().

◆ changeAdditionalParent() [2/3]

void GNEHierarchicalElementParents::changeAdditionalParent ( GNEAdditional additionalTobeChanged,
const std::string &  newAdditionalParentID,
int  additionalParentIndex 
)
protected

change additional parent of an additional

Exceptions
exceptionif this additional doesn't have previously a defined Additional parent
exceptionif 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().

◆ changeAdditionalParent() [3/3]

void GNEHierarchicalElementParents::changeAdditionalParent ( GNEDemandElement demandElementTobeChanged,
const std::string &  newAdditionalParentID,
int  additionalParentIndex 
)
protected

change additional parent of a demand element

Exceptions
exceptionif this additional doesn't have previously a defined Additional parent
exceptionif 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().

◆ changeDemandElementParent() [1/3]

void GNEHierarchicalElementParents::changeDemandElementParent ( GNEShape shapeTobeChanged,
const std::string &  newDemandElementParentID,
int  demandElementParentIndex 
)
protected

change first demand element parent of a shape

Exceptions
exceptionif this demand element doesn't have previously a defined DemandElement parent
exceptionif 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().

◆ changeDemandElementParent() [2/3]

void GNEHierarchicalElementParents::changeDemandElementParent ( GNEAdditional additionalTobeChanged,
const std::string &  newDemandElementParentID,
int  demandElementParentIndex 
)
protected

change first demand element parent of an additional

Exceptions
exceptionif this demand element doesn't have previously a defined DemandElement parent
exceptionif 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().

◆ changeDemandElementParent() [3/3]

void GNEHierarchicalElementParents::changeDemandElementParent ( GNEDemandElement demandElementTobeChanged,
const std::string &  newDemandElementParentID,
int  demandElementParentIndex 
)
protected

change first demand element parent of demandElement

Exceptions
exceptionif this demand element doesn't have previously a defined DemandElement parent
exceptionif 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().

◆ changeEdgeParents() [1/4]

void GNEHierarchicalElementParents::changeEdgeParents ( GNEShape elementChild,
const std::string &  newEdgeIDs 
)
protected

◆ changeEdgeParents() [2/4]

void GNEHierarchicalElementParents::changeEdgeParents ( GNEAdditional elementChild,
const std::string &  newEdgeIDs 
)
protected

change edge parents of an additional

Definition at line 360 of file GNEHierarchicalElementParents.cpp.

References GNEViewNet::getNet(), GNEAdditional::getViewNet(), and myEdgeParents.

◆ changeEdgeParents() [3/4]

void GNEHierarchicalElementParents::changeEdgeParents ( GNEDemandElement elementChild,
const std::string &  newEdgeIDs 
)
protected

change edge parents of a demandElement

Definition at line 380 of file GNEHierarchicalElementParents.cpp.

References GNEViewNet::getNet(), GNEDemandElement::getViewNet(), and myEdgeParents.

◆ changeEdgeParents() [4/4]

void GNEHierarchicalElementParents::changeEdgeParents ( GNEDemandElement elementChild,
const std::vector< GNEEdge *> &  newEdges 
)
protected

change edge parents of a demandElement (GNEEdge version)

Definition at line 400 of file GNEHierarchicalElementParents.cpp.

References myEdgeParents.

◆ changeLaneParents() [1/3]

◆ changeLaneParents() [2/3]

void GNEHierarchicalElementParents::changeLaneParents ( GNEAdditional elementChild,
const std::string &  newLaneIDs 
)
protected

change edge parents of an additional

Definition at line 420 of file GNEHierarchicalElementParents.cpp.

References GNEViewNet::getNet(), GNEAdditional::getViewNet(), and myLaneParents.

◆ changeLaneParents() [3/3]

void GNEHierarchicalElementParents::changeLaneParents ( GNEDemandElement elementChild,
const std::string &  newLaneIDs 
)
protected

change edge parents of a demandElement

Definition at line 440 of file GNEHierarchicalElementParents.cpp.

References GNEViewNet::getNet(), GNEDemandElement::getViewNet(), and myLaneParents.

◆ getAdditionalParents()

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().

◆ getDemandElementParents()

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().

◆ getEdgeParents()

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().

◆ getLaneParents()

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().

◆ getPositionInView()

◆ getShapeParents()

const std::vector< GNEShape * > & GNEHierarchicalElementParents::getShapeParents ( ) const

◆ operator=()

GNEHierarchicalElementParents& GNEHierarchicalElementParents::operator= ( const GNEHierarchicalElementParents )
privatedelete

Invalidated assignment operator.

◆ removeAdditionalParent()

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.

◆ removeDemandElementParent()

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.

◆ removeEdgeParent()

void GNEHierarchicalElementParents::removeEdgeParent ( GNEEdge edge)

◆ removeLaneParent()

void GNEHierarchicalElementParents::removeLaneParent ( GNELane lane)

◆ removeShapeParent()

void GNEHierarchicalElementParents::removeShapeParent ( GNEShape shape)

◆ updateGeometry()

Friends And Related Function Documentation

◆ GNEChange_Children

friend class GNEChange_Children
friend

declare GNEChange_Children as friend class

Definition at line 53 of file GNEHierarchicalElementParents.h.

Field Documentation

◆ myAC

◆ myAdditionalParents

std::vector<GNEAdditional*> GNEHierarchicalElementParents::myAdditionalParents
private

◆ myDemandElementParents

std::vector<GNEDemandElement*> GNEHierarchicalElementParents::myDemandElementParents
private

list of demand elements parents of this element

Definition at line 249 of file GNEHierarchicalElementParents.h.

Referenced by addDemandElementParent(), changeDemandElementParent(), getDemandElementParents(), and removeDemandElementParent().

◆ myEdgeParents

std::vector<GNEEdge*> GNEHierarchicalElementParents::myEdgeParents
private

◆ myLaneParents

std::vector<GNELane*> GNEHierarchicalElementParents::myLaneParents
private

◆ myParentConnections

ParentConnections GNEHierarchicalElementParents::myParentConnections
protected

variable ParentConnections

Definition at line 233 of file GNEHierarchicalElementParents.h.

◆ myShapeParents

std::vector<GNEShape*> GNEHierarchicalElementParents::myShapeParents
private

list of shape parents of this element

Definition at line 243 of file GNEHierarchicalElementParents.h.

Referenced by addShapeParent(), getShapeParents(), and removeShapeParent().


The documentation for this class was generated from the following files: