SUMO - Simulation of Urban MObility
GNEChange_Poly Class Reference

#include <GNEChange_Poly.h>

Inheritance diagram for GNEChange_Poly:
Inheritance graph
Collaboration diagram for GNEChange_Poly:
Collaboration graph

Public Member Functions

 GNEChange_Poly (GNENet *net, GNEPoly *poly, bool forward)
 Constructor. More...
 
virtual FXuint size () const
 return actual size More...
 
 ~GNEChange_Poly ()
 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...
 
GNENet * myNet
 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

GNEPoly * myPoly
 pointer to polygon More...
 

Detailed Description

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

Definition at line 50 of file GNEChange_Poly.h.

Constructor & Destructor Documentation

GNEChange_Poly::GNEChange_Poly ( GNENet *  net,
GNEPoly *  poly,
bool  forward 
)

Constructor.

constructor for creating a poly

Parameters
[in]netnet in which polygon will be inserted
[in]polyThe name of the polygon
[in]forwardWhether to create/delete (true/false)

Definition at line 51 of file GNEChange_Poly.cpp.

Member Function Documentation

FXString GNEChange_Poly::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 130 of file GNEChange_Poly.cpp.

References GNEChange::myForward, SUMO_TAG_POLY, and toString().

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 53 of file GNEChange.cpp.

FXString GNEChange_Poly::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 120 of file GNEChange_Poly.cpp.

References GNEChange::myForward, SUMO_TAG_POLY, and toString().

Field Documentation

GNEPoly* GNEChange_Poly::myPoly
private

pointer to polygon

Definition at line 83 of file GNEChange_Poly.h.

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


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