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

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

#include <GNEViewNetHelper.h>

Collaboration diagram for GNEViewNetHelper::MoveMultipleElementValues:

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 *, PositionVector > myMovedEdgesOriginShape
 container used for move entire edges More...
 
std::map< GNEEdge *, MoveSingleElementValues * > myMovedEgdesGeometryPoints
 container used for move GeometryPoints of edges More...
 
std::map< GNEJunction *, Position > myMovedJunctionOriginPositions
 container used for move junctions More...
 
bool myMovingSelection
 flag to check if a selection is being moved More...
 
GNEViewNet * myViewNet
 pointer to viewNet More...
 

Detailed Description

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

Definition at line 560 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ MoveMultipleElementValues()

GNEViewNetHelper::MoveMultipleElementValues::MoveMultipleElementValues ( GNEViewNet *  viewNet)

constructor

Definition at line 766 of file GNEViewNetHelper.cpp.

Member Function Documentation

◆ beginMoveSelection()

◆ finishMoveSelection()

void GNEViewNetHelper::MoveMultipleElementValues::finishMoveSelection ( )

finish moving selection

Definition at line 925 of file GNEViewNetHelper.cpp.

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

◆ isMovingSelection()

bool GNEViewNetHelper::MoveMultipleElementValues::isMovingSelection ( ) const

check if currently there is element being moved

Definition at line 956 of file GNEViewNetHelper.cpp.

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

◆ moveSelection()

void GNEViewNetHelper::MoveMultipleElementValues::moveSelection ( )

move selection

Definition at line 896 of file GNEViewNetHelper.cpp.

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

Referenced by GNEViewNet::processMoveMouseNetwork().

Field Documentation

◆ myClickedPosition

Position GNEViewNetHelper::MoveMultipleElementValues::myClickedPosition
private

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

Definition at line 582 of file GNEViewNetHelper.h.

◆ myMovedEdgesOriginShape

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

container used for move entire edges

Definition at line 591 of file GNEViewNetHelper.h.

◆ myMovedEgdesGeometryPoints

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

container used for move GeometryPoints of edges

Definition at line 594 of file GNEViewNetHelper.h.

◆ myMovedJunctionOriginPositions

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

container used for move junctions

Definition at line 588 of file GNEViewNetHelper.h.

◆ myMovingSelection

bool GNEViewNetHelper::MoveMultipleElementValues::myMovingSelection
private

flag to check if a selection is being moved

Definition at line 585 of file GNEViewNetHelper.h.

◆ myViewNet

GNEViewNet* GNEViewNetHelper::MoveMultipleElementValues::myViewNet
private

pointer to viewNet

Definition at line 579 of file GNEViewNetHelper.h.


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