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:
[legend]

Public Member Functions

bool beginMoveNetworkElementShape ()
 begin move network elementshape More...
 
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 (const bool mouseLeftButtonPressed)
 move single element in Network AND Demand mode More...
 
 MoveSingleElementValues (GNEViewNet *viewNet)
 constructor More...
 

Protected Member Functions

const GNEMoveOffset calculateMoveOffset () const
 calculate offset More...
 

Private Attributes

std::vector< GNEMoveOperation * > myMoveOperations
 move operations More...
 
Position myRelativeClickedPosition
 relative position of Clicked Position regarding to originalGeometryPointPosition (Used when user doesn't click exactly over the center of element) More...
 
GNEViewNetmyViewNet
 pointer to net More...
 

Detailed Description

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

Definition at line 940 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ MoveSingleElementValues()

GNEViewNetHelper::MoveSingleElementValues::MoveSingleElementValues ( GNEViewNet viewNet)

constructor

Definition at line 1148 of file GNEViewNetHelper.cpp.

Member Function Documentation

◆ beginMoveNetworkElementShape()

bool GNEViewNetHelper::MoveSingleElementValues::beginMoveNetworkElementShape ( )

begin move network elementshape

Definition at line 1154 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ beginMoveSingleElementDemandMode()

bool GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementDemandMode ( )

begin move single element in Demand mode

Definition at line 1291 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonPressDemand().

Here is the caller graph for this function:

◆ beginMoveSingleElementNetworkMode()

bool GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementNetworkMode ( )

begin move single element in Network mode

Definition at line 1218 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ calculateMoveOffset()

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

calculate offset

Definition at line 1356 of file GNEViewNetHelper.cpp.

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

◆ finishMoveSingleElement()

void GNEViewNetHelper::MoveSingleElementValues::finishMoveSingleElement ( )

finish moving single elements in Network AND Demand mode

Definition at line 1341 of file GNEViewNetHelper.cpp.

References GNEMoveElement::commitMove().

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

Here is the caller graph for this function:

◆ moveSingleElement()

void GNEViewNetHelper::MoveSingleElementValues::moveSingleElement ( const bool  mouseLeftButtonPressed)

move single element in Network AND Demand mode

Definition at line 1316 of file GNEViewNetHelper.cpp.

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

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

Here is the caller graph for this function:

Field Documentation

◆ myMoveOperations

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

move operations

Definition at line 972 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 969 of file GNEViewNetHelper.h.

◆ myViewNet

GNEViewNet* GNEViewNetHelper::MoveSingleElementValues::myViewNet
private

pointer to net

Definition at line 966 of file GNEViewNetHelper.h.


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