Eclipse SUMO - Simulation of Urban MObility
GNEChange_Shape Class Reference

#include <GNEChange_Shape.h>

Inheritance diagram for GNEChange_Shape:
Collaboration diagram for GNEChange_Shape:

Public Member Functions

 GNEChange_Shape (GNEShape *shape, bool forward)
 Constructor. More...
 
virtual FXuint size () const
 return actual size More...
 
 ~GNEChange_Shape ()
 Destructor. More...
 
inherited from GNEChange

get undo Name

FXString undoName () const
 return undoName More...
 
FXString redoName () const
 get Redo name More...
 
void undo ()
 undo action More...
 
void redo ()
 redo action More...
 

Protected Attributes

bool myForward
 we group antagonistic commands (create junction/delete junction) and keep them apart by this flag More...
 
GNENetmyNet
 the net to which operations shall be applied or which shall be informed about gui updates (we are not responsible for the pointer) More...
 

Private Attributes

const std::vector< GNEAdditional * > & myChildAdditionals
 reference to vector of child additional More...
 
const std::vector< GNEDemandElement * > & myChildDemandElements
 reference to vector of child demand elements More...
 
const std::vector< GNEEdge * > & myChildEdges
 reference to vector of child edges More...
 
const std::vector< GNELane * > & myChildLanes
 reference to vector of child lanes More...
 
const std::vector< GNEShape * > & myChildShapes
 reference to vector of child shapes More...
 
const std::vector< GNEAdditional * > & myParentAdditionals
 reference to vector of parent additionals More...
 
const std::vector< GNEDemandElement * > & myParentDemandElements
 reference to vector of parent demand elements More...
 
const std::vector< GNEEdge * > & myParentEdges
 reference to vector of parent edges More...
 
const std::vector< GNELane * > & myParentLanes
 reference to vector of parent lanes More...
 
const std::vector< GNEShape * > & myParentShapes
 reference to vector of parent shapes More...
 
GNEShapemyShape
 pointer to shape More...
 

Detailed Description

A network change in which a single poly is created or deleted

Definition at line 42 of file GNEChange_Shape.h.

Constructor & Destructor Documentation

◆ GNEChange_Shape()

GNEChange_Shape::GNEChange_Shape ( GNEShape shape,
bool  forward 
)

Constructor.

Parameters
[in]shapethe shape to be changed
[in]forwardWhether to create/delete (true/false)

Definition at line 40 of file GNEChange_Shape.cpp.

◆ ~GNEChange_Shape()

Member Function Documentation

◆ redo()

◆ redoName()

FXString GNEChange_Shape::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 321 of file GNEChange_Shape.cpp.

References GNEAttributeCarrier::getTagStr(), GNEChange::myForward, and myShape.

◆ size()

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 44 of file GNEChange.cpp.

◆ undo()

◆ undoName()

FXString GNEChange_Shape::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 311 of file GNEChange_Shape.cpp.

References GNEAttributeCarrier::getTagStr(), GNEChange::myForward, and myShape.

Field Documentation

◆ myChildAdditionals

const std::vector<GNEAdditional*>& GNEChange_Shape::myChildAdditionals
private

reference to vector of child additional

Definition at line 99 of file GNEChange_Shape.h.

Referenced by redo(), undo(), and ~GNEChange_Shape().

◆ myChildDemandElements

const std::vector<GNEDemandElement*>& GNEChange_Shape::myChildDemandElements
private

reference to vector of child demand elements

Definition at line 102 of file GNEChange_Shape.h.

Referenced by redo(), undo(), and ~GNEChange_Shape().

◆ myChildEdges

const std::vector<GNEEdge*>& GNEChange_Shape::myChildEdges
private

reference to vector of child edges

Definition at line 90 of file GNEChange_Shape.h.

Referenced by redo(), undo(), and ~GNEChange_Shape().

◆ myChildLanes

const std::vector<GNELane*>& GNEChange_Shape::myChildLanes
private

reference to vector of child lanes

Definition at line 93 of file GNEChange_Shape.h.

Referenced by redo(), undo(), and ~GNEChange_Shape().

◆ myChildShapes

const std::vector<GNEShape*>& GNEChange_Shape::myChildShapes
private

reference to vector of child shapes

Definition at line 96 of file GNEChange_Shape.h.

Referenced by redo(), undo(), and ~GNEChange_Shape().

◆ myForward

◆ myNet

◆ myParentAdditionals

const std::vector<GNEAdditional*>& GNEChange_Shape::myParentAdditionals
private

reference to vector of parent additionals

Definition at line 84 of file GNEChange_Shape.h.

Referenced by redo(), undo(), and ~GNEChange_Shape().

◆ myParentDemandElements

const std::vector<GNEDemandElement*>& GNEChange_Shape::myParentDemandElements
private

reference to vector of parent demand elements

Definition at line 87 of file GNEChange_Shape.h.

Referenced by redo(), undo(), and ~GNEChange_Shape().

◆ myParentEdges

const std::vector<GNEEdge*>& GNEChange_Shape::myParentEdges
private

reference to vector of parent edges

Definition at line 75 of file GNEChange_Shape.h.

Referenced by redo(), undo(), and ~GNEChange_Shape().

◆ myParentLanes

const std::vector<GNELane*>& GNEChange_Shape::myParentLanes
private

reference to vector of parent lanes

Definition at line 78 of file GNEChange_Shape.h.

Referenced by redo(), undo(), and ~GNEChange_Shape().

◆ myParentShapes

const std::vector<GNEShape*>& GNEChange_Shape::myParentShapes
private

reference to vector of parent shapes

Definition at line 81 of file GNEChange_Shape.h.

Referenced by redo(), undo(), and ~GNEChange_Shape().

◆ myShape

GNEShape* GNEChange_Shape::myShape
private

pointer to shape

Definition at line 72 of file GNEChange_Shape.h.

Referenced by redo(), redoName(), undo(), undoName(), and ~GNEChange_Shape().


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