![]() |
SUMO - Simulation of Urban MObility
|
#include <GNETAZFrame.h>
Public Member Functions | |
void | clearSelectedEdges () |
clear current TAZ childs More... | |
const std::vector< TAZCurrent::TAZEdge > & | getEdgeAndTAZChildsSelected () const |
get map with edge and TAZChilds More... | |
void | hideTAZSelectionStatisticsModul () |
hide TAZ Selection Statistics Modul More... | |
bool | isEdgeSelected (GNEEdge *edge) |
check if an edge is selected More... | |
bool | selectEdge (const TAZCurrent::TAZEdge &edge) |
add an edge and their TAZ Childs in the list of selected items More... | |
void | showTAZSelectionStatisticsModul () |
show TAZ Selection Statistics Modul More... | |
TAZSelectionStatistics (GNETAZFrame *TAZFrameParent) | |
FOX-declaration. More... | |
bool | unselectEdge (GNEEdge *edge) |
un select an edge (and their TAZ Childs) More... | |
~TAZSelectionStatistics () | |
destructor More... | |
FOX-callbacks | |
Called when the user set a new value | |
long | onCmdSetNewValues (FXObject *obj, FXSelector, void *) |
long | onCmdSelectEdges (FXObject *obj, FXSelector, void *) |
Called when the user press select edges. More... | |
Protected Member Functions | |
TAZSelectionStatistics () | |
FOX needs this. More... | |
void | updateStatistics () |
update TAZSelectionStatistics More... | |
Private Attributes | |
std::vector< TAZCurrent::TAZEdge > | myEdgeAndTAZChildsSelected |
vector with the current selected edges and their associated childs More... | |
FXLabel * | myStatisticsLabel |
Statistics labels. More... | |
GNETAZFrame * | myTAZFrameParent |
pointer to TAZFrame parent More... | |
FXHorizontalFrame * | myTAZSinkFrame |
Horizontal Frame for default TAZ Sink Weight. More... | |
FXHorizontalFrame * | myTAZSourceFrame |
Horizontal Frame for default TAZ Source Weight. More... | |
FXTextField * | myTextFieldTAZSinkWeight |
textField for TAZ Sink weight More... | |
FXTextField * | myTextFieldTAZSourceWeight |
textField for TAZ Source weight More... | |
Definition at line 308 of file GNETAZFrame.h.
GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics | ( | GNETAZFrame * | TAZFrameParent | ) |
FOX-declaration.
constructor
Definition at line 791 of file GNETAZFrame.cpp.
References GUIDesignAuxiliarHorizontalFrame, GUIDesignLabelAttribute, GUIDesignLabelFrameInformation, GUIDesignTextFieldNCol, GUIDesignTextFieldReal, MID_GNE_SET_ATTRIBUTE, myStatisticsLabel, myTAZSinkFrame, myTAZSourceFrame, myTextFieldTAZSinkWeight, and myTextFieldTAZSourceWeight.
GNETAZFrame::TAZSelectionStatistics::~TAZSelectionStatistics | ( | ) |
destructor
Definition at line 809 of file GNETAZFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 351 of file GNETAZFrame.h.
void GNETAZFrame::TAZSelectionStatistics::clearSelectedEdges | ( | ) |
clear current TAZ childs
Definition at line 886 of file GNETAZFrame.cpp.
References myEdgeAndTAZChildsSelected, GNETAZFrame::myTAZChildDefaultParameters, GNETAZFrame::myTAZEdgesGraphic, myTAZFrameParent, GNETAZFrame::TAZEdgesGraphic::updateEdgeColors(), GNETAZFrame::TAZChildDefaultParameters::updateSelectEdgesButton(), and updateStatistics().
Referenced by hideTAZSelectionStatisticsModul(), GNEApplicationWindow::onCmdAbort(), GNETAZFrame::TAZChildDefaultParameters::onCmdSetDefaultValues(), and GNETAZFrame::processClick().
const std::vector< GNETAZFrame::TAZCurrent::TAZEdge > & GNETAZFrame::TAZSelectionStatistics::getEdgeAndTAZChildsSelected | ( | ) | const |
get map with edge and TAZChilds
Definition at line 899 of file GNETAZFrame.cpp.
References myEdgeAndTAZChildsSelected.
Referenced by GNEApplicationWindow::onCmdAbort(), GNETAZFrame::TAZChildDefaultParameters::onCmdUseSelectedEdges(), GNETAZFrame::TAZEdgesGraphic::updateEdgeColors(), and GNETAZFrame::TAZChildDefaultParameters::updateSelectEdgesButton().
void GNETAZFrame::TAZSelectionStatistics::hideTAZSelectionStatisticsModul | ( | ) |
hide TAZ Selection Statistics Modul
Definition at line 821 of file GNETAZFrame.cpp.
References clearSelectedEdges(), and GNETAZFrame::hide().
Referenced by GNETAZFrame::TAZChildDefaultParameters::hideTAZChildDefaultParametersModul(), GNETAZFrame::TAZChildDefaultParameters::onCmdSetDefaultValues(), and GNETAZFrame::TAZChildDefaultParameters::showTAZChildDefaultParametersModul().
bool GNETAZFrame::TAZSelectionStatistics::isEdgeSelected | ( | GNEEdge * | edge | ) |
check if an edge is selected
Definition at line 873 of file GNETAZFrame.cpp.
References myEdgeAndTAZChildsSelected.
Referenced by GNETAZFrame::processClick(), and GNETAZFrame::processEdgeSelection().
long GNETAZFrame::TAZSelectionStatistics::onCmdSelectEdges | ( | FXObject * | obj, |
FXSelector | , | ||
void * | |||
) |
Called when the user press select edges.
Definition at line 960 of file GNETAZFrame.cpp.
References GNETAZFrame::TAZSaveChanges::enableButtonsAndBeginUndoList(), GNETAZFrame::getTAZCurrentModul(), GNETAZFrame::TAZCurrent::getTAZEdges(), GNEViewNet::getUndoList(), GNE_ATTR_SELECTED, myEdgeAndTAZChildsSelected, myTAZFrameParent, GNETAZFrame::myTAZSaveChanges, and GNEFrame::myViewNet.
long GNETAZFrame::TAZSelectionStatistics::onCmdSetNewValues | ( | FXObject * | obj, |
FXSelector | , | ||
void * | |||
) |
Definition at line 905 of file GNETAZFrame.cpp.
References GNETAZFrame::TAZSaveChanges::enableButtonsAndBeginUndoList(), GNETAZFrame::getTAZCurrentModul(), GNEViewNet::getUndoList(), myEdgeAndTAZChildsSelected, myTAZFrameParent, GNETAZFrame::myTAZSaveChanges, myTextFieldTAZSinkWeight, myTextFieldTAZSourceWeight, GNEFrame::myViewNet, GNETAZFrame::TAZCurrent::refreshTAZEdges(), and SUMO_ATTR_WEIGHT.
bool GNETAZFrame::TAZSelectionStatistics::selectEdge | ( | const TAZCurrent::TAZEdge & | edge | ) |
add an edge and their TAZ Childs in the list of selected items
Definition at line 829 of file GNETAZFrame.cpp.
References GNETAZFrame::TAZCurrent::TAZEdge::edge, myEdgeAndTAZChildsSelected, GNETAZFrame::myTAZChildDefaultParameters, GNETAZFrame::myTAZEdgesGraphic, myTAZFrameParent, GNETAZFrame::TAZEdgesGraphic::updateEdgeColors(), GNETAZFrame::TAZChildDefaultParameters::updateSelectEdgesButton(), and updateStatistics().
Referenced by GNETAZFrame::processClick(), and GNETAZFrame::processEdgeSelection().
void GNETAZFrame::TAZSelectionStatistics::showTAZSelectionStatisticsModul | ( | ) |
show TAZ Selection Statistics Modul
Definition at line 813 of file GNETAZFrame.cpp.
References GNEFrame::show(), and updateStatistics().
Referenced by GNETAZFrame::TAZChildDefaultParameters::onCmdSetDefaultValues(), and GNETAZFrame::TAZChildDefaultParameters::showTAZChildDefaultParametersModul().
bool GNETAZFrame::TAZSelectionStatistics::unselectEdge | ( | GNEEdge * | edge | ) |
un select an edge (and their TAZ Childs)
Definition at line 849 of file GNETAZFrame.cpp.
References myEdgeAndTAZChildsSelected, GNETAZFrame::myTAZChildDefaultParameters, GNETAZFrame::myTAZEdgesGraphic, myTAZFrameParent, GNETAZFrame::TAZEdgesGraphic::updateEdgeColors(), GNETAZFrame::TAZChildDefaultParameters::updateSelectEdgesButton(), and updateStatistics().
|
protected |
update TAZSelectionStatistics
Definition at line 991 of file GNETAZFrame.cpp.
References joinToString(), myEdgeAndTAZChildsSelected, myStatisticsLabel, myTAZSinkFrame, myTAZSourceFrame, myTextFieldTAZSinkWeight, myTextFieldTAZSourceWeight, SUMO_ATTR_WEIGHT, and toString().
Referenced by clearSelectedEdges(), selectEdge(), showTAZSelectionStatisticsModul(), and unselectEdge().
|
private |
vector with the current selected edges and their associated childs
Definition at line 376 of file GNETAZFrame.h.
Referenced by clearSelectedEdges(), getEdgeAndTAZChildsSelected(), isEdgeSelected(), onCmdSelectEdges(), onCmdSetNewValues(), selectEdge(), unselectEdge(), and updateStatistics().
|
private |
Statistics labels.
Definition at line 373 of file GNETAZFrame.h.
Referenced by TAZSelectionStatistics(), and updateStatistics().
|
private |
pointer to TAZFrame parent
Definition at line 358 of file GNETAZFrame.h.
Referenced by clearSelectedEdges(), onCmdSelectEdges(), onCmdSetNewValues(), selectEdge(), and unselectEdge().
|
private |
Horizontal Frame for default TAZ Sink Weight.
Definition at line 367 of file GNETAZFrame.h.
Referenced by TAZSelectionStatistics(), and updateStatistics().
|
private |
Horizontal Frame for default TAZ Source Weight.
Definition at line 361 of file GNETAZFrame.h.
Referenced by TAZSelectionStatistics(), and updateStatistics().
|
private |
textField for TAZ Sink weight
Definition at line 370 of file GNETAZFrame.h.
Referenced by onCmdSetNewValues(), TAZSelectionStatistics(), and updateStatistics().
|
private |
textField for TAZ Source weight
Definition at line 364 of file GNETAZFrame.h.
Referenced by onCmdSetNewValues(), TAZSelectionStatistics(), and updateStatistics().