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 * > & myAdditionalChildren
 reference to vector of additional children More...
 
const std::vector< GNEAdditional * > & myAdditionalParents
 reference to vector of additional parents More...
 
const std::vector< GNEDemandElement * > & myDemandElementChildren
 reference to vector of demand element children More...
 
const std::vector< GNEDemandElement * > & myDemandElementParents
 reference to vector of demand element parents More...
 
const std::vector< GNEEdge * > & myEdgeChildren
 reference to vector of edge children More...
 
const std::vector< GNEEdge * > & myEdgeParents
 reference to vector of edge parents More...
 
const std::vector< GNELane * > & myLaneChildren
 reference to vector of lane children More...
 
const std::vector< GNELane * > & myLaneParents
 reference to vector of lane parents More...
 
GNEShapemyShape
 pointer to shape More...
 
const std::vector< GNEShape * > & myShapeChildren
 reference to vector of shape children More...
 
const std::vector< GNEShape * > & myShapeParents
 reference to vector of shape parents More...
 

Detailed Description

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

Definition at line 43 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 41 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 322 of file GNEChange_Shape.cpp.

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

◆ size()

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 45 of file GNEChange.cpp.

◆ undo()

◆ undoName()

FXString GNEChange_Shape::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 312 of file GNEChange_Shape.cpp.

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

Field Documentation

◆ myAdditionalChildren

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

reference to vector of additional children

Definition at line 100 of file GNEChange_Shape.h.

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

◆ myAdditionalParents

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

reference to vector of additional parents

Definition at line 85 of file GNEChange_Shape.h.

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

◆ myDemandElementChildren

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

reference to vector of demand element children

Definition at line 103 of file GNEChange_Shape.h.

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

◆ myDemandElementParents

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

reference to vector of demand element parents

Definition at line 88 of file GNEChange_Shape.h.

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

◆ myEdgeChildren

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

reference to vector of edge children

Definition at line 91 of file GNEChange_Shape.h.

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

◆ myEdgeParents

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

reference to vector of edge parents

Definition at line 76 of file GNEChange_Shape.h.

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

◆ myForward

◆ myLaneChildren

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

reference to vector of lane children

Definition at line 94 of file GNEChange_Shape.h.

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

◆ myLaneParents

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

reference to vector of lane parents

Definition at line 79 of file GNEChange_Shape.h.

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

◆ myNet

◆ myShape

GNEShape* GNEChange_Shape::myShape
private

pointer to shape

Definition at line 73 of file GNEChange_Shape.h.

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

◆ myShapeChildren

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

reference to vector of shape children

Definition at line 97 of file GNEChange_Shape.h.

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

◆ myShapeParents

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

reference to vector of shape parents

Definition at line 82 of file GNEChange_Shape.h.

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


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