![]() |
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... | |
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... | |
Protected Member Functions | |
void | calculateEdgeSelection (const GNEEdge *clickedEdge) |
calculate edge selection More... | |
void | calculateJunctionSelection () |
calculate junction selection More... | |
Position | calculateOffset () const |
calculate offset More... | |
Private Attributes | |
Position | myClickedPosition |
original clicked position when moveSelection is called (used for calculate offset during moveSelection()) More... | |
std::vector< GNEMoveOperation * > | myMoveOperations |
move operations More... | |
GNEViewNet * | myViewNet |
pointer to net More... | |
struct used to group all variables related with movement of groups of elements
Definition at line 872 of file GNEViewNetHelper.h.
GNEViewNetHelper::MoveMultipleElementValues::MoveMultipleElementValues | ( | GNEViewNet * | viewNet | ) |
constructor
Definition at line 1165 of file GNEViewNetHelper.cpp.
void GNEViewNetHelper::MoveMultipleElementValues::beginMoveSelection | ( | ) |
begin move selection
Definition at line 1171 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonPressDemand(), and GNEViewNet::processLeftButtonPressNetwork().
|
protected |
calculate edge selection
Definition at line 1284 of file GNEViewNetHelper.cpp.
References NBEdge::getGeometry(), GNEEdge::getNBEdge(), and PositionVector::nearest_offset_to_point2D().
|
protected |
calculate junction selection
Definition at line 1259 of file GNEViewNetHelper.cpp.
|
protected |
calculate offset
Definition at line 1241 of file GNEViewNetHelper.cpp.
References Position::setz(), and Position::y().
void GNEViewNetHelper::MoveMultipleElementValues::finishMoveSelection | ( | ) |
finish moving selection
Definition at line 1216 of file GNEViewNetHelper.cpp.
References GNEMoveElement::commitMove().
Referenced by GNEViewNet::processLeftButtonReleaseData(), GNEViewNet::processLeftButtonReleaseDemand(), and GNEViewNet::processLeftButtonReleaseNetwork().
bool GNEViewNetHelper::MoveMultipleElementValues::isMovingSelection | ( | ) | const |
check if currently there is element being moved
Definition at line 1235 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 1187 of file GNEViewNetHelper.cpp.
References GNEMoveElement::commitMove(), and GNEMoveElement::moveElement().
Referenced by GNEViewNet::processMoveMouseNetwork().
|
private |
original clicked position when moveSelection is called (used for calculate offset during moveSelection())
Definition at line 904 of file GNEViewNetHelper.h.
|
private |
move operations
Definition at line 907 of file GNEViewNetHelper.h.
|
private |
pointer to net
Definition at line 901 of file GNEViewNetHelper.h.