SUMO - Simulation of Urban MObility
GNEChange_Crossing Class Reference

#include <GNEChange_Crossing.h>

Inheritance diagram for GNEChange_Crossing:
Inheritance graph
Collaboration diagram for GNEChange_Crossing:
Collaboration graph

Public Member Functions

 GNEChange_Crossing (GNEJunction *junctionParent, const std::vector< NBEdge *> &edges, double width, bool priority, bool forward)
 Constructor for creating/deleting an crossing. More...
 
virtual FXuint size () const
 return actual size More...
 
 ~GNEChange_Crossing ()
 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

std::vector< NBEdge * > myEdges
 vector to save all edges of GNECrossing More...
 
GNEJunctionmyJunctionParent
 full information regarding the Junction in which GNECRossing is created More...
 
bool myPriority
 priority of GNECrossing More...
 
double myWidth
 width of GNECrossing More...
 

Detailed Description

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

Definition at line 53 of file GNEChange_Crossing.h.

Constructor & Destructor Documentation

◆ GNEChange_Crossing()

GNEChange_Crossing::GNEChange_Crossing ( GNEJunction junctionParent,
const std::vector< NBEdge *> &  edges,
double  width,
bool  priority,
bool  forward 
)

Constructor for creating/deleting an crossing.

constructor for creating an crossing

Parameters
[in]JunctionParentGNEJunction in which the crossing will be created/deleted
[in]edgesvector of edges of crossing
[in]widthvalue with the width of crossing
[in]priorityboolean with the priority of crossing
[in]forwardWhether to create/delete (true/false)

Definition at line 50 of file GNEChange_Crossing.cpp.

◆ ~GNEChange_Crossing()

GNEChange_Crossing::~GNEChange_Crossing ( )

Destructor.

Definition at line 60 of file GNEChange_Crossing.cpp.

Member Function Documentation

◆ redo()

◆ redoName()

FXString GNEChange_Crossing::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 124 of file GNEChange_Crossing.cpp.

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

◆ size()

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 53 of file GNEChange.cpp.

◆ undo()

◆ undoName()

FXString GNEChange_Crossing::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 114 of file GNEChange_Crossing.cpp.

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

Field Documentation

◆ myEdges

std::vector<NBEdge*> GNEChange_Crossing::myEdges
private

vector to save all edges of GNECrossing

Definition at line 90 of file GNEChange_Crossing.h.

Referenced by redo(), and undo().

◆ myForward

◆ myJunctionParent

GNEJunction* GNEChange_Crossing::myJunctionParent
private

full information regarding the Junction in which GNECRossing is created

Definition at line 87 of file GNEChange_Crossing.h.

Referenced by redo(), and undo().

◆ myNet

◆ myPriority

bool GNEChange_Crossing::myPriority
private

priority of GNECrossing

Definition at line 96 of file GNEChange_Crossing.h.

Referenced by redo(), and undo().

◆ myWidth

double GNEChange_Crossing::myWidth
private

width of GNECrossing

Definition at line 93 of file GNEChange_Crossing.h.

Referenced by redo(), and undo().


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