![]() |
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 | |
| GNEMoveElement * | getMovedElement () const |
| get moved element | |
| bool | isCurrentlyMovingSingleElement () const |
| check if there are moving elements | |
| void | moveSingleElement (const bool mouseLeftButtonPressed) |
| move single element in Network AND Demand mode | |
| MoveSingleElementModul (GNEViewNet *viewNet) | |
| constructor | |
Protected Member Functions | |
| const GNEMoveOffset | calculateMoveOffset () const |
| calculate offset | |
Private Member Functions | |
| MoveSingleElementModul (const MoveSingleElementModul &)=delete | |
| Invalidated copy constructor. | |
| MoveSingleElementModul & | operator= (const MoveSingleElementModul &)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| GNEMoveOperation * | myMoveOperation = nullptr |
| 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 1190 of file GNEViewNetHelper.h.
| GNEViewNetHelper::MoveSingleElementModul::MoveSingleElementModul | ( | GNEViewNet * | viewNet | ) |
constructor
Definition at line 1498 of file GNEViewNetHelper.cpp.
|
privatedelete |
Invalidated copy constructor.
| bool GNEViewNetHelper::MoveSingleElementModul::beginMoveNetworkElementShape | ( | ) |
begin move network elementshape
Definition at line 1504 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonPressNetwork().
| bool GNEViewNetHelper::MoveSingleElementModul::beginMoveSingleElementDemandMode | ( | ) |
begin move single element in Demand mode
Definition at line 1657 of file GNEViewNetHelper.cpp.
References GNEAttributeCarrier::getMoveElement().
Referenced by GNEViewNet::processLeftButtonPressDemand().
| bool GNEViewNetHelper::MoveSingleElementModul::beginMoveSingleElementNetworkMode | ( | ) |
begin move single element in Network mode
Definition at line 1561 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonPressNetwork().
|
protected |
calculate offset
Definition at line 1731 of file GNEViewNetHelper.cpp.
References Position::x(), and Position::y().
| void GNEViewNetHelper::MoveSingleElementModul::finishMoveSingleElement | ( | ) |
finish moving single elements in Network AND Demand mode
Definition at line 1702 of file GNEViewNetHelper.cpp.
References GNEMoveElement::commitMove().
Referenced by GNEViewNet::processLeftButtonReleaseData(), GNEViewNet::processLeftButtonReleaseDemand(), and GNEViewNet::processLeftButtonReleaseNetwork().
| GNEMoveElement * GNEViewNetHelper::MoveSingleElementModul::getMovedElement | ( | ) | const |
get moved element
Definition at line 1721 of file GNEViewNetHelper.cpp.
References GNEMoveElement::moveElement().
Referenced by GNEJunction::checkDrawToContour().
| bool GNEViewNetHelper::MoveSingleElementModul::isCurrentlyMovingSingleElement | ( | ) | const |
check if there are moving elements
Definition at line 1715 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::isCurrentlyMovingElements().
| void GNEViewNetHelper::MoveSingleElementModul::moveSingleElement | ( | const bool | mouseLeftButtonPressed | ) |
move single element in Network AND Demand mode
Definition at line 1682 of file GNEViewNetHelper.cpp.
References GNEMoveElement::commitMove(), and GNEMoveElement::moveElement().
Referenced by GNEViewNet::processMoveMouseData(), GNEViewNet::processMoveMouseDemand(), and GNEViewNet::processMoveMouseNetwork().
|
privatedelete |
Invalidated assignment operator.
|
private |
move operations
Definition at line 1228 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 1225 of file GNEViewNetHelper.h.
|
private |
pointer to net
Definition at line 1222 of file GNEViewNetHelper.h.