Eclipse SUMO - Simulation of Urban MObility
GNEViewNetHelper::MoveSingleElementValues Struct Reference

struct used to group all variables related with movement of single elements More...

#include <GNEViewNetHelper.h>

Collaboration diagram for GNEViewNetHelper::MoveSingleElementValues:

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

GNEAdditionalmyAdditionalToMove
 the additional element which position is being moved More...
 
GNEDemandElementmyDemandElementToMove
 the demand element which position is being moved More...
 
GNEEdgemyEdgeToMove
 the edge of which geometry is being moved More...
 
GNEJunctionmyJunctionToMove
 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...
 
GNEPOImyPOIToMove
 the poi which position is being moved More...
 
GNEPolymyPolyToMove
 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...
 
GNETAZmyTAZToMove
 the TAZ element which their Shape is being moved (it's the only additional with a shape instead a position) More...
 
GNEViewNetmyViewNet
 pointer to viewNet More...
 

Detailed Description

struct used to group all variables related with movement of single elements

Definition at line 493 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ MoveSingleElementValues()

GNEViewNetHelper::MoveSingleElementValues::MoveSingleElementValues ( GNEViewNet viewNet)

constructor

Definition at line 409 of file GNEViewNetHelper.cpp.

Member Function Documentation

◆ beginMoveSingleElementDemandMode()

bool GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementDemandMode ( )

begin move single element in Demand mode

Definition at line 471 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonPressDemand().

◆ beginMoveSingleElementNetworkMode()

bool GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementNetworkMode ( )

begin move single element in Network mode

Definition at line 425 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonPressNetwork().

◆ calculateEdgeValues()

bool GNEViewNetHelper::MoveSingleElementValues::calculateEdgeValues ( )
private

calculate Edge movement values (Position, Index, etc.)

Definition at line 654 of file GNEViewNetHelper.cpp.

◆ calculatePolyValues()

bool GNEViewNetHelper::MoveSingleElementValues::calculatePolyValues ( )
private

calculate Poly movement values (Position, Index, etc.)

Definition at line 593 of file GNEViewNetHelper.cpp.

◆ calculateTAZValues()

bool GNEViewNetHelper::MoveSingleElementValues::calculateTAZValues ( )
private

calculate TAZ movement values (Position, Index, etc.)

Definition at line 725 of file GNEViewNetHelper.cpp.

◆ finishMoveSingleElement()

void GNEViewNetHelper::MoveSingleElementValues::finishMoveSingleElement ( )

finish moving single elements in Network AND Demand mode

Definition at line 552 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonReleaseDemand(), and GNEViewNet::processLeftButtonReleaseNetwork().

◆ moveSingleElement()

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 492 of file GNEViewNetHelper.cpp.

References Position::setz(), and Position::y().

Referenced by GNEViewNet::processMoveMouseDemand(), and GNEViewNet::processMoveMouseNetwork().

Field Documentation

◆ movingIndexShape

int GNEViewNetHelper::MoveSingleElementValues::movingIndexShape

index moved

Definition at line 514 of file GNEViewNetHelper.h.

◆ myAdditionalToMove

GNEAdditional* GNEViewNetHelper::MoveSingleElementValues::myAdditionalToMove
private

the additional element which position is being moved

Definition at line 554 of file GNEViewNetHelper.h.

◆ myDemandElementToMove

GNEDemandElement* GNEViewNetHelper::MoveSingleElementValues::myDemandElementToMove
private

the demand element which position is being moved

Definition at line 557 of file GNEViewNetHelper.h.

◆ myEdgeToMove

GNEEdge* GNEViewNetHelper::MoveSingleElementValues::myEdgeToMove
private

the edge of which geometry is being moved

Definition at line 545 of file GNEViewNetHelper.h.

◆ myJunctionToMove

GNEJunction* GNEViewNetHelper::MoveSingleElementValues::myJunctionToMove
private

the Junction to be moved.

Definition at line 542 of file GNEViewNetHelper.h.

◆ myMovingEndPos

bool GNEViewNetHelper::MoveSingleElementValues::myMovingEndPos
private

bool to indicate that end pos of an edge is being moved

Definition at line 539 of file GNEViewNetHelper.h.

◆ myMovingStartPos

bool GNEViewNetHelper::MoveSingleElementValues::myMovingStartPos
private

bool to indicate that startPos of an edge is being moved

Definition at line 536 of file GNEViewNetHelper.h.

◆ myPOIToMove

GNEPOI* GNEViewNetHelper::MoveSingleElementValues::myPOIToMove
private

the poi which position is being moved

Definition at line 551 of file GNEViewNetHelper.h.

◆ myPolyToMove

GNEPoly* GNEViewNetHelper::MoveSingleElementValues::myPolyToMove
private

the poly of which geometry is being moved

Definition at line 548 of file GNEViewNetHelper.h.

◆ myRelativeClickedPosition

Position GNEViewNetHelper::MoveSingleElementValues::myRelativeClickedPosition
private

relative position of Clicked Position regarding to originalGeometryPointPosition (Used when user doesn't click exactly over the center of element)

Definition at line 533 of file GNEViewNetHelper.h.

◆ myTAZToMove

GNETAZ* GNEViewNetHelper::MoveSingleElementValues::myTAZToMove
private

the TAZ element which their Shape is being moved (it's the only additional with a shape instead a position)

Definition at line 560 of file GNEViewNetHelper.h.

◆ myViewNet

GNEViewNet* GNEViewNetHelper::MoveSingleElementValues::myViewNet
private

pointer to viewNet

Definition at line 530 of file GNEViewNetHelper.h.

◆ originalPositionInView

Position GNEViewNetHelper::MoveSingleElementValues::originalPositionInView

original position of geometry position (needed for commmit position changes)

Definition at line 517 of file GNEViewNetHelper.h.

◆ originalShapeBeforeMoving

PositionVector GNEViewNetHelper::MoveSingleElementValues::originalShapeBeforeMoving

original shape of element before start moving (used by polygons, edges, etc., needed for commmit position changes)

Definition at line 511 of file GNEViewNetHelper.h.


The documentation for this struct was generated from the following files: