![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEMoveElementLaneDouble.h>
Public Member Functions | |
| void | fixMovingProblem () |
| fix moving problem | |
| double | getEndFixedPositionOverLane (const bool adjustGeometryFactor) const |
| get end offset position over lane | |
| GNEMoveOperation * | getMoveOperation () |
| get lane movable move operation for elements with | |
| std::string | getMovingProblem () const |
| return a string with the current moving problem | |
| double | getStartFixedPositionOverLane (const bool adjustGeometryFactor) const |
| get start offset position over lane | |
| GNEMoveElementLaneDouble (GNEAttributeCarrier *element, SumoXMLAttr startPosAttr, double &startPosValue, SumoXMLAttr endPosAttr, double &endPosValue, bool &friendlyPosition) | |
| Constructor. | |
| bool | isMoveElementValid () const |
| check if current moving element is valid to be written into XML | |
| void | removeGeometryPoint (const Position clickedPosition, GNEUndoList *undoList) override |
| remove geometry point in the clicked position | |
| void | writeMoveAttributes (OutputDevice &device, const bool writeLength) const |
| write move attributes | |
| ~GNEMoveElementLaneDouble () | |
| Destructor. | |
functions related with moving attributes | |
| std::string | getMovingAttribute (SumoXMLAttr key) const override |
| get moving attribute | |
| double | getMovingAttributeDouble (SumoXMLAttr key) const override |
| get moving attribute double | |
| Position | getMovingAttributePosition (SumoXMLAttr key) const override |
| get moving attribute position | |
| PositionVector | getMovingAttributePositionVector (SumoXMLAttr key) const override |
| get moving attribute positionVector | |
| void | setMovingAttribute (SumoXMLAttr key, const std::string &value, GNEUndoList *undoList) override |
| set moving attribute (using undo-list) | |
| bool | isMovingAttributeValid (SumoXMLAttr key, const std::string &value) const override |
| check if the given moving attribute is valid | |
| void | setMovingAttribute (SumoXMLAttr key, const std::string &value) override |
| set moving attribute | |
Static Public Member Functions | |
| static void | commitMove (const GNEViewNet *viewNet, GNEMoveOperation *moveOperation, const GNEMoveOffset &offset, GNEUndoList *undoList) |
| commit move element for the given offset | |
| static void | moveElement (const GNEViewNet *viewNet, GNEMoveOperation *moveOperation, const GNEMoveOffset &offset) |
| move element the for given offset (note: offset can be X-Y-0, 0-0-Z or X-Y-Z) | |
Data Fields | |
| double | myMovingLateralOffset = 0 |
| move element lateral offset | |
Static Public Attributes | |
| static const double | defaultSize = 10 |
| default element size | |
Protected Member Functions | |
| GNEMoveOperation * | getEditShapeOperation (const GUIGlObject *obj, const PositionVector originalShape, const bool maintainShapeClosed) |
| calculate move shape operation | |
Protected Attributes | |
| GNEAttributeCarrier * | myMovedElement = nullptr |
| pointer to element | |
Private Member Functions | |
| void | commitMoveShape (const GNEMoveResult &moveResult, GNEUndoList *undoList) override |
| commit move shape | |
| GNEMoveElementLaneDouble (const GNEMoveElementLaneDouble &)=delete | |
| Invalidated copy constructor. | |
| GNEMoveElementLaneDouble & | operator= (const GNEMoveElementLaneDouble &src)=delete |
| Invalidated assignment operator. | |
| void | setMoveShape (const GNEMoveResult &moveResult) override |
| set move shape | |
| void | setSize (const std::string &value, GNEUndoList *undoList) |
| set size | |
Static Private Member Functions | |
| static PositionVector | calculateExtrapolatedVector (const GNEMoveOperation *moveOperation, const GNEMoveResult &moveResult) |
| calculate width/height shape | |
| static double | calculateLaneOffset (const GNEViewNet *viewNet, const GNELane *lane, const double firstPosition, const double lastPosition, const GNEMoveOffset &offset) |
| calculate lane offset (used in calculateLanePosition) | |
| static void | calculateLanePosition (double &starPos, const GNEViewNet *viewNet, const GNELane *lane, const double posOverLane, const GNEMoveOffset &offset) |
| calculate lane position over one lane with only one position (accesss, E1, star/end positions, etc.) | |
| static void | calculateLanePositions (double &starPos, double &endPos, const GNEViewNet *viewNet, const GNELane *firstLane, const double firstPosOverLane, const GNELane *lastLane, const double lastPosOverLane, const bool firstLaneClicked, const GNEMoveOffset &offset) |
| calculate lane position over two lane with two positions (E2 Multilanes) | |
| static void | calculateLanePositions (double &starPos, double &endPos, const GNEViewNet *viewNet, const GNELane *lane, const double firstPosOverLane, const double lastPosOverLane, const GNEMoveOffset &offset) |
| calculate lane position over one lane with two positions (stoppingPlaces, E2 single lanes) | |
| static void | calculateNewLaneChange (const GNEViewNet *viewNet, const GNELane *originalLane, const GNELane *&newLane, double &laneOffset) |
| calculate new lane change | |
Private Attributes | |
| GNEMoveElementLaneSingle * | myEndPos |
| end position | |
| ReferencePosition | myReferencePosition = ReferencePosition::CENTER |
| reference position | |
| GNEMoveElementLaneSingle * | myStartPos |
| start position | |
| bool | myTemplateForceSize = false |
| force size (only used in AttributeCarrier templates | |
| double | myTemplateSize = defaultSize |
| size (only use in AttributeCarrier templates) | |
Definition at line 37 of file GNEMoveElementLaneDouble.h.
| GNEMoveElementLaneDouble::GNEMoveElementLaneDouble | ( | GNEAttributeCarrier * | element, |
| SumoXMLAttr | startPosAttr, | ||
| double & | startPosValue, | ||
| SumoXMLAttr | endPosAttr, | ||
| double & | endPosValue, | ||
| bool & | friendlyPosition | ||
| ) |
Constructor.
| [in] | element | moved element |
| [in] | startPosAttr | Start position attribute |
| [in] | startPosValue | Start position value |
| [in] | endPosAttr | End position attribute |
| [in] | endPosValue | End position value |
| [in] | friendlyPos | enable or disable friendly position |
Definition at line 44 of file GNEMoveElementLaneDouble.cpp.
| GNEMoveElementLaneDouble::~GNEMoveElementLaneDouble | ( | ) |
Destructor.
Definition at line 55 of file GNEMoveElementLaneDouble.cpp.
References myEndPos, and myStartPos.
|
privatedelete |
Invalidated copy constructor.
|
staticprivateinherited |
calculate width/height shape
Definition at line 419 of file GNEMoveElement.cpp.
References PositionVector::extrapolate2D(), GNEMoveOperation::firstGeometryPoint, PositionVector::length2D(), PositionVector::nearest_offset_to_point2D(), GNEMoveOperation::originalShape, PositionVector::reverse(), GNEMoveOperation::shapeToMove, and GNEMoveResult::shapeToUpdate.
Referenced by GNEMoveElement::commitMove(), and GNEMoveElement::moveElement().
|
staticprivateinherited |
calculate lane offset (used in calculateLanePosition)
Definition at line 279 of file GNEMoveElement.cpp.
References Position::add(), GNELane::getLaneShape(), PositionVector::length2D(), PositionVector::nearest_offset_to_point2D(), PositionVector::positionAtOffset2D(), GUISUMOAbstractView::snapToActiveGrid(), GNEMoveOffset::x, GNEMoveOffset::y, and GNEMoveOffset::z.
Referenced by GNEMoveElement::calculateLanePosition(), and GNEMoveElement::calculateLanePositions().
|
staticprivateinherited |
calculate lane position over one lane with only one position (accesss, E1, star/end positions, etc.)
Definition at line 322 of file GNEMoveElement.cpp.
References GNEMoveElement::calculateLaneOffset(), and GNELane::getLengthGeometryFactor().
Referenced by GNEMoveElement::calculateLanePositions(), GNEMoveElement::commitMove(), and GNEMoveElement::moveElement().
|
staticprivateinherited |
calculate lane position over two lane with two positions (E2 Multilanes)
Definition at line 343 of file GNEMoveElement.cpp.
References GNEMoveElement::calculateLanePosition(), GNELane::getLaneShape(), and PositionVector::length2D().
|
staticprivateinherited |
calculate lane position over one lane with two positions (stoppingPlaces, E2 single lanes)
Definition at line 332 of file GNEMoveElement.cpp.
References GNEMoveElement::calculateLaneOffset(), and GNELane::getLengthGeometryFactor().
Referenced by GNEMoveElement::commitMove(), and GNEMoveElement::moveElement().
|
staticprivateinherited |
calculate new lane change
Definition at line 387 of file GNEMoveElement.cpp.
References Position::distanceSquaredTo2D(), Position::distanceTo2D(), GNEHierarchicalElement::getChildLanes(), GNELane::getIndex(), GNELane::getLaneShape(), GNELane::getParentEdge(), GUISUMOAbstractView::getPositionInformation(), PositionVector::nearest_offset_to_point2D(), and PositionVector::positionAtOffset2D().
Referenced by GNEMoveElement::commitMove(), and GNEMoveElement::moveElement().
|
staticinherited |
commit move element for the given offset
Definition at line 180 of file GNEMoveElement.cpp.
References PositionVector::add(), GNEMoveOperation::allowChangeLane, GNEMoveElement::calculateExtrapolatedVector(), GNEMoveElement::calculateLanePosition(), GNEMoveElement::calculateLanePositions(), GNEMoveElement::calculateNewLaneChange(), GNEMoveOperation::clickedFirstLane, GNEMoveElement::commitMoveShape(), GNEMoveOperation::firstLane, GNEMoveResult::firstLaneOffset, GNEMoveOperation::firstPosition, GNEMoveOperation::geometryPointsToMove, GNEMoveResult::geometryPointsToMove, GNEMoveFrame::getCommonMoveOptions(), GNEMoveFrame::CommonMoveOptions::getMergeGeometryPoints(), GNEViewParent::getMoveFrame(), GNEViewNet::getViewParent(), GNEMoveOperation::HEIGHT, Position::INVALID, INVALID_DOUBLE, GNEMoveOperation::lastLane, GNEMoveOperation::lastPosition, GNEMoveOperation::LENGTH, GNEMoveOperation::moveElement, GNEMoveResult::newFirstLane, GNEMoveResult::newFirstPos, GNEMoveResult::newLastLane, GNEMoveResult::newLastPos, GNEMoveOperation::operationType, GNEMoveOperation::originalGeometryPoints, GNEMoveOperation::originalShape, PositionVector::removeDoublePoints(), GNEMoveElement::setMoveShape(), GNEMoveOperation::shapeToMove, GNEMoveResult::shapeToUpdate, GUISUMOAbstractView::snapToActiveGrid(), GNEMoveOperation::WIDTH, GNEMoveOffset::x, GNEMoveOffset::y, and GNEMoveOffset::z.
Referenced by GNEViewNetHelper::MoveMultipleElementModul::finishMoveSelection(), GNEViewNetHelper::MoveSingleElementModul::finishMoveSingleElement(), GNEViewNetHelper::MoveMultipleElementModul::moveSelection(), and GNEViewNetHelper::MoveSingleElementModul::moveSingleElement().
|
overrideprivatevirtual |
commit move shape
Implements GNEMoveElement.
Definition at line 454 of file GNEMoveElementLaneDouble.cpp.
References GNEUndoList::begin(), GNEMoveElementLaneSingle::commitMoveShape(), GNEUndoList::end(), GNEAttributeCarrier::getTagStr(), INVALID_DOUBLE, myEndPos, GNEMoveElement::myMovedElement, myStartPos, GNEMoveResult::newFirstPos, GNEMoveResult::newLastPos, and TLF.
| void GNEMoveElementLaneDouble::fixMovingProblem | ( | ) |
fix moving problem
Definition at line 342 of file GNEMoveElementLaneDouble.cpp.
References GNEMoveElementLaneSingle::fixMovingProblem(), GNEMoveElementLaneSingle::getFixedPositionOverLane(), GNEAttributeCarrier::getHierarchicalElement(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentLanes(), GNEViewNet::getUndoList(), GNENet::getViewNet(), INVALID_DOUBLE, myEndPos, GNEMoveElement::myMovedElement, GNEMoveElementLaneSingle::myPosAttr, GNEMoveElementLaneSingle::myPosOverLane, myStartPos, GNEAttributeCarrier::setAttribute(), and toString().
Referenced by GNELaneAreaDetector::fixAdditionalProblem(), GNEOverheadWire::fixAdditionalProblem(), GNEStoppingPlace::fixAdditionalProblem(), and GNEStop::fixDemandElementProblem().
|
protectedinherited |
calculate move shape operation
Definition at line 70 of file GNEMoveElement.cpp.
References GUIViewObjectsHandler::getSelectedGeometryPoints(), GUIViewObjectsHandler::getSelectedPositionOverShape(), gViewObjectsHandler, PositionVector::indexOfClosest(), PositionVector::insertAtClosest(), and Position::INVALID.
Referenced by GNEMoveElementConnection::getMoveOperation(), GNEMoveElementCrossing::getMoveOperation(), GNEMoveElementEdge::getMoveOperation(), GNEMoveElementJunction::getMoveOperation(), GNEMoveElementLane::getMoveOperation(), and GNEMoveElementShape::getMoveOperation().
| double GNEMoveElementLaneDouble::getEndFixedPositionOverLane | ( | const bool | adjustGeometryFactor | ) | const |
get end offset position over lane
Definition at line 422 of file GNEMoveElementLaneDouble.cpp.
References GNEMoveElementLaneSingle::getFixedPositionOverLane(), myEndPos, and myStartPos.
Referenced by getMovingAttributeDouble(), setSize(), GNEStoppingPlace::setStoppingPlaceGeometry(), and GNELaneAreaDetector::updateGeometry().
|
virtual |
get lane movable move operation for elements with
Implements GNEMoveElement.
Definition at line 62 of file GNEMoveElementLaneDouble.cpp.
References GNEAttributeCarrier::drawMovingGeometryPoints(), GNEMoveFrame::CommonMoveOptions::getAllowChangeLane(), GNEMoveFrame::getCommonMoveOptions(), GNEAttributeCarrier::getGUIGlObject(), GNEAttributeCarrier::getHierarchicalElement(), GNEAttributeCarrier::getMoveElement(), GNEViewParent::getMoveFrame(), GNEMoveElementLaneSingle::getMoveOperation(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentLanes(), GUIViewObjectsHandler::getSelectedGeometryPoints(), GNENet::getViewNet(), GNEViewNet::getViewParent(), gViewObjectsHandler, INVALID_DOUBLE, GUIViewObjectsHandler::isObjectSelected(), myEndPos, GNEMoveElement::myMovedElement, GNEMoveElementLaneSingle::myPosOverLane, and myStartPos.
|
overridevirtual |
get moving attribute
Implements GNEMoveElement.
Definition at line 110 of file GNEMoveElementLaneDouble.cpp.
References GNEAttributeCarrier::getCommonAttribute(), GNEAttributeCarrier::getHierarchicalElement(), GNEMoveElementLaneSingle::getMovingAttribute(), getMovingAttributeDouble(), GNEHierarchicalElement::getParentLanes(), StringBijection< T >::getString(), GNE_ATTR_FORCESIZE, GNE_ATTR_REFERENCE, GNE_ATTR_SHIFTLANEINDEX, GNE_ATTR_SIZE, GNEAttributeCarrier::isTemplate(), myEndPos, GNEMoveElement::myMovedElement, GNEMoveElementLaneSingle::myPosAttr, myReferencePosition, myStartPos, myTemplateForceSize, myTemplateSize, GNEAttributeCarrier::parseIDs(), SUMOXMLDefinitions::ReferencePositions, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_LANE, SUMO_ATTR_LANES, SUMO_ATTR_LENGTH, and toString().
Referenced by GNEOverheadWire::getAttribute(), GNEStop::getAttribute(), and GNEStoppingPlace::getStoppingPlaceAttribute().
|
overridevirtual |
get moving attribute double
Implements GNEMoveElement.
Definition at line 145 of file GNEMoveElementLaneDouble.cpp.
References getEndFixedPositionOverLane(), getStartFixedPositionOverLane(), GNEAttributeCarrier::getTagStr(), GNE_ATTR_SIZE, GNEAttributeCarrier::isTemplate(), myEndPos, GNEMoveElement::myMovedElement, GNEMoveElementLaneSingle::myPosAttr, GNEMoveElementLaneSingle::myPosOverLane, myStartPos, myTemplateSize, SUMO_ATTR_CENTER, SUMO_ATTR_LENGTH, and toString().
Referenced by GNEOverheadWire::getAttributeDouble(), GNEStop::getAttributeDouble(), getMovingAttribute(), and GNEStoppingPlace::getStoppingPlaceAttributeDouble().
|
overridevirtual |
get moving attribute position
Implements GNEMoveElement.
Definition at line 171 of file GNEMoveElementLaneDouble.cpp.
References GNEAttributeCarrier::getCommonAttributePosition(), and GNEMoveElement::myMovedElement.
Referenced by GNEOverheadWire::getAttributePosition(), and GNEStoppingPlace::getStoppingPlaceAttributePosition().
|
overridevirtual |
get moving attribute positionVector
Implements GNEMoveElement.
Definition at line 177 of file GNEMoveElementLaneDouble.cpp.
References GNEAttributeCarrier::getCommonAttributePositionVector(), and GNEMoveElement::myMovedElement.
| std::string GNEMoveElementLaneDouble::getMovingProblem | ( | ) | const |
return a string with the current moving problem
Definition at line 322 of file GNEMoveElementLaneDouble.cpp.
References GNEAdditional::areLaneConnected(), GNEAdditional::areLaneConsecutives(), GNEMoveElementLaneSingle::getFixedPositionOverLane(), GNEAttributeCarrier::getHierarchicalElement(), GNEMoveElementLaneSingle::getMovingProblem(), GNEHierarchicalElement::getParentLanes(), GNEMoveElementLaneSingle::isMoveElementValid(), myEndPos, GNEMoveElement::myMovedElement, myStartPos, and TL.
Referenced by GNELaneAreaDetector::getAdditionalProblem(), GNEOverheadWire::getAdditionalProblem(), GNEStoppingPlace::getAdditionalProblem(), and GNEStop::getDemandElementProblem().
| double GNEMoveElementLaneDouble::getStartFixedPositionOverLane | ( | const bool | adjustGeometryFactor | ) | const |
get start offset position over lane
Definition at line 410 of file GNEMoveElementLaneDouble.cpp.
References GNEMoveElementLaneSingle::getFixedPositionOverLane(), myEndPos, and myStartPos.
Referenced by getMovingAttributeDouble(), setMovingAttribute(), setSize(), GNEStoppingPlace::setStoppingPlaceGeometry(), and GNELaneAreaDetector::updateGeometry().
| bool GNEMoveElementLaneDouble::isMoveElementValid | ( | ) | const |
check if current moving element is valid to be written into XML
Definition at line 304 of file GNEMoveElementLaneDouble.cpp.
References GNEAdditional::areLaneConnected(), GNEAdditional::areLaneConsecutives(), GNEMoveElementLaneSingle::getFixedPositionOverLane(), GNEAttributeCarrier::getHierarchicalElement(), GNEHierarchicalElement::getParentLanes(), GNEMoveElementLaneSingle::isMoveElementValid(), myEndPos, GNEMoveElement::myMovedElement, and myStartPos.
Referenced by GNELaneAreaDetector::isAdditionalValid(), GNEOverheadWire::isAdditionalValid(), GNEStoppingPlace::isAdditionalValid(), and GNEStop::isDemandElementValid().
|
overridevirtual |
check if the given moving attribute is valid
Implements GNEMoveElement.
Definition at line 225 of file GNEMoveElementLaneDouble.cpp.
References GNEAttributeCarrier::getNet(), GNE_ATTR_FORCESIZE, GNE_ATTR_REFERENCE, GNE_ATTR_SHIFTLANEINDEX, GNE_ATTR_SIZE, StringBijection< T >::hasString(), GNEAttributeCarrier::isCommonAttributeValid(), GNEMoveElementLaneSingle::isMovingAttributeValid(), myEndPos, GNEMoveElement::myMovedElement, GNEMoveElementLaneSingle::myPosAttr, myStartPos, SUMOXMLDefinitions::ReferencePositions, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_LANE, SUMO_ATTR_LANES, and SUMO_ATTR_LENGTH.
Referenced by GNEStoppingPlace::isStoppingPlaceValid(), GNEOverheadWire::isValid(), and GNEStop::isValid().
|
staticinherited |
move element the for given offset (note: offset can be X-Y-0, 0-0-Z or X-Y-Z)
Definition at line 99 of file GNEMoveElement.cpp.
References PositionVector::add(), GNEMoveOperation::allowChangeLane, GNEMoveElement::calculateExtrapolatedVector(), GNEMoveElement::calculateLanePosition(), GNEMoveElement::calculateLanePositions(), GNEMoveElement::calculateNewLaneChange(), GNEMoveOperation::clickedFirstLane, GNEMoveOperation::firstLane, GNEMoveResult::firstLaneOffset, GNEMoveOperation::firstPosition, GNEMoveOperation::geometryPointsToMove, GNEMoveResult::geometryPointsToMove, GNEMoveOperation::HEIGHT, Position::INVALID, INVALID_DOUBLE, GNEMoveOperation::lastLane, GNEMoveOperation::lastPosition, GNEMoveOperation::LENGTH, GNEMoveOperation::moveElement, GNEMoveResult::newFirstLane, GNEMoveResult::newFirstPos, GNEMoveResult::newLastPos, GNEMoveOperation::operationType, GNEMoveElement::setMoveShape(), GNEMoveOperation::shapeToMove, GNEMoveResult::shapeToUpdate, GUISUMOAbstractView::snapToActiveGrid(), GNEMoveOperation::WIDTH, GNEMoveOffset::x, GNEMoveOffset::y, and GNEMoveOffset::z.
Referenced by GNEViewNetHelper::MoveSingleElementModul::getMovedElement(), GNEViewNetHelper::MoveMultipleElementModul::moveSelection(), and GNEViewNetHelper::MoveSingleElementModul::moveSingleElement().
|
privatedelete |
Invalidated assignment operator.
|
overridevirtual |
remove geometry point in the clicked position
Implements GNEMoveElement.
Definition at line 298 of file GNEMoveElementLaneDouble.cpp.
|
overrideprivatevirtual |
set move shape
Implements GNEMoveElement.
Definition at line 434 of file GNEMoveElementLaneDouble.cpp.
References GNEMoveResult::firstLaneOffset, INVALID_DOUBLE, myEndPos, GNEMoveElement::myMovedElement, GNEMoveElement::myMovingLateralOffset, myStartPos, GNEMoveResult::newFirstPos, GNEMoveResult::newLastPos, GNEMoveElementLaneSingle::setMoveShape(), and GNEAttributeCarrier::updateGeometry().
|
overridevirtual |
set moving attribute
Implements GNEMoveElement.
Definition at line 264 of file GNEMoveElementLaneDouble.cpp.
References defaultSize, StringBijection< T >::get(), GNE_ATTR_FORCESIZE, GNE_ATTR_REFERENCE, GNE_ATTR_SIZE, myEndPos, GNEMoveElement::myMovedElement, GNEMoveElementLaneSingle::myPosAttr, myReferencePosition, myStartPos, myTemplateForceSize, myTemplateSize, SUMOXMLDefinitions::ReferencePositions, GNEAttributeCarrier::setCommonAttribute(), GNEMoveElementLaneSingle::setMovingAttribute(), SUMO_ATTR_FRIENDLY_POS, and SUMO_ATTR_LENGTH.
|
overridevirtual |
set moving attribute (using undo-list)
Implements GNEMoveElement.
Definition at line 183 of file GNEMoveElementLaneDouble.cpp.
References GNEChange_Attribute::changeAttribute(), getStartFixedPositionOverLane(), GNE_ATTR_FORCESIZE, GNE_ATTR_REFERENCE, GNE_ATTR_SHIFTLANEINDEX, GNE_ATTR_SIZE, GNEAttributeCarrier::isTemplate(), myEndPos, GNEMoveElement::myMovedElement, GNEMoveElementLaneSingle::myPosAttr, myStartPos, GNEAttributeCarrier::setCommonAttribute(), setSize(), SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_LANE, SUMO_ATTR_LANES, SUMO_ATTR_LENGTH, and toString().
Referenced by GNEOverheadWire::setAttribute(), GNEStop::setAttribute(), GNEOverheadWire::setAttribute(), GNEStop::setAttribute(), GNEStoppingPlace::setStoppingPlaceAttribute(), and GNEStoppingPlace::setStoppingPlaceAttribute().
|
private |
set size
Definition at line 475 of file GNEMoveElementLaneDouble.cpp.
References GNEUndoList::begin(), GNEChange_Attribute::changeAttribute(), GNEUndoList::end(), getEndFixedPositionOverLane(), GNEAttributeCarrier::getHierarchicalElement(), GNEHierarchicalElement::getParentLanes(), getStartFixedPositionOverLane(), GNEAttributeCarrier::getTagStr(), INVALID_DOUBLE, myEndPos, GNEMoveElement::myMovedElement, GNEMoveElementLaneSingle::myPosAttr, GNEMoveElementLaneSingle::myPosOverLane, myStartPos, TLF, and toString().
Referenced by setMovingAttribute().
| void GNEMoveElementLaneDouble::writeMoveAttributes | ( | OutputDevice & | device, |
| const bool | writeLength | ||
| ) | const |
write move attributes
Definition at line 385 of file GNEMoveElementLaneDouble.cpp.
References GNEAttributeCarrier::getAttribute(), GNETagProperties::getDefaultDoubleValue(), GNEAttributeCarrier::getTagProperty(), GNETagProperties::hasAttribute(), myEndPos, GNEMoveElementLaneSingle::myFriendlyPos, GNEMoveElement::myMovedElement, GNEMoveElementLaneSingle::myPosAttr, GNEMoveElementLaneSingle::myPosOverLane, myStartPos, SUMO_ATTR_FRIENDLY_POS, SUMO_ATTR_LANE, SUMO_ATTR_LANES, SUMO_ATTR_LENGTH, and OutputDevice::writeAttr().
Referenced by GNELaneAreaDetector::writeAdditional(), GNEOverheadWire::writeAdditional(), and GNEStoppingPlace::writeStoppingPlaceAttributes().
|
static |
default element size
Definition at line 108 of file GNEMoveElementLaneDouble.h.
Referenced by GNETagPropertiesDatabase::fillAdditionalElements(), GNETagPropertiesDatabase::fillCommonStoppingPlaceAttributes(), and setMovingAttribute().
|
private |
end position
Definition at line 115 of file GNEMoveElementLaneDouble.h.
Referenced by commitMoveShape(), fixMovingProblem(), getEndFixedPositionOverLane(), getMoveOperation(), getMovingAttribute(), getMovingAttributeDouble(), getMovingProblem(), getStartFixedPositionOverLane(), isMoveElementValid(), isMovingAttributeValid(), setMoveShape(), setMovingAttribute(), setMovingAttribute(), setSize(), writeMoveAttributes(), and ~GNEMoveElementLaneDouble().
|
protectedinherited |
pointer to element
Definition at line 96 of file GNEMoveElement.h.
Referenced by commitMoveShape(), GNEMoveElementLaneSingle::commitMoveShape(), GNEMoveElementShape::commitMoveShape(), GNEMoveElementView::commitMoveShape(), GNEMoveElementViewResizable::commitMoveShape(), fixMovingProblem(), GNEMoveElementLaneSingle::fixMovingProblem(), GNEMoveElementLaneSingle::getFixedPositionOverLane(), getMoveOperation(), GNEMoveElementLaneSingle::getMoveOperation(), GNEMoveElementShape::getMoveOperation(), GNEMoveElementViewResizable::getMoveOperation(), GNEMoveElement::getMovingAttribute(), GNEMoveElementConnection::getMovingAttribute(), GNEMoveElementCrossing::getMovingAttribute(), GNEMoveElementEdge::getMovingAttribute(), GNEMoveElementJunction::getMovingAttribute(), GNEMoveElementLane::getMovingAttribute(), getMovingAttribute(), GNEMoveElementLaneSingle::getMovingAttribute(), GNEMoveElementPlan::getMovingAttribute(), GNEMoveElementPlanParent::getMovingAttribute(), GNEMoveElementShape::getMovingAttribute(), GNEMoveElementVehicle::getMovingAttribute(), GNEMoveElementView::getMovingAttribute(), GNEMoveElement::getMovingAttributeDouble(), GNEMoveElementConnection::getMovingAttributeDouble(), GNEMoveElementCrossing::getMovingAttributeDouble(), GNEMoveElementEdge::getMovingAttributeDouble(), GNEMoveElementJunction::getMovingAttributeDouble(), GNEMoveElementLane::getMovingAttributeDouble(), getMovingAttributeDouble(), GNEMoveElementLaneSingle::getMovingAttributeDouble(), GNEMoveElementPlan::getMovingAttributeDouble(), GNEMoveElementPlanParent::getMovingAttributeDouble(), GNEMoveElementShape::getMovingAttributeDouble(), GNEMoveElementVehicle::getMovingAttributeDouble(), GNEMoveElementView::getMovingAttributeDouble(), GNEMoveElementConnection::getMovingAttributePosition(), GNEMoveElementCrossing::getMovingAttributePosition(), GNEMoveElementEdge::getMovingAttributePosition(), GNEMoveElementJunction::getMovingAttributePosition(), GNEMoveElementLane::getMovingAttributePosition(), getMovingAttributePosition(), GNEMoveElementLaneSingle::getMovingAttributePosition(), GNEMoveElementPlan::getMovingAttributePosition(), GNEMoveElementPlanParent::getMovingAttributePosition(), GNEMoveElementShape::getMovingAttributePosition(), GNEMoveElementVehicle::getMovingAttributePosition(), GNEMoveElementView::getMovingAttributePosition(), GNEMoveElementConnection::getMovingAttributePositionVector(), GNEMoveElementCrossing::getMovingAttributePositionVector(), GNEMoveElementEdge::getMovingAttributePositionVector(), GNEMoveElementJunction::getMovingAttributePositionVector(), GNEMoveElementLane::getMovingAttributePositionVector(), getMovingAttributePositionVector(), GNEMoveElementLaneSingle::getMovingAttributePositionVector(), GNEMoveElementPlan::getMovingAttributePositionVector(), GNEMoveElementPlanParent::getMovingAttributePositionVector(), GNEMoveElementShape::getMovingAttributePositionVector(), GNEMoveElementVehicle::getMovingAttributePositionVector(), GNEMoveElementView::getMovingAttributePositionVector(), getMovingProblem(), GNEMoveElementLaneSingle::getMovingProblem(), isMoveElementValid(), GNEMoveElementLaneSingle::isMoveElementValid(), GNEMoveElement::isMovingAttributeValid(), GNEMoveElementConnection::isMovingAttributeValid(), GNEMoveElementCrossing::isMovingAttributeValid(), GNEMoveElementEdge::isMovingAttributeValid(), GNEMoveElementJunction::isMovingAttributeValid(), GNEMoveElementLane::isMovingAttributeValid(), isMovingAttributeValid(), GNEMoveElementLaneSingle::isMovingAttributeValid(), GNEMoveElementPlan::isMovingAttributeValid(), GNEMoveElementPlanParent::isMovingAttributeValid(), GNEMoveElementShape::isMovingAttributeValid(), GNEMoveElementVehicle::isMovingAttributeValid(), GNEMoveElementView::isMovingAttributeValid(), GNEMoveElementShape::removeGeometryPoint(), setMoveShape(), GNEMoveElementLaneSingle::setMoveShape(), GNEMoveElementShape::setMoveShape(), GNEMoveElementView::setMoveShape(), GNEMoveElementConnection::setMovingAttribute(), GNEMoveElementCrossing::setMovingAttribute(), GNEMoveElementEdge::setMovingAttribute(), GNEMoveElementJunction::setMovingAttribute(), GNEMoveElementLane::setMovingAttribute(), setMovingAttribute(), GNEMoveElementLaneSingle::setMovingAttribute(), GNEMoveElementPlan::setMovingAttribute(), GNEMoveElementPlanParent::setMovingAttribute(), GNEMoveElementShape::setMovingAttribute(), GNEMoveElementVehicle::setMovingAttribute(), GNEMoveElementView::setMovingAttribute(), GNEMoveElement::setMovingAttribute(), GNEMoveElementConnection::setMovingAttribute(), GNEMoveElementCrossing::setMovingAttribute(), GNEMoveElementEdge::setMovingAttribute(), GNEMoveElementJunction::setMovingAttribute(), GNEMoveElementLane::setMovingAttribute(), setMovingAttribute(), GNEMoveElementLaneSingle::setMovingAttribute(), GNEMoveElementPlan::setMovingAttribute(), GNEMoveElementPlanParent::setMovingAttribute(), GNEMoveElementShape::setMovingAttribute(), GNEMoveElementVehicle::setMovingAttribute(), GNEMoveElementView::setMovingAttribute(), GNEMoveElement::setMovingAttribute(), setSize(), GNEMoveElementLaneSingle::writeMoveAttributes(), GNEMoveElementView::writeMoveAttributes(), and writeMoveAttributes().
|
inherited |
move element lateral offset
Definition at line 92 of file GNEMoveElement.h.
Referenced by GNEMoveElementLaneSingle::commitMoveShape(), GNEMoveElementVehicle::commitMoveShape(), setMoveShape(), GNEMoveElementLaneSingle::setMoveShape(), GNEMoveElementVehicle::setMoveShape(), GNEStoppingPlace::setStoppingPlaceGeometry(), GNEAccess::updateGeometry(), GNEEntryExitDetector::updateGeometry(), GNEInductionLoopDetector::updateGeometry(), GNEInstantInductionLoopDetector::updateGeometry(), GNELaneAreaDetector::updateGeometry(), and GNEStop::updateGeometry().
|
private |
reference position
Definition at line 124 of file GNEMoveElementLaneDouble.h.
Referenced by getMovingAttribute(), and setMovingAttribute().
|
private |
start position
Definition at line 112 of file GNEMoveElementLaneDouble.h.
Referenced by commitMoveShape(), fixMovingProblem(), getEndFixedPositionOverLane(), getMoveOperation(), getMovingAttribute(), getMovingAttributeDouble(), getMovingProblem(), getStartFixedPositionOverLane(), isMoveElementValid(), isMovingAttributeValid(), setMoveShape(), setMovingAttribute(), setMovingAttribute(), setSize(), writeMoveAttributes(), and ~GNEMoveElementLaneDouble().
|
private |
force size (only used in AttributeCarrier templates
Definition at line 121 of file GNEMoveElementLaneDouble.h.
Referenced by getMovingAttribute(), and setMovingAttribute().
|
private |
size (only use in AttributeCarrier templates)
Definition at line 118 of file GNEMoveElementLaneDouble.h.
Referenced by getMovingAttribute(), getMovingAttributeDouble(), and setMovingAttribute().