SUMO - Simulation of Urban MObility
GNEViewNet::MoveMultipleElementValues Struct Reference

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

Collaboration diagram for GNEViewNet::MoveMultipleElementValues:
Collaboration graph

Public Member Functions

void beginMoveSelection (GNEAttributeCarrier *originAC)
 begin move selection More...
 
void finishMoveSelection ()
 finish moving selection More...
 
bool isMovingSelection () const
 check if currently there is element being moved More...
 
 MoveMultipleElementValues (GNEViewNet *viewNet)
 constructor More...
 
void moveSelection ()
 move selection More...
 

Private Attributes

Position myClickedPosition
 original clicked position when moveSelection is called (used for calculate offset during moveSelection()) More...
 
std::map< GNEEdge *, PositionVectormyMovedEdgesOriginShape
 container used for move entire edges More...
 
std::map< GNEEdge *, MoveSingleElementValues * > myMovedEgdesGeometryPoints
 container used for move GeometryPoints of edges More...
 
std::map< GNEJunction *, PositionmyMovedJunctionOriginPositions
 container used for move junctions More...
 
bool myMovingSelection
 flag to check if a selection is being moved More...
 
GNEViewNetmyViewNet
 pointer to viewNet More...
 

Detailed Description

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

Definition at line 629 of file GNEViewNet.h.

Constructor & Destructor Documentation

◆ MoveMultipleElementValues()

GNEViewNet::MoveMultipleElementValues::MoveMultipleElementValues ( GNEViewNet viewNet)

constructor

Definition at line 3393 of file GNEViewNet.cpp.

Member Function Documentation

◆ beginMoveSelection()

◆ finishMoveSelection()

void GNEViewNet::MoveMultipleElementValues::finishMoveSelection ( )

◆ isMovingSelection()

bool GNEViewNet::MoveMultipleElementValues::isMovingSelection ( ) const

check if currently there is element being moved

Definition at line 3562 of file GNEViewNet.cpp.

References myMovingSelection.

Referenced by GNEViewNet::onLeftBtnRelease(), and GNEViewNet::onMouseMove().

◆ moveSelection()

Field Documentation

◆ myClickedPosition

Position GNEViewNet::MoveMultipleElementValues::myClickedPosition
private

original clicked position when moveSelection is called (used for calculate offset during moveSelection())

Definition at line 651 of file GNEViewNet.h.

Referenced by beginMoveSelection(), and moveSelection().

◆ myMovedEdgesOriginShape

std::map<GNEEdge*, PositionVector> GNEViewNet::MoveMultipleElementValues::myMovedEdgesOriginShape
private

container used for move entire edges

Definition at line 660 of file GNEViewNet.h.

Referenced by beginMoveSelection(), finishMoveSelection(), and moveSelection().

◆ myMovedEgdesGeometryPoints

std::map<GNEEdge*, MoveSingleElementValues*> GNEViewNet::MoveMultipleElementValues::myMovedEgdesGeometryPoints
private

container used for move GeometryPoints of edges

Definition at line 663 of file GNEViewNet.h.

Referenced by beginMoveSelection(), finishMoveSelection(), and moveSelection().

◆ myMovedJunctionOriginPositions

std::map<GNEJunction*, Position> GNEViewNet::MoveMultipleElementValues::myMovedJunctionOriginPositions
private

container used for move junctions

Definition at line 657 of file GNEViewNet.h.

Referenced by beginMoveSelection(), finishMoveSelection(), and moveSelection().

◆ myMovingSelection

bool GNEViewNet::MoveMultipleElementValues::myMovingSelection
private

flag to check if a selection is being moved

Definition at line 654 of file GNEViewNet.h.

Referenced by beginMoveSelection(), finishMoveSelection(), and isMovingSelection().

◆ myViewNet

GNEViewNet* GNEViewNet::MoveMultipleElementValues::myViewNet
private

pointer to viewNet

Definition at line 648 of file GNEViewNet.h.

Referenced by beginMoveSelection(), finishMoveSelection(), and moveSelection().


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