![]() |
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 560 of file GNEViewNetHelper.h.
GNEViewNetHelper::MoveMultipleElementValues::MoveMultipleElementValues | ( | GNEViewNet * | viewNet | ) |
constructor
Definition at line 766 of file GNEViewNetHelper.cpp.
void GNEViewNetHelper::MoveMultipleElementValues::beginMoveSelection | ( | GNEAttributeCarrier * | originAC | ) |
begin move selection
Definition at line 773 of file GNEViewNetHelper.cpp.
References GNEEdge::getGNEJunctionDestiny(), GNEEdge::getGNEJunctionSource(), GNEAttributeCarrier::TagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEEdge::getVertexIndex(), 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 925 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonReleaseDemand(), and GNEViewNet::processLeftButtonReleaseNetwork().
bool GNEViewNetHelper::MoveMultipleElementValues::isMovingSelection | ( | ) | const |
check if currently there is element being moved
Definition at line 956 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonReleaseDemand(), GNEViewNet::processLeftButtonReleaseNetwork(), and GNEViewNet::processMoveMouseNetwork().
void GNEViewNetHelper::MoveMultipleElementValues::moveSelection | ( | ) |
move selection
Definition at line 896 of file GNEViewNetHelper.cpp.
References Position::setz(), and Position::y().
Referenced by GNEViewNet::processMoveMouseNetwork().
|
private |
original clicked position when moveSelection is called (used for calculate offset during moveSelection())
Definition at line 582 of file GNEViewNetHelper.h.
|
private |
container used for move entire edges
Definition at line 591 of file GNEViewNetHelper.h.
|
private |
container used for move GeometryPoints of edges
Definition at line 594 of file GNEViewNetHelper.h.
|
private |
container used for move junctions
Definition at line 588 of file GNEViewNetHelper.h.
|
private |
flag to check if a selection is being moved
Definition at line 585 of file GNEViewNetHelper.h.
|
private |
pointer to viewNet
Definition at line 579 of file GNEViewNetHelper.h.