![]() |
SUMO - Simulation of Urban MObility
|
struct used to group all variables related with movement of groups of elements More...
Public Member Functions | |
void | beginMoveSelection (GNEAttributeCarrier *originAC) |
begin move selection More... | |
void | finishMoveSelection () |
finish moving selection More... | |
bool | isMovingSelection () const |
check if currently there is element being moved More... | |
MoveMultipleElementValues (GNEViewNet *viewNet) | |
constructor More... | |
void | moveSelection () |
move selection More... | |
Private Attributes | |
Position | myClickedPosition |
original clicked position when moveSelection is called (used for calculate offset during moveSelection()) More... | |
std::map< GNEEdge *, PositionVector > | myMovedEdgesOriginShape |
container used for move entire edges More... | |
std::map< GNEEdge *, MoveSingleElementValues * > | myMovedEgdesGeometryPoints |
container used for move GeometryPoints of edges More... | |
std::map< GNEJunction *, Position > | myMovedJunctionOriginPositions |
container used for move junctions More... | |
bool | myMovingSelection |
flag to check if a selection is being moved More... | |
GNEViewNet * | myViewNet |
pointer to viewNet More... | |
struct used to group all variables related with movement of groups of elements
Definition at line 629 of file GNEViewNet.h.
GNEViewNet::MoveMultipleElementValues::MoveMultipleElementValues | ( | GNEViewNet * | viewNet | ) |
constructor
Definition at line 3393 of file GNEViewNet.cpp.
void GNEViewNet::MoveMultipleElementValues::beginMoveSelection | ( | GNEAttributeCarrier * | originAC | ) |
begin move selection
Definition at line 3400 of file GNEViewNet.cpp.
References GNEEdge::getGNEJunctionDestiny(), GNEEdge::getGNEJunctionSource(), GNEViewNet::getNet(), GUISUMOAbstractView::getPositionInformation(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEEdge::getVertexIndex(), myClickedPosition, myMovedEdgesOriginShape, myMovedEgdesGeometryPoints, myMovedJunctionOriginPositions, myMovingSelection, myViewNet, GNENet::retrieveEdges(), GNENet::retrieveJunctions(), GNEEdge::startGeometryMoving(), SUMO_TAG_EDGE, and SUMO_TAG_JUNCTION.
Referenced by GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), and GNEViewNet::onLeftBtnPress().
void GNEViewNet::MoveMultipleElementValues::finishMoveSelection | ( | ) |
finish moving selection
Definition at line 3528 of file GNEViewNet.cpp.
References GNEViewNet::getUndoList(), myMovedEdgesOriginShape, myMovedEgdesGeometryPoints, myMovedJunctionOriginPositions, myMovingSelection, myViewNet, GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by GNEViewNet::onLeftBtnRelease().
bool GNEViewNet::MoveMultipleElementValues::isMovingSelection | ( | ) | const |
check if currently there is element being moved
Definition at line 3562 of file GNEViewNet.cpp.
References myMovingSelection.
Referenced by GNEViewNet::onLeftBtnRelease(), and GNEViewNet::onMouseMove().
void GNEViewNet::MoveMultipleElementValues::moveSelection | ( | ) |
move selection
Definition at line 3501 of file GNEViewNet.cpp.
References GUISUMOAbstractView::getPositionInformation(), GNEViewNet::CreateEdgeOptions::menuCheckMoveElevation, myClickedPosition, GNEViewNet::myCreateEdgeOptions, myMovedEdgesOriginShape, myMovedEgdesGeometryPoints, myMovedJunctionOriginPositions, myViewNet, Position::setz(), and Position::y().
Referenced by GNEViewNet::onMouseMove().
|
private |
original clicked position when moveSelection is called (used for calculate offset during moveSelection())
Definition at line 651 of file GNEViewNet.h.
Referenced by beginMoveSelection(), and moveSelection().
|
private |
container used for move entire edges
Definition at line 660 of file GNEViewNet.h.
Referenced by beginMoveSelection(), finishMoveSelection(), and moveSelection().
|
private |
container used for move GeometryPoints of edges
Definition at line 663 of file GNEViewNet.h.
Referenced by beginMoveSelection(), finishMoveSelection(), and moveSelection().
|
private |
container used for move junctions
Definition at line 657 of file GNEViewNet.h.
Referenced by beginMoveSelection(), finishMoveSelection(), and moveSelection().
|
private |
flag to check if a selection is being moved
Definition at line 654 of file GNEViewNet.h.
Referenced by beginMoveSelection(), finishMoveSelection(), and isMovingSelection().
|
private |
pointer to viewNet
Definition at line 648 of file GNEViewNet.h.
Referenced by beginMoveSelection(), finishMoveSelection(), and moveSelection().