![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEInspectorFrame.h>
Data Structures | |
| class | TemplateEditor |
| FOX-declaration. More... | |
Public Member Functions | |
| void | clearInspection () |
| clear inspection | |
| 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) | |
| GNEAttributesEditor * | getAttributesEditor () const |
| get AttributesEditor | |
| FXVerticalFrame * | getContentFrame () const |
| get vertical frame that holds all widgets of frame | |
| FXFont * | getFrameHeaderFont () const |
| get font of the header's frame | |
| FXLabel * | getFrameHeaderLabel () const |
| get the label for the frame's header | |
| GNEElementTree * | getHierarchicalElementTree () const |
| get GNEElementTree modul | |
| GNEOverlappedInspection * | getOverlappedInspection () const |
| get GNEOverlappedInspection modul | |
| int | getScrollBarWidth () const |
| get scrollBar width (zero if is hidden) | |
| TemplateEditor * | getTemplateEditor () const |
| get template editor | |
| GNEViewNet * | getViewNet () const |
| get view net | |
| GNEInspectorFrame (GNEViewParent *viewParent, GNEViewNet *viewNet) | |
| Constructor. | |
| void | hide () |
| hide inspector frame | |
| bool | inspectClickedElements (GNEViewNetHelper::ViewObjectsSelector &viewObjects, const Position &clickedPosition, const bool shiftKeyPressed) |
| process click over Viewnet | |
| void | inspectElement (GNEAttributeCarrier *AC, GNEAttributeCarrier *previousInspectedAC=nullptr) |
| Inspect a single element. | |
| void | inspectElements (const std::vector< GNEAttributeCarrier * > &ACs, GNEAttributeCarrier *previousInspectedAC=nullptr) |
| Inspect the given elements. | |
| void | openHelpAttributesDialog (const GNEAttributeCarrier *AC) const |
| Open help attributes dialog. | |
| void | refreshInspection () |
| refresh current inspection | |
| void | selectedOverlappedElement (GNEAttributeCarrier *AC) |
| open GNEAttributesCreator extended dialog (can be reimplemented in frame children) | |
| void | setFrameWidth (const int newWidth) |
| set width of GNEFrame | |
| void | show () |
| show inspector frame | |
| void | updateFrameAfterUndoRedo () |
| function called after undo/redo in the current frame (can be reimplemented in frame children) | |
| ~GNEInspectorFrame () | |
| Destructor. | |
FOX-callbacks | |
| long | onCmdInspectPreviousElement (FXObject *, FXSelector, void *) |
| called when user press inspet previous elemnt button | |
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 bool | shapeDrawed () |
| build a shaped element using the drawed shape | |
| virtual void | attributeUpdated (SumoXMLAttr attribute) |
| function called after set a valid attribute in AttributeCreator/AttributeEditor/ParametersEditor/... | |
| virtual bool | createPath (const bool useLastRoute) |
| create path between two elements | |
Protected Member Functions | |
| const std::vector< std::string > & | getPredefinedTagsMML () const |
| get predefinedTagsMML | |
Static Protected Member Functions | |
| static FXLabel * | buildRainbow (FXComposite *parent) |
| build rainbow in frame modul | |
Protected Attributes | |
| 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 | |
| GNEAttributesEditor * | myAttributesEditor = nullptr |
| Attributes editor. | |
| FXButton * | myBackButton = nullptr |
| Back Button. | |
| FXLabel * | myFrameHeaderLabel = nullptr |
| the label for the frame's header | |
| GNEElementTree * | myHierarchicalElementTree = nullptr |
| Attribute Carrier Hierarchy. | |
| GNEOverlappedInspection * | myOverlappedInspection = nullptr |
| FOX need this. | |
| std::vector< std::string > | myPredefinedTagsMML |
| Map of attribute ids to their (readable) string-representation (needed for SUMOSAXAttributesImpl_Cached). | |
| GNEAttributeCarrier * | myPreviousInspectedAC = nullptr |
| Pointer to previous element inspected. | |
| FXScrollWindow * | myScrollWindowsContents = nullptr |
| scroll windows that holds the content frame | |
| TemplateEditor * | myTemplateEditor = nullptr |
| Template editor. | |
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 41 of file GNEInspectorFrame.h.
| GNEInspectorFrame::GNEInspectorFrame | ( | GNEViewParent * | viewParent, |
| GNEViewNet * | viewNet ) |
Constructor.
viewParent GNEViewParent in which this GNEFrame is placed
net net that uses this GNEFrame
Definition at line 244 of file GNEInspectorFrame.cpp.
References BIGARROWLEFT, GUIDesigns::buildFXButton(), GNEAttributesEditorType::EDITOR, GUIIconSubSys::getIcon(), GNEFrame::GNEFrame(), GUIDesignButtonRectangular, MID_GNE_INSPECTORFRAME_INSPECTPREVIOUSELEMENT, myAttributesEditor, myBackButton, GNEFrame::myHeaderLeftFrame, myHierarchicalElementTree, myOverlappedInspection, and myTemplateEditor.
Referenced by GNEInspectorFrame::TemplateEditor::TemplateEditor().
| GNEInspectorFrame::~GNEInspectorFrame | ( | ) |
Destructor.
Definition at line 267 of file GNEInspectorFrame.cpp.
|
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().
| void GNEInspectorFrame::clearInspection | ( | ) |
clear inspection
Definition at line 348 of file GNEInspectorFrame.cpp.
References myOverlappedInspection.
|
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.
|
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().
| GNEAttributesEditor * GNEInspectorFrame::getAttributesEditor | ( | ) | const |
get AttributesEditor
Definition at line 430 of file GNEInspectorFrame.cpp.
References myAttributesEditor.
|
inherited |
get vertical frame that holds all widgets of frame
Definition at line 151 of file GNEFrame.cpp.
References myContentFrame.
|
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().
| GNEElementTree * GNEInspectorFrame::getHierarchicalElementTree | ( | ) | const |
get GNEElementTree modul
Definition at line 448 of file GNEInspectorFrame.cpp.
References myHierarchicalElementTree.
| GNEOverlappedInspection * GNEInspectorFrame::getOverlappedInspection | ( | ) | const |
get GNEOverlappedInspection modul
Definition at line 442 of file GNEInspectorFrame.cpp.
References myOverlappedInspection.
|
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.
| GNEInspectorFrame::TemplateEditor * GNEInspectorFrame::getTemplateEditor | ( | ) | const |
get template editor
Definition at line 436 of file GNEInspectorFrame.cpp.
References myTemplateEditor.
|
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 inspector frame
Reimplemented from GNEFrame.
Definition at line 281 of file GNEInspectorFrame.cpp.
References GNEFrame::hide(), and GNEFrame::myViewNet.
Referenced by GNEInspectorFrame::TemplateEditor::hideTemplateEditor().
| bool GNEInspectorFrame::inspectClickedElements | ( | GNEViewNetHelper::ViewObjectsSelector & | viewObjects, |
| const Position & | clickedPosition, | ||
| const bool | shiftKeyPressed ) |
process click over Viewnet
| [in] | viewObjects | objects under cursors |
Definition at line 288 of file GNEInspectorFrame.cpp.
References GNEFrame::focusUpperElement(), GNEViewNetHelper::ViewObjectsSelector::getAttributeCarrierFront(), myOverlappedInspection, and GNEFrame::myViewNet.
| void GNEInspectorFrame::inspectElement | ( | GNEAttributeCarrier * | AC, |
| GNEAttributeCarrier * | previousInspectedAC = nullptr ) |
Inspect a single element.
Definition at line 316 of file GNEInspectorFrame.cpp.
References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), inspectElements(), GNEAttributeCarrier::isAttributeCarrierSelected(), and GNEFrame::myViewNet.
Referenced by onCmdInspectPreviousElement(), selectedOverlappedElement(), GNERouteHandler::transformToContainer(), GNERouteHandler::transformToContainerFlow(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToFlowJunctions(), GNERouteHandler::transformToFlowTAZs(), GNERouteHandler::transformToPerson(), GNERouteHandler::transformToPersonFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), GNERouteHandler::transformToTripJunctions(), GNERouteHandler::transformToTripTAZs(), and GNERouteHandler::transformToVehicle().
| void GNEInspectorFrame::inspectElements | ( | const std::vector< GNEAttributeCarrier * > & | ACs, |
| GNEAttributeCarrier * | previousInspectedAC = nullptr ) |
Inspect the given elements.
Definition at line 340 of file GNEInspectorFrame.cpp.
References myPreviousInspectedAC, GNEFrame::myViewNet, and refreshInspection().
Referenced by inspectElement().
| long GNEInspectorFrame::onCmdInspectPreviousElement | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ) |
called when user press inspet previous elemnt button
Definition at line 454 of file GNEInspectorFrame.cpp.
References inspectElement(), and myPreviousInspectedAC.
Referenced by FXDEFMAP().
|
inherited |
| void GNEInspectorFrame::refreshInspection | ( | ) |
refresh current inspection
Definition at line 355 of file GNEInspectorFrame.cpp.
References GNEFrame::getFrameHeaderLabel(), myAttributesEditor, myBackButton, GNEFrame::myHeaderLeftFrame, myHierarchicalElementTree, myOverlappedInspection, myPreviousInspectedAC, myTemplateEditor, GNEFrame::myViewNet, GNEFrame::setFrameWidth(), TL, and toString().
Referenced by inspectElements(), show(), and updateFrameAfterUndoRedo().
|
virtual |
open GNEAttributesCreator extended dialog (can be reimplemented in frame children)
Reimplemented from GNEFrame.
Definition at line 467 of file GNEInspectorFrame.cpp.
References inspectElement(), and GNEFrame::myViewNet.
|
inherited |
set width of GNEFrame
Definition at line 128 of file GNEFrame.cpp.
References frameWidthUpdated(), GUIDesignFrameAreaMargin, myContentFrame, and myScrollWindowsContents.
Referenced by GNEInspectorFrame::refreshInspection().
|
virtualinherited |
build a shaped element using the drawed shape
Reimplemented in GNEShapeFrame, and GNETAZFrame.
Definition at line 213 of file GNEFrame.cpp.
|
virtual |
show inspector frame
Reimplemented from GNEFrame.
Definition at line 271 of file GNEInspectorFrame.cpp.
References myAttributesEditor, refreshInspection(), and GNEFrame::show().
Referenced by GNEInspectorFrame::TemplateEditor::showTemplateEditor().
|
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.
|
virtual |
function called after undo/redo in the current frame (can be reimplemented in frame children)
Reimplemented from GNEFrame.
Definition at line 461 of file GNEInspectorFrame.cpp.
References refreshInspection().
|
private |
Attributes editor.
Definition at line 189 of file GNEInspectorFrame.h.
Referenced by getAttributesEditor(), GNEInspectorFrame(), refreshInspection(), and show().
|
private |
Back Button.
Definition at line 198 of file GNEInspectorFrame.h.
Referenced by GNEInspectorFrame(), and refreshInspection().
|
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().
|
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 |
|
private |
Attribute Carrier Hierarchy.
Definition at line 195 of file GNEInspectorFrame.h.
Referenced by getHierarchicalElementTree(), GNEInspectorFrame(), and refreshInspection().
|
private |
FOX need this.
Overlapped Inspection
Definition at line 186 of file GNEInspectorFrame.h.
Referenced by clearInspection(), getOverlappedInspection(), GNEInspectorFrame(), inspectClickedElements(), and refreshInspection().
|
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().
|
private |
Pointer to previous element inspected.
Definition at line 201 of file GNEInspectorFrame.h.
Referenced by inspectElements(), onCmdInspectPreviousElement(), and refreshInspection().
|
privateinherited |
scroll windows that holds the content frame
Definition at line 144 of file GNEFrame.h.
Referenced by getScrollBarWidth(), GNEFrame(), and setFrameWidth().
|
private |
Template editor.
Definition at line 192 of file GNEInspectorFrame.h.
Referenced by getTemplateEditor(), GNEInspectorFrame(), and refreshInspection().
|
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().