Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEViewNetHelper::MoveMultipleElementModul Struct Reference

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

#include <GNEViewNetHelper.h>

Collaboration diagram for GNEViewNetHelper::MoveMultipleElementModul:
[legend]

Public Member Functions

void beginMoveSelection ()
 begin move selection
 
void finishMoveSelection ()
 finish moving selection
 
double getEdgeOffset () const
 edge offset
 
bool isCurrentlyMovingMultipleElements () const
 check if there are moving elements
 
bool isMovingSelectedEdge () const
 flag for moving edge
 
bool isMovingSelection () const
 check if currently there is element being moved
 
 MoveMultipleElementModul (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 Member Functions

 MoveMultipleElementModul (const MoveMultipleElementModul &)=delete
 Invalidated copy constructor.
 
MoveMultipleElementModuloperator= (const MoveMultipleElementModul &)=delete
 Invalidated assignment operator.
 

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 1234 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ MoveMultipleElementModul() [1/2]

GNEViewNetHelper::MoveMultipleElementModul::MoveMultipleElementModul ( GNEViewNet viewNet)

constructor

Definition at line 1754 of file GNEViewNetHelper.cpp.

◆ MoveMultipleElementModul() [2/2]

GNEViewNetHelper::MoveMultipleElementModul::MoveMultipleElementModul ( const MoveMultipleElementModul )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ beginMoveSelection()

void GNEViewNetHelper::MoveMultipleElementModul::beginMoveSelection ( )

begin move selection

Definition at line 1762 of file GNEViewNetHelper.cpp.

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

Here is the caller graph for this function:

◆ calculateEdgeSelection()

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

◆ calculateJunctionSelection()

void GNEViewNetHelper::MoveMultipleElementModul::calculateJunctionSelection ( )
protected

calculate junction selection

Definition at line 1870 of file GNEViewNetHelper.cpp.

◆ calculateMoveOffset()

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

calculate move offset

Definition at line 1854 of file GNEViewNetHelper.cpp.

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

◆ finishMoveSelection()

void GNEViewNetHelper::MoveMultipleElementModul::finishMoveSelection ( )

finish moving selection

Definition at line 1805 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::MoveMultipleElementModul::getEdgeOffset ( ) const

edge offset

Definition at line 1842 of file GNEViewNetHelper.cpp.

◆ isCurrentlyMovingMultipleElements()

bool GNEViewNetHelper::MoveMultipleElementModul::isCurrentlyMovingMultipleElements ( ) const

check if there are moving elements

Definition at line 1848 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::isCurrentlyMovingElements().

Here is the caller graph for this function:

◆ isMovingSelectedEdge()

bool GNEViewNetHelper::MoveMultipleElementModul::isMovingSelectedEdge ( ) const

flag for moving edge

Definition at line 1830 of file GNEViewNetHelper.cpp.

Referenced by GNEEdge::getMoveOperation().

Here is the caller graph for this function:

◆ isMovingSelection()

bool GNEViewNetHelper::MoveMultipleElementModul::isMovingSelection ( ) const

check if currently there is element being moved

Definition at line 1824 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::MoveMultipleElementModul::moveSelection ( const bool  mouseLeftButtonPressed)

move selection

Definition at line 1776 of file GNEViewNetHelper.cpp.

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

Referenced by GNEViewNet::processMoveMouseNetwork().

Here is the caller graph for this function:

◆ operator=()

MoveMultipleElementModul & GNEViewNetHelper::MoveMultipleElementModul::operator= ( const MoveMultipleElementModul )
privatedelete

Invalidated assignment operator.

◆ resetMovingSelectedEdge()

void GNEViewNetHelper::MoveMultipleElementModul::resetMovingSelectedEdge ( )

reset flag for moving edge

Definition at line 1836 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

Field Documentation

◆ myClickedPosition

Position GNEViewNetHelper::MoveMultipleElementModul::myClickedPosition
private

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

Definition at line 1278 of file GNEViewNetHelper.h.

◆ myEdgeOffset

double GNEViewNetHelper::MoveMultipleElementModul::myEdgeOffset
private

offset of moved edge

Definition at line 1284 of file GNEViewNetHelper.h.

◆ myMoveOperations

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

move operations

Definition at line 1287 of file GNEViewNetHelper.h.

◆ myMovingSelectedEdge

bool GNEViewNetHelper::MoveMultipleElementModul::myMovingSelectedEdge
private

flag for enable moving edge

Definition at line 1281 of file GNEViewNetHelper.h.

◆ myViewNet

GNEViewNet* GNEViewNetHelper::MoveMultipleElementModul::myViewNet
private

pointer to net

Definition at line 1275 of file GNEViewNetHelper.h.


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