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

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

Collaboration diagram for GNEViewNet::MoveSingleElementValues:
Collaboration graph

Public Member Functions

void calculateEdgeValues ()
 calculate Edge movement values (Position, Index, etc.) More...
 
Position calculateOffsetMovement () const
 calculate offset movement More...
 
void calculatePolyValues ()
 calculate Poly movement values (Position, Index, etc.) More...
 
void calculateTAZValues ()
 calculate TAZ movement values (Position, Index, etc.) More...
 
 MoveSingleElementValues (GNEViewNet *viewNet)
 constructor More...
 

Data Fields

bool movingEndPos
 
int movingIndexShape
 index moved More...
 
bool movingStartPos
 bool to indicate that startPos are being moved More...
 
Position originalPositionInView
 original position of geometry position (needed for commmit position changes) More...
 
PositionVector originalShapeBeforeMoving
 original shape of element before start moving (used by polygons, edges, etc., needed for commmit position changes) More...
 
Position relativeClickedPosition
 relative position of Clicked Position regarding to originalGeometryPointPosition (Used when user doesn't click exactly over the center of element) More...
 

Private Attributes

GNEViewNetmyViewNet
 pointer to viewNet More...
 

Detailed Description

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

Definition at line 590 of file GNEViewNet.h.

Constructor & Destructor Documentation

◆ MoveSingleElementValues()

GNEViewNet::MoveSingleElementValues::MoveSingleElementValues ( GNEViewNet viewNet)

constructor

Definition at line 3219 of file GNEViewNet.cpp.

Member Function Documentation

◆ calculateEdgeValues()

◆ calculateOffsetMovement()

◆ calculatePolyValues()

◆ calculateTAZValues()

Field Documentation

◆ movingEndPos

bool GNEViewNet::MoveSingleElementValues::movingEndPos

◆ movingIndexShape

int GNEViewNet::MoveSingleElementValues::movingIndexShape

index moved

Definition at line 611 of file GNEViewNet.h.

Referenced by calculateEdgeValues(), calculatePolyValues(), calculateTAZValues(), and GNEViewNet::onMouseMove().

◆ movingStartPos

bool GNEViewNet::MoveSingleElementValues::movingStartPos

bool to indicate that startPos are being moved

Definition at line 620 of file GNEViewNet.h.

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

◆ myViewNet

GNEViewNet* GNEViewNet::MoveSingleElementValues::myViewNet
private

pointer to viewNet

Definition at line 625 of file GNEViewNet.h.

Referenced by calculateEdgeValues(), calculateOffsetMovement(), calculatePolyValues(), and calculateTAZValues().

◆ originalPositionInView

Position GNEViewNet::MoveSingleElementValues::originalPositionInView

original position of geometry position (needed for commmit position changes)

Definition at line 614 of file GNEViewNet.h.

Referenced by calculateEdgeValues(), calculatePolyValues(), calculateTAZValues(), GNEViewNet::onLeftBtnPress(), GNEViewNet::onLeftBtnRelease(), and GNEViewNet::onMouseMove().

◆ originalShapeBeforeMoving

PositionVector GNEViewNet::MoveSingleElementValues::originalShapeBeforeMoving

original shape of element before start moving (used by polygons, edges, etc., needed for commmit position changes)

Definition at line 608 of file GNEViewNet.h.

Referenced by calculateEdgeValues(), calculatePolyValues(), calculateTAZValues(), GNEViewNet::onLeftBtnRelease(), and GNEViewNet::onMouseMove().

◆ relativeClickedPosition

Position GNEViewNet::MoveSingleElementValues::relativeClickedPosition

relative position of Clicked Position regarding to originalGeometryPointPosition (Used when user doesn't click exactly over the center of element)

Definition at line 617 of file GNEViewNet.h.

Referenced by calculateOffsetMovement(), and GNEViewNet::onLeftBtnPress().


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