SUMO - Simulation of Urban MObility
GNEChange_Shape Class Reference

#include <GNEChange_Shape.h>

Inheritance diagram for GNEChange_Shape:
Inheritance graph
Collaboration diagram for GNEChange_Shape:
Collaboration graph

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

GNEShapemyShape
 pointer to shape More...
 

Detailed Description

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

Definition at line 49 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 48 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 125 of file GNEChange_Shape.cpp.

References GNEAttributeCarrier::getTag(), GNEChange::myForward, myShape, and toString().

◆ size()

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 52 of file GNEChange.cpp.

◆ undo()

◆ undoName()

FXString GNEChange_Shape::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 115 of file GNEChange_Shape.cpp.

References GNEAttributeCarrier::getTag(), GNEChange::myForward, myShape, and toString().

Field Documentation

◆ myForward

◆ myNet

◆ myShape

GNEShape* GNEChange_Shape::myShape
private

pointer to shape

Definition at line 79 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: