![]() |
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 | 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 () |
| move single element in Network AND Demand mode More... | |
| MoveSingleElementValues (GNEViewNet *viewNet) | |
| constructor More... | |
Data Fields | |
| int | movingIndexShape |
| index moved More... | |
| Position | originalPositionInView |
| original position of geometry position (needed for commmit position changes) More... | |
| PositionVector | originalShapeBeforeMoving |
| original shape of element before start moving (used by polygons, edges, etc., needed for commmit position changes) More... | |
Private Member Functions | |
| bool | calculateEdgeValues () |
| calculate Edge movement values (Position, Index, etc.) More... | |
| bool | calculatePolyValues () |
| calculate Poly movement values (Position, Index, etc.) More... | |
| bool | calculateTAZValues () |
| calculate TAZ movement values (Position, Index, etc.) More... | |
Private Attributes | |
| GNEAdditional * | myAdditionalToMove |
| the additional element which position is being moved More... | |
| GNEDemandElement * | myDemandElementToMove |
| the demand element which position is being moved More... | |
| GNEEdge * | myEdgeToMove |
| the edge of which geometry is being moved More... | |
| GNEJunction * | myJunctionToMove |
| the Junction to be moved. More... | |
| bool | myMovingEndPos |
| bool to indicate that end pos of an edge is being moved More... | |
| bool | myMovingStartPos |
| bool to indicate that startPos of an edge is being moved More... | |
| GNEPOI * | myPOIToMove |
| the poi which position is being moved More... | |
| GNEPoly * | myPolyToMove |
| the poly of which geometry is being moved More... | |
| Position | myRelativeClickedPosition |
| relative position of Clicked Position regarding to originalGeometryPointPosition (Used when user doesn't click exactly over the center of element) More... | |
| GNETAZ * | myTAZToMove |
| the TAZ element which their Shape is being moved (it's the only additional with a shape instead a position) More... | |
| GNEViewNet * | myViewNet |
| pointer to viewNet More... | |
struct used to group all variables related with movement of single elements
Definition at line 489 of file GNEViewNetHelper.h.
| GNEViewNetHelper::MoveSingleElementValues::MoveSingleElementValues | ( | GNEViewNet * | viewNet | ) |
constructor
Definition at line 398 of file GNEViewNetHelper.cpp.
| bool GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementDemandMode | ( | ) |
begin move single element in Demand mode
Definition at line 460 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonPressDemand().
| bool GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementNetworkMode | ( | ) |
begin move single element in Network mode
Definition at line 414 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonPressNetwork().
|
private |
calculate Edge movement values (Position, Index, etc.)
Definition at line 651 of file GNEViewNetHelper.cpp.
|
private |
calculate Poly movement values (Position, Index, etc.)
Definition at line 582 of file GNEViewNetHelper.cpp.
|
private |
calculate TAZ movement values (Position, Index, etc.)
Definition at line 722 of file GNEViewNetHelper.cpp.
| void GNEViewNetHelper::MoveSingleElementValues::finishMoveSingleElement | ( | ) |
finish moving single elements in Network AND Demand mode
Definition at line 541 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonReleaseDemand(), and GNEViewNet::processLeftButtonReleaseNetwork().
| void GNEViewNetHelper::MoveSingleElementValues::moveSingleElement | ( | ) |
move single element in Network AND Demand mode
move TAZ's geometry without commiting changes depending if polygon is blocked
Definition at line 481 of file GNEViewNetHelper.cpp.
References Position::setz(), and Position::y().
Referenced by GNEViewNet::processMoveMouseDemand(), and GNEViewNet::processMoveMouseNetwork().
| int GNEViewNetHelper::MoveSingleElementValues::movingIndexShape |
index moved
Definition at line 510 of file GNEViewNetHelper.h.
|
private |
the additional element which position is being moved
Definition at line 550 of file GNEViewNetHelper.h.
|
private |
the demand element which position is being moved
Definition at line 553 of file GNEViewNetHelper.h.
|
private |
the edge of which geometry is being moved
Definition at line 541 of file GNEViewNetHelper.h.
|
private |
the Junction to be moved.
Definition at line 538 of file GNEViewNetHelper.h.
|
private |
bool to indicate that end pos of an edge is being moved
Definition at line 535 of file GNEViewNetHelper.h.
|
private |
bool to indicate that startPos of an edge is being moved
Definition at line 532 of file GNEViewNetHelper.h.
|
private |
the poi which position is being moved
Definition at line 547 of file GNEViewNetHelper.h.
|
private |
the poly of which geometry is being moved
Definition at line 544 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 529 of file GNEViewNetHelper.h.
|
private |
the TAZ element which their Shape is being moved (it's the only additional with a shape instead a position)
Definition at line 556 of file GNEViewNetHelper.h.
|
private |
pointer to viewNet
Definition at line 526 of file GNEViewNetHelper.h.
| Position GNEViewNetHelper::MoveSingleElementValues::originalPositionInView |
original position of geometry position (needed for commmit position changes)
Definition at line 513 of file GNEViewNetHelper.h.
| PositionVector GNEViewNetHelper::MoveSingleElementValues::originalShapeBeforeMoving |
original shape of element before start moving (used by polygons, edges, etc., needed for commmit position changes)
Definition at line 507 of file GNEViewNetHelper.h.