SUMO - Simulation of Urban MObility
GNEChange_Connection Class Reference

#include <GNEChange_Connection.h>

Inheritance diagram for GNEChange_Connection:
Inheritance graph
Collaboration diagram for GNEChange_Connection:
Collaboration graph

Public Member Functions

 GNEChange_Connection (GNEEdge *edge, NBEdge::Connection nbCon, bool selected, bool forward)
 Constructor for creating/deleting a connection. More...
 
virtual FXuint size () const
 return actual size More...
 
 ~GNEChange_Connection ()
 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

GNEEdgemyEdge
 
NBEdge::Connection myNBEdgeConnection
 the data which must be copied because the original reference does not persist More...
 
bool mySelected
 flag to indicates if crossing was previously selected More...
 

Detailed Description

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

Definition at line 45 of file GNEChange_Connection.h.

Constructor & Destructor Documentation

◆ GNEChange_Connection()

GNEChange_Connection::GNEChange_Connection ( GNEEdge edge,
NBEdge::Connection  nbCon,
bool  selected,
bool  forward 
)

Constructor for creating/deleting a connection.

Parameters
[in]edgeThe source edge of the connection
[in]nbConThe data of the connection
[in]checkif in the moment of change connection was selected
[in]forwardWhether to create/delete (true/false)

Definition at line 40 of file GNEChange_Connection.cpp.

◆ ~GNEChange_Connection()

GNEChange_Connection::~GNEChange_Connection ( )

Destructor.

Definition at line 49 of file GNEChange_Connection.cpp.

References myEdge.

Member Function Documentation

◆ redo()

◆ redoName()

FXString GNEChange_Connection::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 119 of file GNEChange_Connection.cpp.

References GNEChange::myForward, SUMO_TAG_CONNECTION, 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_Connection::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 109 of file GNEChange_Connection.cpp.

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

Field Documentation

◆ myEdge

GNEEdge* GNEChange_Connection::myEdge
private

Definition at line 79 of file GNEChange_Connection.h.

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

◆ myForward

◆ myNBEdgeConnection

NBEdge::Connection GNEChange_Connection::myNBEdgeConnection
private

the data which must be copied because the original reference does not persist

Definition at line 82 of file GNEChange_Connection.h.

Referenced by redo(), and undo().

◆ myNet

◆ mySelected

bool GNEChange_Connection::mySelected
private

flag to indicates if crossing was previously selected

Definition at line 85 of file GNEChange_Connection.h.

Referenced by redo(), and undo().


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