Eclipse SUMO - Simulation of Urban MObility
GNEMoveOperation Class Reference

move operation More...

#include <GNEMoveElement.h>

Collaboration diagram for GNEMoveOperation:
[legend]

Public Member Functions

 GNEMoveOperation (GNEMoveElement *moveElement, const GNELane *lane, const std::vector< double > originalPosOverLanes)
 constructor for elements placed over lanes (StoppingPlaces, detectors...) More...
 
 GNEMoveOperation (GNEMoveElement *moveElement, const GNELane *lane, const std::vector< double > originalPosOverLanes, const std::vector< int > geometryPointsToMove)
 constructor for edit elements placed over lanes (start/end of StoppingPlaces, detectors...) More...
 
 GNEMoveOperation (GNEMoveElement *moveElement, const Position originalPosition)
 constructor for values with a single position (junctions, E3, ParkingSpaces...) More...
 
 GNEMoveOperation (GNEMoveElement *moveElement, const PositionVector originalShape)
 constructor for entire geometries (Polygon with blocked shapes) More...
 
 GNEMoveOperation (GNEMoveElement *moveElement, const PositionVector originalShape, const std::vector< int > originalgeometryPoints, const PositionVector shapeToMove, const std::vector< int > geometryPointsToMove)
 constructor for elements with editable shapes (edges, polygons...) More...
 
 ~GNEMoveOperation ()
 destructor More...
 

Data Fields

const std::vector< int > geometryPointsToMove
 shape points to move (of shapeToMove) More...
 
const GNELanelane
 original lane More...
 
GNEMoveElementmoveElement
 move element More...
 
const std::vector< int > originalGeometryPoints
 original shape points to move (of original shape) More...
 
const std::vector< double > originalPosOverLanes
 original position over lanes More...
 
const PositionVector originalShape
 original shape More...
 
const PositionVector shapeToMove
 shape to move More...
 

Private Member Functions

 GNEMoveOperation (const GNEMoveOperation &)=delete
 Invalidated copy constructor. More...
 
GNEMoveOperationoperator= (const GNEMoveOperation &)=delete
 Invalidated assignment operator. More...
 

Detailed Description

move operation

Definition at line 37 of file GNEMoveElement.h.

Constructor & Destructor Documentation

◆ GNEMoveOperation() [1/6]

GNEMoveOperation::GNEMoveOperation ( GNEMoveElement moveElement,
const Position  originalPosition 
)

constructor for values with a single position (junctions, E3, ParkingSpaces...)

Definition at line 32 of file GNEMoveElement.cpp.

◆ GNEMoveOperation() [2/6]

GNEMoveOperation::GNEMoveOperation ( GNEMoveElement moveElement,
const PositionVector  originalShape 
)

constructor for entire geometries (Polygon with blocked shapes)

Definition at line 41 of file GNEMoveElement.cpp.

◆ GNEMoveOperation() [3/6]

GNEMoveOperation::GNEMoveOperation ( GNEMoveElement moveElement,
const PositionVector  originalShape,
const std::vector< int >  originalgeometryPoints,
const PositionVector  shapeToMove,
const std::vector< int >  geometryPointsToMove 
)

constructor for elements with editable shapes (edges, polygons...)

Definition at line 50 of file GNEMoveElement.cpp.

◆ GNEMoveOperation() [4/6]

GNEMoveOperation::GNEMoveOperation ( GNEMoveElement moveElement,
const GNELane lane,
const std::vector< double >  originalPosOverLanes 
)

constructor for elements placed over lanes (StoppingPlaces, detectors...)

Definition at line 64 of file GNEMoveElement.cpp.

◆ GNEMoveOperation() [5/6]

GNEMoveOperation::GNEMoveOperation ( GNEMoveElement moveElement,
const GNELane lane,
const std::vector< double >  originalPosOverLanes,
const std::vector< int >  geometryPointsToMove 
)

constructor for edit elements placed over lanes (start/end of StoppingPlaces, detectors...)

Definition at line 73 of file GNEMoveElement.cpp.

◆ ~GNEMoveOperation()

GNEMoveOperation::~GNEMoveOperation ( )

destructor

Definition at line 84 of file GNEMoveElement.cpp.

◆ GNEMoveOperation() [6/6]

GNEMoveOperation::GNEMoveOperation ( const GNEMoveOperation )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ operator=()

GNEMoveOperation& GNEMoveOperation::operator= ( const GNEMoveOperation )
privatedelete

Invalidated assignment operator.

Field Documentation

◆ geometryPointsToMove

const std::vector<int> GNEMoveOperation::geometryPointsToMove

shape points to move (of shapeToMove)

Definition at line 84 of file GNEMoveElement.h.

Referenced by GNEMoveElement::commitMove(), and GNEMoveElement::moveElement().

◆ lane

const GNELane* GNEMoveOperation::lane

◆ moveElement

GNEMoveElement* GNEMoveOperation::moveElement

move element

Definition at line 70 of file GNEMoveElement.h.

Referenced by GNEMoveElement::commitMove(), and GNEMoveElement::moveElement().

◆ originalGeometryPoints

const std::vector<int> GNEMoveOperation::originalGeometryPoints

original shape points to move (of original shape)

Definition at line 76 of file GNEMoveElement.h.

Referenced by GNEMoveElement::commitMove().

◆ originalPosOverLanes

const std::vector<double> GNEMoveOperation::originalPosOverLanes

original position over lanes

Definition at line 90 of file GNEMoveElement.h.

Referenced by GNEMoveElement::calculateMovementOverLane(), and GNEMoveElement::commitMove().

◆ originalShape

const PositionVector GNEMoveOperation::originalShape

original shape

Definition at line 73 of file GNEMoveElement.h.

Referenced by GNEMoveElement::commitMove().

◆ shapeToMove

const PositionVector GNEMoveOperation::shapeToMove

shape to move

Note
: it can be different of originalShape, for example due a new geometry point

Definition at line 81 of file GNEMoveElement.h.

Referenced by GNEMoveElement::commitMove(), and GNEMoveElement::moveElement().


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