![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct used to group all variables related with movement of groups of elements More...
#include <GNEViewNetHelper.h>
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 564 of file GNEViewNetHelper.h.
GNEViewNetHelper::MoveMultipleElementValues::MoveMultipleElementValues | ( | GNEViewNet * | viewNet | ) |
constructor
Definition at line 769 of file GNEViewNetHelper.cpp.
void GNEViewNetHelper::MoveMultipleElementValues::beginMoveSelection | ( | GNEAttributeCarrier * | originAC | ) |
begin move selection
Definition at line 776 of file GNEViewNetHelper.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::processLeftButtonPressDemand(), and GNEViewNet::processLeftButtonPressNetwork().
void GNEViewNetHelper::MoveMultipleElementValues::finishMoveSelection | ( | ) |
finish moving selection
Definition at line 928 of file GNEViewNetHelper.cpp.
References GNEViewNet::getUndoList(), myMovedEdgesOriginShape, myMovedEgdesGeometryPoints, myMovedJunctionOriginPositions, myMovingSelection, myViewNet, GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by GNEViewNet::processLeftButtonReleaseDemand(), and GNEViewNet::processLeftButtonReleaseNetwork().
bool GNEViewNetHelper::MoveMultipleElementValues::isMovingSelection | ( | ) | const |
check if currently there is element being moved
Definition at line 959 of file GNEViewNetHelper.cpp.
References myMovingSelection.
Referenced by GNEViewNet::processLeftButtonReleaseDemand(), GNEViewNet::processLeftButtonReleaseNetwork(), and GNEViewNet::processMoveMouseNetwork().
void GNEViewNetHelper::MoveMultipleElementValues::moveSelection | ( | ) |
move selection
Definition at line 899 of file GNEViewNetHelper.cpp.
References GUISUMOAbstractView::getPositionInformation(), GNEViewNetHelper::NetworkViewOptions::menuCheckMoveElevation, myClickedPosition, myMovedEdgesOriginShape, myMovedEgdesGeometryPoints, myMovedJunctionOriginPositions, GNEViewNet::myNetworkViewOptions, myViewNet, Position::setz(), GNEViewNet::update(), and Position::y().
Referenced by GNEViewNet::processMoveMouseNetwork().
|
private |
original clicked position when moveSelection is called (used for calculate offset during moveSelection())
Definition at line 586 of file GNEViewNetHelper.h.
Referenced by beginMoveSelection(), and moveSelection().
|
private |
container used for move entire edges
Definition at line 595 of file GNEViewNetHelper.h.
Referenced by beginMoveSelection(), finishMoveSelection(), and moveSelection().
|
private |
container used for move GeometryPoints of edges
Definition at line 598 of file GNEViewNetHelper.h.
Referenced by beginMoveSelection(), finishMoveSelection(), and moveSelection().
|
private |
container used for move junctions
Definition at line 592 of file GNEViewNetHelper.h.
Referenced by beginMoveSelection(), finishMoveSelection(), and moveSelection().
|
private |
flag to check if a selection is being moved
Definition at line 589 of file GNEViewNetHelper.h.
Referenced by beginMoveSelection(), finishMoveSelection(), and isMovingSelection().
|
private |
pointer to viewNet
Definition at line 583 of file GNEViewNetHelper.h.
Referenced by beginMoveSelection(), finishMoveSelection(), and moveSelection().