![]() |
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 () |
begin move selection More... | |
void | finishMoveSelection () |
finish moving selection More... | |
double | getEdgeOffset () const |
edge offset More... | |
bool | isMovingSelectedEdge () const |
flag for moving edge More... | |
bool | isMovingSelection () const |
check if currently there is element being moved More... | |
MoveMultipleElementValues (GNEViewNet *viewNet) | |
constructor More... | |
void | moveSelection (const bool mouseLeftButtonPressed) |
move selection More... | |
void | resetMovingSelectedEdge () |
reset flag for moving edge More... | |
Protected Member Functions | |
void | calculateEdgeSelection (const GNEEdge *clickedEdge) |
calculate edge selection More... | |
void | calculateJunctionSelection () |
calculate junction selection More... | |
const GNEMoveOffset | calculateMoveOffset () const |
calculate move offset More... | |
Private Attributes | |
Position | myClickedPosition |
original clicked position when moveSelection is called (used for calculate offset during moveSelection()) More... | |
double | myEdgeOffset |
offset of moved edge More... | |
std::vector< GNEMoveOperation * > | myMoveOperations |
move operations More... | |
bool | myMovingSelectedEdge |
flag for enable moving edge More... | |
GNEViewNet * | myViewNet |
pointer to net More... | |
struct used to group all variables related with movement of groups of elements
Definition at line 976 of file GNEViewNetHelper.h.
GNEViewNetHelper::MoveMultipleElementValues::MoveMultipleElementValues | ( | GNEViewNet * | viewNet | ) |
constructor
Definition at line 1374 of file GNEViewNetHelper.cpp.
void GNEViewNetHelper::MoveMultipleElementValues::beginMoveSelection | ( | ) |
begin move selection
Definition at line 1382 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonPressDemand(), and GNEViewNet::processLeftButtonPressNetwork().
|
protected |
calculate edge selection
Definition at line 1508 of file GNEViewNetHelper.cpp.
References NBEdge::getGeometry(), GNEEdge::getNBEdge(), GNEEdge::isConvexAngle(), and PositionVector::nearest_offset_to_point2D().
|
protected |
calculate junction selection
Definition at line 1483 of file GNEViewNetHelper.cpp.
|
protected |
calculate move offset
Definition at line 1467 of file GNEViewNetHelper.cpp.
References Position::x(), and Position::y().
void GNEViewNetHelper::MoveMultipleElementValues::finishMoveSelection | ( | ) |
finish moving selection
Definition at line 1424 of file GNEViewNetHelper.cpp.
References GNEMoveElement::commitMove(), and MODEMOVE.
Referenced by GNEViewNet::processLeftButtonReleaseData(), GNEViewNet::processLeftButtonReleaseDemand(), and GNEViewNet::processLeftButtonReleaseNetwork().
double GNEViewNetHelper::MoveMultipleElementValues::getEdgeOffset | ( | ) | const |
edge offset
Definition at line 1461 of file GNEViewNetHelper.cpp.
bool GNEViewNetHelper::MoveMultipleElementValues::isMovingSelectedEdge | ( | ) | const |
flag for moving edge
Definition at line 1449 of file GNEViewNetHelper.cpp.
Referenced by GNEEdge::getMoveOperation().
bool GNEViewNetHelper::MoveMultipleElementValues::isMovingSelection | ( | ) | const |
check if currently there is element being moved
Definition at line 1443 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonReleaseData(), GNEViewNet::processLeftButtonReleaseDemand(), GNEViewNet::processLeftButtonReleaseNetwork(), and GNEViewNet::processMoveMouseNetwork().
void GNEViewNetHelper::MoveMultipleElementValues::moveSelection | ( | const bool | mouseLeftButtonPressed | ) |
move selection
Definition at line 1395 of file GNEViewNetHelper.cpp.
References GNEMoveElement::commitMove(), MODEMOVE, and GNEMoveElement::moveElement().
Referenced by GNEViewNet::processMoveMouseNetwork().
void GNEViewNetHelper::MoveMultipleElementValues::resetMovingSelectedEdge | ( | ) |
reset flag for moving edge
Definition at line 1455 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonPressNetwork().
|
private |
original clicked position when moveSelection is called (used for calculate offset during moveSelection())
Definition at line 1017 of file GNEViewNetHelper.h.
|
private |
offset of moved edge
Definition at line 1023 of file GNEViewNetHelper.h.
|
private |
move operations
Definition at line 1026 of file GNEViewNetHelper.h.
|
private |
flag for enable moving edge
Definition at line 1020 of file GNEViewNetHelper.h.
|
private |
pointer to net
Definition at line 1014 of file GNEViewNetHelper.h.