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 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 39 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 121 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.

Referenced by GNELane::isValid().

◆ undo()

◆ undoName()

FXString GNEChange_Shape::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 111 of file GNEChange_Shape.cpp.

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

Field Documentation

◆ myForward

◆ 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().


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