![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct used to group all variables related with movement of single elements More...
#include <GNEViewNetHelper.h>
Public Member Functions | |
bool | beginMoveNetworkElementShape () |
begin move network elementshape | |
bool | beginMoveSingleElementDemandMode () |
begin move single element in Demand mode | |
bool | beginMoveSingleElementNetworkMode () |
begin move single element in Network mode | |
void | finishMoveSingleElement () |
finish moving single elements in Network AND Demand mode | |
void | moveSingleElement (const bool mouseLeftButtonPressed) |
move single element in Network AND Demand mode | |
MoveSingleElementValues (GNEViewNet *viewNet) | |
constructor | |
Protected Member Functions | |
const GNEMoveOffset | calculateMoveOffset () const |
calculate offset | |
Private Attributes | |
std::vector< GNEMoveOperation * > | myMoveOperations |
move operations | |
Position | myRelativeClickedPosition |
relative position of Clicked Position regarding to originalGeometryPointPosition (Used when user doesn't click exactly over the center of element) | |
GNEViewNet * | myViewNet |
pointer to net | |
struct used to group all variables related with movement of single elements
Definition at line 972 of file GNEViewNetHelper.h.
GNEViewNetHelper::MoveSingleElementValues::MoveSingleElementValues | ( | GNEViewNet * | viewNet | ) |
constructor
Definition at line 1195 of file GNEViewNetHelper.cpp.
bool GNEViewNetHelper::MoveSingleElementValues::beginMoveNetworkElementShape | ( | ) |
begin move network elementshape
Definition at line 1201 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonPressNetwork().
bool GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementDemandMode | ( | ) |
begin move single element in Demand mode
Definition at line 1351 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonPressDemand().
bool GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementNetworkMode | ( | ) |
begin move single element in Network mode
Definition at line 1265 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonPressNetwork().
|
protected |
calculate offset
Definition at line 1416 of file GNEViewNetHelper.cpp.
References Position::x(), and Position::y().
void GNEViewNetHelper::MoveSingleElementValues::finishMoveSingleElement | ( | ) |
finish moving single elements in Network AND Demand mode
Definition at line 1401 of file GNEViewNetHelper.cpp.
References GNEMoveElement::commitMove().
Referenced by GNEViewNet::processLeftButtonReleaseData(), GNEViewNet::processLeftButtonReleaseDemand(), and GNEViewNet::processLeftButtonReleaseNetwork().
void GNEViewNetHelper::MoveSingleElementValues::moveSingleElement | ( | const bool | mouseLeftButtonPressed | ) |
move single element in Network AND Demand mode
Definition at line 1376 of file GNEViewNetHelper.cpp.
References GNEMoveElement::commitMove(), and GNEMoveElement::moveElement().
Referenced by GNEViewNet::processMoveMouseData(), GNEViewNet::processMoveMouseDemand(), and GNEViewNet::processMoveMouseNetwork().
|
private |
move operations
Definition at line 1004 of file GNEViewNetHelper.h.
|
private |
relative position of Clicked Position regarding to originalGeometryPointPosition (Used when user doesn't click exactly over the center of element)
Definition at line 1001 of file GNEViewNetHelper.h.
|
private |
pointer to net
Definition at line 998 of file GNEViewNetHelper.h.