![]() |
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 More... | |
bool | beginMoveSingleElementDemandMode () |
begin move single element in Demand mode More... | |
bool | beginMoveSingleElementNetworkMode () |
begin move single element in Network mode More... | |
void | finishMoveSingleElement () |
finish moving single elements in Network AND Demand mode More... | |
void | moveSingleElement (const bool mouseLeftButtonPressed) |
move single element in Network AND Demand mode More... | |
MoveSingleElementValues (GNEViewNet *viewNet) | |
constructor More... | |
Protected Member Functions | |
bool | calculateMoveOperationShape (GNEMoveElement *moveElement, const PositionVector &shape, const double radius) |
calculate move operation for shape More... | |
Position | calculateOffset () const |
calculate offset More... | |
Private Attributes | |
GNEDemandElement * | myDemandElementToMove |
the demand element which position is being moved More... | |
std::vector< GNEMoveOperation * > | myMoveOperations |
move operations More... | |
Position | myRelativeClickedPosition |
relative position of Clicked Position regarding to originalGeometryPointPosition (Used when user doesn't click exactly over the center of element) More... | |
GNEViewNet * | myViewNet |
pointer to net More... | |
struct used to group all variables related with movement of single elements
Definition at line 830 of file GNEViewNetHelper.h.
GNEViewNetHelper::MoveSingleElementValues::MoveSingleElementValues | ( | GNEViewNet * | viewNet | ) |
constructor
Definition at line 913 of file GNEViewNetHelper.cpp.
bool GNEViewNetHelper::MoveSingleElementValues::beginMoveNetworkElementShape | ( | ) |
begin move network elementshape
Definition at line 920 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonPressNetwork().
bool GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementDemandMode | ( | ) |
begin move single element in Demand mode
Definition at line 1053 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonPressDemand().
bool GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementNetworkMode | ( | ) |
begin move single element in Network mode
Definition at line 946 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonPressNetwork().
|
protected |
calculate move operation for shape
Definition at line 1142 of file GNEViewNetHelper.cpp.
References PositionVector::distance2D(), GNEMoveElement::getMoveOperation(), and PositionVector::nearest_offset_to_point2D().
|
protected |
calculate offset
Definition at line 1124 of file GNEViewNetHelper.cpp.
References Position::setz(), and Position::y().
void GNEViewNetHelper::MoveSingleElementValues::finishMoveSingleElement | ( | ) |
finish moving single elements in Network AND Demand mode
Definition at line 1103 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 1073 of file GNEViewNetHelper.cpp.
References GNEMoveElement::commitMove(), and GNEMoveElement::moveElement().
Referenced by GNEViewNet::processMoveMouseData(), GNEViewNet::processMoveMouseDemand(), and GNEViewNet::processMoveMouseNetwork().
|
private |
the demand element which position is being moved
Definition at line 865 of file GNEViewNetHelper.h.
|
private |
move operations
Definition at line 868 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 862 of file GNEViewNetHelper.h.
|
private |
pointer to net
Definition at line 859 of file GNEViewNetHelper.h.