SUMO - Simulation of Urban MObility
GNEChange_Selection Class Reference

#include <GNEChange_Selection.h>

Inheritance diagram for GNEChange_Selection:
Inheritance graph
Collaboration diagram for GNEChange_Selection:
Collaboration graph

Public Member Functions

 GNEChange_Selection (GNENet *net, const std::set< GUIGlID > &selected, const std::set< GUIGlID > &deselected, bool forward)
 Constructor for modifying selection. More...
 
virtual FXuint size () const
 return actual size More...
 
 ~GNEChange_Selection ()
 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::set< GUIGlIDmyDeselectedIDs
 all ids that were deselected in this change More...
 
std::set< GUIGlIDmySelectedIDs
 all ids that were selected in this change More...
 

Detailed Description

A change to the network selection

Definition at line 48 of file GNEChange_Selection.h.

Constructor & Destructor Documentation

◆ GNEChange_Selection()

GNEChange_Selection::GNEChange_Selection ( GNENet net,
const std::set< GUIGlID > &  selected,
const std::set< GUIGlID > &  deselected,
bool  forward 
)

Constructor for modifying selection.

constructor for changing selection

Parameters
[in]netnet in which apply selection chagnes
[in]selectedThe ids to select
[in]deselectedThe ids to deselect
[in]forwardWhether to select or deselect the selected ids

Definition at line 50 of file GNEChange_Selection.cpp.

◆ ~GNEChange_Selection()

GNEChange_Selection::~GNEChange_Selection ( )

Destructor.

Definition at line 58 of file GNEChange_Selection.cpp.

Member Function Documentation

◆ redo()

◆ redoName()

FXString GNEChange_Selection::redoName ( ) const
virtual

get Redo name

Reimplemented from GNEChange.

Definition at line 179 of file GNEChange_Selection.cpp.

References GNEChange::myForward.

◆ size()

FXuint GNEChange::size ( ) const
virtualinherited

return actual size

Definition at line 52 of file GNEChange.cpp.

◆ undo()

◆ undoName()

FXString GNEChange_Selection::undoName ( ) const
virtual

return undoName

Reimplemented from GNEChange.

Definition at line 169 of file GNEChange_Selection.cpp.

References GNEChange::myForward.

Field Documentation

◆ myDeselectedIDs

std::set<GUIGlID> GNEChange_Selection::myDeselectedIDs
private

all ids that were deselected in this change

Definition at line 84 of file GNEChange_Selection.h.

Referenced by redo(), and undo().

◆ myForward

◆ myNet

◆ mySelectedIDs

std::set<GUIGlID> GNEChange_Selection::mySelectedIDs
private

all ids that were selected in this change

Definition at line 81 of file GNEChange_Selection.h.

Referenced by redo(), and undo().


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