![]() |
Eclipse SUMO - Simulation of Urban MObility
|
move element More...
#include <GNEMoveElement.h>
Public Member Functions | |
virtual GNEMoveOperation * | getMoveOperation (const double shapeOffset)=0 |
get move operation for the given shapeOffset More... | |
GNEMoveElement () | |
constructor More... | |
virtual void | removeGeometryPoint (const Position clickedPosition, GNEUndoList *undoList)=0 |
remove geometry point in the clicked position More... | |
Static Public Member Functions | |
static void | commitMove (const GNEViewNet *viewNet, GNEMoveOperation *moveOperation, const Position &offset, GNEUndoList *undoList) |
commit move element for the given offset More... | |
static void | moveElement (const GNEViewNet *viewNet, GNEMoveOperation *moveOperation, const Position &offset) |
move element the for given offset (note: offset can be X-Y-0, 0-0-Z or X-Y-Z) More... | |
Private Member Functions | |
virtual void | commitMoveShape (const GNEMoveResult &moveResult, GNEUndoList *undoList)=0 |
commit move shape More... | |
GNEMoveElement (const GNEMoveElement &)=delete | |
Invalidated copy constructor. More... | |
GNEMoveElement & | operator= (const GNEMoveElement &)=delete |
Invalidated assignment operator. More... | |
virtual void | setMoveShape (const GNEMoveResult &moveResult)=0 |
set move shape More... | |
Static Private Member Functions | |
static const PositionVector | calculateMovementOverLane (const GNEViewNet *viewNet, const GNEMoveOperation *moveOperation, const Position &offset) |
calculate movement over lane More... | |
move element
Definition at line 124 of file GNEMoveElement.h.
GNEMoveElement::GNEMoveElement | ( | ) |
constructor
Definition at line 99 of file GNEMoveElement.cpp.
|
privatedelete |
Invalidated copy constructor.
|
staticprivate |
calculate movement over lane
Definition at line 214 of file GNEMoveElement.cpp.
References Position::add(), NBEdge::getFinalLength(), GNELane::getLaneShape(), GNELane::getLengthGeometryFactor(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEMoveOperation::lane, PositionVector::nearest_offset_to_point2D(), GNEMoveOperation::originalPosOverLanes, PositionVector::positionAtOffset2D(), and GUISUMOAbstractView::snapToActiveGrid().
Referenced by commitMove(), and moveElement().
|
static |
commit move element for the given offset
Definition at line 148 of file GNEMoveElement.cpp.
References PositionVector::add(), calculateMovementOverLane(), commitMoveShape(), GNEMoveOperation::geometryPointsToMove, GNEMoveResult::geometryPointsToMove, Position::INVALID, GNEMoveOperation::lane, GNEMoveOperation::moveElement, GNEMoveOperation::originalGeometryPoints, GNEMoveOperation::originalPosOverLanes, GNEMoveOperation::originalShape, PositionVector::removeDoublePoints(), setMoveShape(), GNEMoveOperation::shapeToMove, GNEMoveResult::shapeToUpdate, and GUISUMOAbstractView::snapToActiveGrid().
Referenced by GNEViewNetHelper::MoveMultipleElementValues::finishMoveSelection(), GNEViewNetHelper::MoveSingleElementValues::finishMoveSingleElement(), GNEViewNetHelper::MoveMultipleElementValues::moveSelection(), and GNEViewNetHelper::MoveSingleElementValues::moveSingleElement().
|
privatepure virtual |
commit move shape
Implemented in GNEShape, GNEAdditional, GNELaneType, GNELane, GNEJunction, GNEInternalLane, GNEEdgeType, GNEEdge, GNECrossing, GNEConnection, GNEVariableSpeedSignSymbol, GNEVariableSpeedSignStep, GNEVariableSpeedSign, GNEVaporizer, GNETAZ, GNEStoppingPlace, GNERouteProbReroute, GNERouteProbe, GNERerouterSymbol, GNERerouterInterval, GNERerouter, GNEPoly, GNEPOI, GNEParkingSpace, GNEParkingAreaReroute, GNEDetectorE3, GNEDetector, GNEDestProbReroute, GNEClosingReroute, GNEClosingLaneReroute, GNECalibratorFlow, GNECalibrator, and GNEAccess.
Referenced by commitMove().
|
pure virtual |
get move operation for the given shapeOffset
Implemented in GNENetworkElement, GNEShape, GNEAdditional, GNELaneType, GNELane, GNEJunction, GNEInternalLane, GNEEdgeType, GNEEdge, GNECrossing, GNEConnection, GNEVariableSpeedSignSymbol, GNEVariableSpeedSignStep, GNEVariableSpeedSign, GNEVaporizer, GNETAZ, GNEStoppingPlace, GNERouteProbReroute, GNERouteProbe, GNERerouterSymbol, GNERerouterInterval, GNERerouter, GNEPoly, GNEPOI, GNEParkingSpace, GNEParkingAreaReroute, GNEDetectorE3, GNEDetector, GNEDestProbReroute, GNEClosingReroute, GNEClosingLaneReroute, GNECalibratorFlow, GNECalibrator, and GNEAccess.
Referenced by GNEViewNetHelper::MoveSingleElementValues::calculateMoveOperationShape().
|
static |
move element the for given offset (note: offset can be X-Y-0, 0-0-Z or X-Y-Z)
Definition at line 104 of file GNEMoveElement.cpp.
References PositionVector::add(), calculateMovementOverLane(), GNEMoveOperation::geometryPointsToMove, GNEMoveResult::geometryPointsToMove, Position::INVALID, GNEMoveOperation::lane, GNEMoveOperation::moveElement, setMoveShape(), GNEMoveOperation::shapeToMove, GNEMoveResult::shapeToUpdate, and GUISUMOAbstractView::snapToActiveGrid().
Referenced by GNEViewNetHelper::MoveMultipleElementValues::moveSelection(), and GNEViewNetHelper::MoveSingleElementValues::moveSingleElement().
|
privatedelete |
Invalidated assignment operator.
|
pure virtual |
remove geometry point in the clicked position
Implemented in GNEShape, GNELaneType, GNELane, GNEJunction, GNEInternalLane, GNEEdgeType, GNEEdge, GNECrossing, GNEConnection, GNETAZ, GNEPoly, GNEPOI, and GNEAdditional.
Referenced by GNEViewNet::processLeftButtonPressNetwork(), and GNEDeleteFrame::removeGeometryPoint().
|
privatepure virtual |
set move shape
Implemented in GNEShape, GNEAdditional, GNELaneType, GNELane, GNEJunction, GNEInternalLane, GNEEdgeType, GNEEdge, GNECrossing, GNEConnection, GNEVariableSpeedSignSymbol, GNEVariableSpeedSignStep, GNEVariableSpeedSign, GNEVaporizer, GNETAZ, GNEStoppingPlace, GNERouteProbReroute, GNERouteProbe, GNERerouterSymbol, GNERerouterInterval, GNERerouter, GNEPoly, GNEPOI, GNEParkingSpace, GNEParkingAreaReroute, GNEDetectorE3, GNEDetector, GNEDestProbReroute, GNEClosingReroute, GNEClosingLaneReroute, GNECalibratorFlow, GNECalibrator, and GNEAccess.
Referenced by commitMove(), and moveElement().