![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNETAZFrame.h>
Data Structures | |
| class | CurrentTAZ |
| class | TAZChildDefaultParameters |
| class | TAZCommonStatistics |
| class | TAZEdgesGraphic |
| class | TAZSaveChanges |
| class | TAZSelectionStatistics |
Public Member Functions | |
| void | focusUpperElement () |
| focus upper element of frame | |
| virtual void | frameWidthUpdated () |
| function called after setting new width in current frame (can be reimplemented in frame children) | |
| FXVerticalFrame * | getContentFrame () const |
| get vertical frame that holds all widgets of frame | |
| CurrentTAZ * | getCurrentTAZModule () const |
| get Current TAZ module | |
| GNEDrawingShape * | getDrawingShapeModule () const |
| get drawing mode module | |
| FXFont * | getFrameHeaderFont () const |
| get font of the header's frame | |
| FXLabel * | getFrameHeaderLabel () const |
| get the label for the frame's header | |
| int | getScrollBarWidth () const |
| get scrollBar width (zero if is hidden) | |
| TAZSaveChanges * | getTAZSaveChangesModule () const |
| get TAZ Save Changes module | |
| TAZSelectionStatistics * | getTAZSelectionStatisticsModule () const |
| get TAZ Selection Statistics module | |
| GNEViewNet * | getViewNet () const |
| get view net | |
| GNETAZFrame (GNEViewParent *viewParent, GNEViewNet *viewNet) | |
| Constructor. | |
| void | hide () |
| hide TAZ frame | |
| void | openHelpAttributesDialog (const GNEAttributeCarrier *AC) const |
| Open help attributes dialog. | |
| bool | processClick (const Position &clickedPosition, const GNEViewNetHelper::ViewObjectsSelector &viewObjects) |
| process click over Viewnet | |
| void | processEdgeSelection (const std::vector< GNEEdge * > &edges) |
| process selection of edges in view net | |
| void | setFrameWidth (const int newWidth) |
| set width of GNEFrame | |
| void | show () |
| show TAZ Frame | |
| virtual void | updateFrameAfterUndoRedo () |
| function called after undo/redo in the current frame (can be reimplemented in frame children) | |
| ~GNETAZFrame () | |
| Destructor. | |
functions called by moduls that can be reimplemented in frame children (note: reimplement as protected, just for safety) | |
| virtual void | tagSelected () |
| Tag selected in GNETagSelector. | |
| virtual void | demandElementSelected () |
| selected demand element in DemandElementSelector | |
| virtual void | attributeUpdated (SumoXMLAttr attribute) |
| function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/... | |
| virtual void | selectedOverlappedElement (GNEAttributeCarrier *AC) |
| open GNEAttributesCreator extended dialog | |
| virtual bool | createPath (const bool useLastRoute) |
| create path between two elements | |
Protected Member Functions | |
| bool | addOrRemoveTAZMember (GNEEdge *edge) |
| add or remove a source and a sink, or remove it if edge is in the list of TAZ Children | |
| void | dropTAZMembers () |
| drop all TAZSources and TAZ Sinks of current TAZ | |
| const std::vector< std::string > & | getPredefinedTagsMML () const |
| get predefinedTagsMML | |
| bool | shapeDrawed () |
| build a shaped element using the drawed shape return true if was successfully created | |
Static Protected Member Functions | |
| static FXLabel * | buildRainbow (FXComposite *parent) |
| build rainbow in frame modul | |
Protected Attributes | |
| CommonXMLStructure::SumoBaseObject * | myBaseTAZ = nullptr |
| SumoBaseObject used for creating TAZ. | |
| FXVerticalFrame * | myContentFrame = nullptr |
| Vertical frame that holds all widgets of frame. | |
| FXHorizontalFrame * | myHeaderFrame = nullptr |
| fame for header elements | |
| FXHorizontalFrame * | myHeaderLeftFrame = nullptr |
| fame for left header elements | |
| FXHorizontalFrame * | myHeaderRightFrame = nullptr |
| fame for right header elements | |
| GNEViewNet * | myViewNet = nullptr |
| FOX need this. | |
Private Attributes | |
| CurrentTAZ * | myCurrentTAZ = nullptr |
| current TAZ | |
| GNEDrawingShape * | myDrawingShape = nullptr |
| Drawing shape. | |
| FXLabel * | myFrameHeaderLabel = nullptr |
| the label for the frame's header | |
| std::vector< std::string > | myPredefinedTagsMML |
| Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached). | |
| FXScrollWindow * | myScrollWindowsContents = nullptr |
| scroll windows that holds the content frame | |
| GNEAttributesEditor * | myTAZAttributesEditor = nullptr |
| TAZ parameters. | |
| TAZChildDefaultParameters * | myTAZChildDefaultParameters = nullptr |
| TAZ child defaults parameters. | |
| TAZCommonStatistics * | myTAZCommonStatistics = nullptr |
| TAZ Edges common parameters. | |
| TAZEdgesGraphic * | myTAZEdgesGraphic = nullptr |
| TAZ Edges Graphic. | |
| TAZSaveChanges * | myTAZSaveChanges = nullptr |
| save TAZ Edges | |
| TAZSelectionStatistics * | myTAZSelectionStatistics = nullptr |
| TAZ Edges selection parameters. | |
Static Private Attributes | |
| static FXFont * | myFrameHeaderFont = nullptr |
| static Font for the Header (it's common for all headers, then create only one time) | |
Definition at line 38 of file GNETAZFrame.h.
| GNETAZFrame::GNETAZFrame | ( | GNEViewParent * | viewParent, |
| GNEViewNet * | viewNet ) |
Constructor.
viewParent GNEViewParent in which this GNEFrame is placed
viewNet viewNet that uses this GNEFrame
Definition at line 1278 of file GNETAZFrame.cpp.
References GNEAttributesEditorType::CREATOR, GNEFrame::GNEFrame(), myCurrentTAZ, myDrawingShape, myTAZAttributesEditor, myTAZChildDefaultParameters, myTAZCommonStatistics, myTAZEdgesGraphic, myTAZSaveChanges, myTAZSelectionStatistics, and TL.
Referenced by GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters(), GNETAZFrame::TAZCommonStatistics::TAZCommonStatistics(), GNETAZFrame::CurrentTAZ::TAZEdgeColor::TAZEdgeColor(), GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic(), GNETAZFrame::TAZSaveChanges::TAZSaveChanges(), and GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics().
| GNETAZFrame::~GNETAZFrame | ( | ) |
|
protected |
add or remove a source and a sink, or remove it if edge is in the list of TAZ Children
Definition at line 1506 of file GNETAZFrame.cpp.
References myCurrentTAZ, myTAZChildDefaultParameters, myTAZSaveChanges, GNEFrame::myViewNet, SUMO_TAG_TAZSINK, and SUMO_TAG_TAZSOURCE.
Referenced by processClick(), and processEdgeSelection().
|
virtualinherited |
function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/...
Reimplemented in GNEMeanDataFrame, GNERouteDistributionFrame, GNETypeDistributionFrame, and GNETypeFrame.
Definition at line 220 of file GNEFrame.cpp.
|
staticprotectedinherited |
build rainbow in frame modul
Definition at line 245 of file GNEFrame.cpp.
References MFXUtils::getFXColor(), GNEViewNetHelper::getRainbowScaledColors(), GUIDesignAuxiliarHorizontalFrame, GUIDesignLabel, GUIDesignLabelThick, and TL.
Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), and GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic().
|
virtualinherited |
create path between two elements
Reimplemented in GNEAdditionalFrame, GNEContainerFrame, GNEContainerPlanFrame, GNEEdgeRelDataFrame, GNEGenericDataFrame, GNEPersonFrame, GNEPersonPlanFrame, GNERouteFrame, GNEVehicleFrame, and GNEWireFrame.
Definition at line 232 of file GNEFrame.cpp.
|
virtualinherited |
selected demand element in DemandElementSelector
Reimplemented in GNEContainerFrame, GNEContainerPlanFrame, GNEPersonFrame, GNEPersonPlanFrame, GNEStopFrame, and GNEVehicleFrame.
Definition at line 207 of file GNEFrame.cpp.
|
protected |
drop all TAZSources and TAZ Sinks of current TAZ
Definition at line 1548 of file GNETAZFrame.cpp.
References myCurrentTAZ, myTAZSaveChanges, and GNEFrame::myViewNet.
|
inherited |
focus upper element of frame
Definition at line 104 of file GNEFrame.cpp.
References myFrameHeaderLabel.
Referenced by GNEInspectorFrame::inspectClickedElements().
|
virtualinherited |
function called after setting new width in current frame (can be reimplemented in frame children)
Reimplemented in GNETLSEditorFrame.
Definition at line 192 of file GNEFrame.cpp.
Referenced by setFrameWidth().
|
inherited |
get vertical frame that holds all widgets of frame
Definition at line 151 of file GNEFrame.cpp.
References myContentFrame.
| GNETAZFrame::CurrentTAZ * GNETAZFrame::getCurrentTAZModule | ( | ) | const |
| GNEDrawingShape * GNETAZFrame::getDrawingShapeModule | ( | ) | const |
|
inherited |
get font of the header's frame
Definition at line 163 of file GNEFrame.cpp.
References myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 157 of file GNEFrame.cpp.
References myFrameHeaderLabel.
Referenced by GNEInspectorFrame::refreshInspection().
|
protectedinherited |
get predefinedTagsMML
Definition at line 239 of file GNEFrame.cpp.
References myPredefinedTagsMML.
Referenced by GNEContainerFrame::buildContainer(), GNEPersonFrame::buildPerson(), GNEVehicleFrame::buildVehicleOverRoute(), and GNEVehicleFrame::createPath().
|
inherited |
get scrollBar width (zero if is hidden)
Definition at line 169 of file GNEFrame.cpp.
References myScrollWindowsContents.
| GNETAZFrame::TAZSaveChanges * GNETAZFrame::getTAZSaveChangesModule | ( | ) | const |
get TAZ Save Changes module
Definition at line 1442 of file GNETAZFrame.cpp.
References myTAZSaveChanges.
| GNETAZFrame::TAZSelectionStatistics * GNETAZFrame::getTAZSelectionStatisticsModule | ( | ) | const |
get TAZ Selection Statistics module
Definition at line 1436 of file GNETAZFrame.cpp.
References myTAZSelectionStatistics.
|
inherited |
get view net
Definition at line 145 of file GNEFrame.cpp.
References myViewNet.
Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEAttributesEditorType::buildRows(), GNEDeleteFrame::SubordinatedElements::checkElements(), GNETLSTable::Column::Column(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEMatchAttribute::GNEMatchAttribute(), GNEPathLegendModule::GNEPathLegendModule(), GNECrossingFrame::Information::Information(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNEDeleteFrame::SubordinatedElements::SubordinatedElements(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), and GNETLSEditorFrame::TLSPrograms::TLSPrograms().
|
virtual |
hide TAZ frame
Reimplemented from GNEFrame.
Definition at line 1328 of file GNETAZFrame.cpp.
References GNEFrame::hide().
Referenced by GNETAZFrame::TAZCommonStatistics::hideTAZCommonStatisticsModule(), GNETAZFrame::TAZEdgesGraphic::hideTAZEdgesGraphicModule(), GNETAZFrame::TAZSaveChanges::hideTAZSaveChangesModule(), and GNETAZFrame::TAZSelectionStatistics::hideTAZSelectionStatisticsModule().
|
inherited |
| bool GNETAZFrame::processClick | ( | const Position & | clickedPosition, |
| const GNEViewNetHelper::ViewObjectsSelector & | viewObjects ) |
process click over Viewnet
| [in] | clickedPosition | clicked position over ViewNet |
| [in] | viewObjects | objects under cursors |
Definition at line 1335 of file GNETAZFrame.cpp.
References addOrRemoveTAZMember(), GNEViewNetHelper::ViewObjectsSelector::getEdgeFront(), GNEViewNetHelper::ViewObjectsSelector::getTAZFront(), myCurrentTAZ, myDrawingShape, myTAZChildDefaultParameters, myTAZCommonStatistics, myTAZSaveChanges, and myTAZSelectionStatistics.
| void GNETAZFrame::processEdgeSelection | ( | const std::vector< GNEEdge * > & | edges | ) |
process selection of edges in view net
Definition at line 1392 of file GNETAZFrame.cpp.
References addOrRemoveTAZMember(), myCurrentTAZ, myTAZChildDefaultParameters, and myTAZSelectionStatistics.
|
virtualinherited |
open GNEAttributesCreator extended dialog
Reimplemented in GNEInspectorFrame, and GNETLSEditorFrame.
Definition at line 226 of file GNEFrame.cpp.
|
inherited |
set width of GNEFrame
Definition at line 128 of file GNEFrame.cpp.
References frameWidthUpdated(), GUIDesignFrameAreaMargin, myContentFrame, and myScrollWindowsContents.
Referenced by GNEInspectorFrame::refreshInspection().
|
protectedvirtual |
build a shaped element using the drawed shape return true if was successfully created
Reimplemented from GNEFrame.
Definition at line 1448 of file GNETAZFrame.cpp.
References PositionVector::closePolygon(), PositionVector::getCentroid(), GNE_ATTR_ADDITIONAL_FILE, GNE_ATTR_EDGES_WITHIN, Position::INVALID, myBaseTAZ, myDrawingShape, myTAZAttributesEditor, GNEFrame::myViewNet, AdditionalHandler::parseSumoBaseObject(), SUMO_ATTR_CENTER, SUMO_ATTR_EDGES, SUMO_ATTR_ID, SUMO_ATTR_SHAPE, SUMO_TAG_TAZ, TL, TLF, WRITE_MESSAGE, and WRITE_WARNING.
|
virtual |
show TAZ Frame
Reimplemented from GNEFrame.
Definition at line 1319 of file GNETAZFrame.cpp.
References myCurrentTAZ, and GNEFrame::show().
Referenced by GNETAZFrame::TAZCommonStatistics::showTAZCommonStatisticsModule(), GNETAZFrame::TAZEdgesGraphic::showTAZEdgesGraphicModule(), GNETAZFrame::TAZSaveChanges::showTAZSaveChangesModule(), GNETAZFrame::TAZSelectionStatistics::showTAZSelectionStatisticsModule(), and GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters().
|
virtualinherited |
Tag selected in GNETagSelector.
Reimplemented in GNEAdditionalFrame, GNEContainerFrame, GNEContainerPlanFrame, GNEPersonFrame, GNEPersonPlanFrame, GNEShapeFrame, GNEStopFrame, GNEVehicleFrame, and GNEWireFrame.
Definition at line 201 of file GNEFrame.cpp.
|
virtualinherited |
function called after undo/redo in the current frame (can be reimplemented in frame children)
Reimplemented in GNEGenericDataFrame, GNEInspectorFrame, GNEMeanDataFrame, and GNESelectorFrame.
Definition at line 186 of file GNEFrame.cpp.
|
protected |
SumoBaseObject used for creating TAZ.
Definition at line 483 of file GNETAZFrame.h.
Referenced by shapeDrawed(), and ~GNETAZFrame().
|
protectedinherited |
Vertical frame that holds all widgets of frame.
Definition at line 125 of file GNEFrame.h.
Referenced by getContentFrame(), GNESelectorFrame::getContentFrame(), GNEFrame(), and setFrameWidth().
|
private |
current TAZ
Definition at line 499 of file GNETAZFrame.h.
Referenced by addOrRemoveTAZMember(), dropTAZMembers(), getCurrentTAZModule(), GNETAZFrame(), processClick(), processEdgeSelection(), and show().
|
private |
Drawing shape.
Definition at line 508 of file GNETAZFrame.h.
Referenced by getDrawingShapeModule(), GNETAZFrame(), processClick(), and shapeDrawed().
|
staticprivateinherited |
static Font for the Header (it's common for all headers, then create only one time)
Definition at line 147 of file GNEFrame.h.
Referenced by getFrameHeaderFont(), GNEFrame(), and ~GNEFrame().
|
privateinherited |
the label for the frame's header
Definition at line 150 of file GNEFrame.h.
Referenced by focusUpperElement(), getFrameHeaderLabel(), and GNEFrame().
|
protectedinherited |
|
protectedinherited |
fame for left header elements
Definition at line 131 of file GNEFrame.h.
Referenced by GNEFrame(), GNEInspectorFrame::GNEInspectorFrame(), and GNEInspectorFrame::refreshInspection().
|
protectedinherited |
|
privateinherited |
Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached).
Definition at line 153 of file GNEFrame.h.
Referenced by getPredefinedTagsMML(), and GNEFrame().
|
privateinherited |
scroll windows that holds the content frame
Definition at line 144 of file GNEFrame.h.
Referenced by getScrollBarWidth(), GNEFrame(), and setFrameWidth().
|
private |
TAZ parameters.
Definition at line 505 of file GNETAZFrame.h.
Referenced by GNETAZFrame(), and shapeDrawed().
|
private |
TAZ child defaults parameters.
Definition at line 514 of file GNETAZFrame.h.
Referenced by addOrRemoveTAZMember(), GNETAZFrame(), processClick(), and processEdgeSelection().
|
private |
TAZ Edges common parameters.
Definition at line 502 of file GNETAZFrame.h.
Referenced by GNETAZFrame(), and processClick().
|
private |
|
private |
save TAZ Edges
Definition at line 511 of file GNETAZFrame.h.
Referenced by addOrRemoveTAZMember(), dropTAZMembers(), getTAZSaveChangesModule(), GNETAZFrame(), and processClick().
|
private |
TAZ Edges selection parameters.
Definition at line 517 of file GNETAZFrame.h.
Referenced by getTAZSelectionStatisticsModule(), GNETAZFrame(), processClick(), and processEdgeSelection().
|
protectedinherited |
FOX need this.
View Net
Definition at line 122 of file GNEFrame.h.
Referenced by GNEAdditionalFrame::addAdditional(), GNECreateEdgeFrame::addBikelane(), GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNECrossingFrame::addCrossing(), GNEEdgeDataFrame::addEdgeData(), GNERouteFrame::addEdgeRoute(), GNETAZFrame::addOrRemoveTAZMember(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlanElement(), GNECreateEdgeFrame::addSidewalk(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNEWireFrame::addWire(), GNEConnectorFrame::buildConnection(), GNEContainerFrame::buildContainer(), GNETLSEditorFrame::buildInternalLanes(), GNEPersonFrame::buildPerson(), GNEProhibitionFrame::buildProhibition(), GNETAZRelDataFrame::buildTAZRelationData(), GNEVehicleFrame::buildVehicleOverRoute(), GNEWireFrame::buildWireOverView(), GNETLSEditorFrame::cleanup(), GNEWireFrame::createBaseWireObject(), GNEAdditionalFrame::createPath(), GNEContainerFrame::createPath(), GNEContainerPlanFrame::createPath(), GNEEdgeRelDataFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNEWireFrame::createPath(), GNECreateEdgeFrame::disablePedestrians(), GNETAZFrame::dropTAZMembers(), GNETLSEditorFrame::editJunction(), GNETLSEditorFrame::editTLS(), GNEStopFrame::getStopParameter(), getViewNet(), GNEFrame(), GNETypeFrame::GNETypeFrame(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEContainerFrame::hide(), GNEContainerPlanFrame::hide(), hide(), GNEGenericDataFrame::hide(), GNEInspectorFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNERouteFrame::hide(), GNEVehicleFrame::hide(), GNEAdditionalFrame::initBaseAdditionalObject(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectClickedElements(), GNEInspectorFrame::inspectElement(), GNEInspectorFrame::inspectElements(), GNETLSEditorFrame::isTLSSaved(), GNEProhibitionFrame::Legend::Legend(), openHelpAttributesDialog(), GNETLSEditorFrame::parseTLSPrograms(), GNECreateEdgeFrame::processClick(), GNEShapeFrame::processClick(), GNEShapeFrame::processClickPOI(), GNEShapeFrame::processClickPOIGeo(), GNEShapeFrame::processClickPOILanes(), GNEInspectorFrame::refreshInspection(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeGeometryPoint(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNESelectorFrame::selectAttributeCarrier(), GNEDeleteFrame::selectedACsToDelete(), GNEInspectorFrame::selectedOverlappedElement(), GNEShapeFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEContainerPlanFrame::show(), show(), GNEMoveFrame::show(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), GNEWireFrame::show(), and GNEAdditionalFrame::tagSelected().