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 (const std::set< GUIGlID > &selected, const std::set< GUIGlID > &deselected, bool forward)
 Constructor for modifying selection. More...
 
void redo ()
 
FXString redoName () const
 
virtual FXuint size () const
 
void undo ()
 
FXString undoName () const
 
 ~GNEChange_Selection ()
 Destructor. 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 ( const std::set< GUIGlID > &  selected,
const std::set< GUIGlID > &  deselected,
bool  forward 
)

Constructor for modifying selection.

Parameters
[in]selectedThe ids to select
[in]deselectedThe ids to deselect
[in]forwardWhether to select or deselect the selected ids

Definition at line 49 of file GNEChange_Selection.cpp.

GNEChange_Selection::~GNEChange_Selection ( )

Destructor.

Definition at line 56 of file GNEChange_Selection.cpp.

Member Function Documentation

void GNEChange_Selection::redo ( )
virtual
FXString GNEChange_Selection::redoName ( ) const
virtual

Reimplemented from GNEChange.

Definition at line 107 of file GNEChange_Selection.cpp.

References GNEChange::myForward.

virtual FXuint GNEChange::size ( ) const
inlinevirtualinherited

Definition at line 62 of file GNEChange.h.

void GNEChange_Selection::undo ( )
virtual
FXString GNEChange_Selection::undoName ( ) const
virtual

Reimplemented from GNEChange.

Definition at line 98 of file GNEChange_Selection.cpp.

References GNEChange::myForward.

Field Documentation

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

all ids that were deselected in this change

Definition at line 72 of file GNEChange_Selection.h.

Referenced by redo(), and undo().

GNENet* GNEChange::myNet
protectedinherited

the net to which operations shall be applied or which shall be informed about gui updates (we are not responsible for the pointer)

Definition at line 73 of file GNEChange.h.

Referenced by GNEChange_Edge::redo(), GNEChange_Junction::redo(), GNEChange::redo(), GNEChange_Junction::undo(), and GNEChange_Edge::undo().

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

all ids that were selected in this change

Definition at line 70 of file GNEChange_Selection.h.

Referenced by redo(), and undo().


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