Eclipse SUMO - Simulation of Urban MObility
GNEChange_Junction Class Reference

#include <GNEChange_Junction.h>

Inheritance diagram for GNEChange_Junction:
Collaboration diagram for GNEChange_Junction:

Public Member Functions

 GNEChange_Junction (GNEJunction *junction, bool forward)
 Constructor for creating/deleting a junction. More...
 
virtual FXuint size () const
 return actual size More...
 
 ~GNEChange_Junction ()
 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

GNEJunctionmyJunction
 full information regarding the junction that is to be created/deleted More...
 

Detailed Description

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

Definition at line 43 of file GNEChange_Junction.h.

Constructor & Destructor Documentation

◆ GNEChange_Junction()

GNEChange_Junction::GNEChange_Junction ( GNEJunction junction,
bool  forward 
)

Constructor for creating/deleting a junction.

constructor for creating a junction

Parameters
[in]junctionThe junction to be created/deleted
[in]forwardWhether to create/delete (true/false)

Definition at line 39 of file GNEChange_Junction.cpp.

◆ ~GNEChange_Junction()

GNEChange_Junction::~GNEChange_Junction ( )

Member Function Documentation

◆ redo()

◆ redoName()

FXString GNEChange_Junction::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 105 of file GNEChange_Junction.cpp.

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

◆ 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_Junction::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 95 of file GNEChange_Junction.cpp.

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

Field Documentation

◆ myForward

◆ myJunction

GNEJunction* GNEChange_Junction::myJunction
private

full information regarding the junction that is to be created/deleted

Note
we assume shared responsibility for the pointer (via reference counting)

Definition at line 76 of file GNEChange_Junction.h.

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

◆ myNet


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