SUMO - Simulation of Urban MObility
GNEChange_POI Class Reference

#include <GNEChange_POI.h>

Inheritance diagram for GNEChange_POI:
Inheritance graph
Collaboration diagram for GNEChange_POI:
Collaboration graph

Public Member Functions

 GNEChange_POI (GNENet *net, GNEPOI *POI, bool forward)
 Constructor. More...
 
virtual FXuint size () const
 return actual size More...
 
 ~GNEChange_POI ()
 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

GNEPOI * myPOI
 pointer to POI More...
 

Detailed Description

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

Definition at line 50 of file GNEChange_POI.h.

Constructor & Destructor Documentation

GNEChange_POI::GNEChange_POI ( GNENet *  net,
GNEPOI *  POI,
bool  forward 
)

Constructor.

constructor for creating a POI

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

Definition at line 51 of file GNEChange_POI.cpp.

Member Function Documentation

FXString GNEChange_POI::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 130 of file GNEChange_POI.cpp.

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

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 53 of file GNEChange.cpp.

FXString GNEChange_POI::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 120 of file GNEChange_POI.cpp.

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

Field Documentation

GNEPOI* GNEChange_POI::myPOI
private

pointer to POI

Definition at line 83 of file GNEChange_POI.h.

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


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