Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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:
[legend]

Public Member Functions

void beginMoveSelection ()
 begin move selection
 
void finishMoveSelection ()
 finish moving selection
 
double getEdgeOffset () const
 edge offset
 
bool isMovingSelectedEdge () const
 flag for moving edge
 
bool isMovingSelection () const
 check if currently there is element being moved
 
 MoveMultipleElementValues (GNEViewNet *viewNet)
 constructor
 
void moveSelection (const bool mouseLeftButtonPressed)
 move selection
 
void resetMovingSelectedEdge ()
 reset flag for moving edge
 

Protected Member Functions

void calculateEdgeSelection (const GNEEdge *clickedEdge)
 calculate edge selection
 
void calculateJunctionSelection ()
 calculate junction selection
 
const GNEMoveOffset calculateMoveOffset () const
 calculate move offset
 

Private Attributes

Position myClickedPosition
 original clicked position when moveSelection is called (used for calculate offset during moveSelection())
 
double myEdgeOffset
 offset of moved edge
 
std::vector< GNEMoveOperation * > myMoveOperations
 move operations
 
bool myMovingSelectedEdge
 flag for enable moving edge
 
GNEViewNetmyViewNet
 pointer to net
 

Detailed Description

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

Definition at line 1008 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ MoveMultipleElementValues()

GNEViewNetHelper::MoveMultipleElementValues::MoveMultipleElementValues ( GNEViewNet viewNet)

constructor

Definition at line 1434 of file GNEViewNetHelper.cpp.

Member Function Documentation

◆ beginMoveSelection()

void GNEViewNetHelper::MoveMultipleElementValues::beginMoveSelection ( )

begin move selection

Definition at line 1442 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonPressDemand(), and GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ calculateEdgeSelection()

void GNEViewNetHelper::MoveMultipleElementValues::calculateEdgeSelection ( const GNEEdge clickedEdge)
protected

◆ calculateJunctionSelection()

void GNEViewNetHelper::MoveMultipleElementValues::calculateJunctionSelection ( )
protected

calculate junction selection

Definition at line 1543 of file GNEViewNetHelper.cpp.

◆ calculateMoveOffset()

const GNEMoveOffset GNEViewNetHelper::MoveMultipleElementValues::calculateMoveOffset ( ) const
protected

calculate move offset

Definition at line 1527 of file GNEViewNetHelper.cpp.

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

◆ finishMoveSelection()

void GNEViewNetHelper::MoveMultipleElementValues::finishMoveSelection ( )

finish moving selection

Definition at line 1484 of file GNEViewNetHelper.cpp.

References GNEMoveElement::commitMove(), MODEMOVE, and TL.

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

Here is the caller graph for this function:

◆ getEdgeOffset()

double GNEViewNetHelper::MoveMultipleElementValues::getEdgeOffset ( ) const

edge offset

Definition at line 1521 of file GNEViewNetHelper.cpp.

◆ isMovingSelectedEdge()

bool GNEViewNetHelper::MoveMultipleElementValues::isMovingSelectedEdge ( ) const

flag for moving edge

Definition at line 1509 of file GNEViewNetHelper.cpp.

Referenced by GNEEdge::getMoveOperation().

Here is the caller graph for this function:

◆ isMovingSelection()

bool GNEViewNetHelper::MoveMultipleElementValues::isMovingSelection ( ) const

check if currently there is element being moved

Definition at line 1503 of file GNEViewNetHelper.cpp.

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

Here is the caller graph for this function:

◆ moveSelection()

void GNEViewNetHelper::MoveMultipleElementValues::moveSelection ( const bool  mouseLeftButtonPressed)

move selection

Definition at line 1455 of file GNEViewNetHelper.cpp.

References GNEMoveElement::commitMove(), MODEMOVE, GNEMoveElement::moveElement(), and TL.

Referenced by GNEViewNet::processMoveMouseNetwork().

Here is the caller graph for this function:

◆ resetMovingSelectedEdge()

void GNEViewNetHelper::MoveMultipleElementValues::resetMovingSelectedEdge ( )

reset flag for moving edge

Definition at line 1515 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

Field Documentation

◆ myClickedPosition

Position GNEViewNetHelper::MoveMultipleElementValues::myClickedPosition
private

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

Definition at line 1049 of file GNEViewNetHelper.h.

◆ myEdgeOffset

double GNEViewNetHelper::MoveMultipleElementValues::myEdgeOffset
private

offset of moved edge

Definition at line 1055 of file GNEViewNetHelper.h.

◆ myMoveOperations

std::vector<GNEMoveOperation*> GNEViewNetHelper::MoveMultipleElementValues::myMoveOperations
private

move operations

Definition at line 1058 of file GNEViewNetHelper.h.

◆ myMovingSelectedEdge

bool GNEViewNetHelper::MoveMultipleElementValues::myMovingSelectedEdge
private

flag for enable moving edge

Definition at line 1052 of file GNEViewNetHelper.h.

◆ myViewNet

GNEViewNet* GNEViewNetHelper::MoveMultipleElementValues::myViewNet
private

pointer to net

Definition at line 1046 of file GNEViewNetHelper.h.


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