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, int customTLIndex, const PositionVector &customShape, bool selected, 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

PositionVector myCustomShape
 priority of GNECrossing More...
 
int myCustomTLIndex
 custom index of GNECrossing More...
 
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...
 
bool mySelected
 flag to indicates if crossing was previously selected 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,
int  customTLIndex,
const PositionVector customShape,
bool  selected,
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]checkif in the moment of change connection was selected
[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 64 of file GNEChange_Crossing.cpp.

References GNEChange::myNet.

Member Function Documentation

◆ redo()

◆ redoName()

FXString GNEChange_Crossing::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 190 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 52 of file GNEChange.cpp.

◆ undo()

◆ undoName()

FXString GNEChange_Crossing::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 180 of file GNEChange_Crossing.cpp.

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

Field Documentation

◆ myCustomShape

PositionVector GNEChange_Crossing::myCustomShape
private

priority of GNECrossing

Definition at line 104 of file GNEChange_Crossing.h.

Referenced by undo().

◆ myCustomTLIndex

int GNEChange_Crossing::myCustomTLIndex
private

custom index of GNECrossing

Definition at line 101 of file GNEChange_Crossing.h.

Referenced by undo().

◆ myEdges

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

vector to save all edges of GNECrossing

Definition at line 92 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 89 of file GNEChange_Crossing.h.

Referenced by redo(), and undo().

◆ myNet

◆ myPriority

bool GNEChange_Crossing::myPriority
private

priority of GNECrossing

Definition at line 98 of file GNEChange_Crossing.h.

Referenced by redo(), and undo().

◆ mySelected

bool GNEChange_Crossing::mySelected
private

flag to indicates if crossing was previously selected

Definition at line 107 of file GNEChange_Crossing.h.

Referenced by redo(), and undo().

◆ myWidth

double GNEChange_Crossing::myWidth
private

width of GNECrossing

Definition at line 95 of file GNEChange_Crossing.h.

Referenced by redo(), and undo().


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