![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEShapeFrame.h>
Data Structures | |
| class | GEOPOICreator |
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 | |
| GNEDrawingShape * | getDrawingShapeModule () const |
| get drawing mode editor | |
| 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) | |
| GNEViewNet * | getViewNet () const |
| get view net | |
| GNEShapeFrame (GNEViewParent *viewParent, GNEViewNet *viewNet) | |
| Constructor. | |
| virtual void | hide () |
| hide Frame | |
| void | openHelpAttributesDialog (const GNEAttributeCarrier *AC) const |
| Open help attributes dialog. | |
| bool | processClick (const Position &clickedPosition, const GNEViewNetHelper::ViewObjectsSelector &viewObjects, bool &updateTemporalShape) |
| process click over Viewnet | |
| void | setFrameWidth (const int newWidth) |
| set width of GNEFrame | |
| void | show () |
| show Frame | |
| virtual void | updateFrameAfterUndoRedo () |
| function called after undo/redo in the current frame (can be reimplemented in frame children) | |
| ~GNEShapeFrame () | |
| Destructor. | |
functions called by moduls that can be reimplemented in frame children (note: reimplement as protected, just for safety) | |
| 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 | |
Static Public Member Functions | |
| static std::string | getIdsSelected (const FXList *list) |
| get list of selecte id's in string format | |
Protected Member Functions | |
| void | createBaseShapeObject (const SumoXMLTag shapeTag) |
| const std::vector< std::string > & | getPredefinedTagsMML () const |
| get predefinedTagsMML | |
| bool | processClickPOI (SumoXMLTag POITag, const Position &clickedPosition) |
| process click for POIs over view | |
| bool | processClickPOIGeo (const Position &clickedPosition) |
| process click for POIGeo | |
| bool | processClickPOILanes (const GNEViewNetHelper::ViewObjectsSelector &viewObjects) |
| process click for POILanes | |
| bool | processClickPolygons (const Position &clickedPosition, bool &updateTemporalShape) |
| process click for Polygons | |
| bool | shapeDrawed () |
| build a shaped element using the drawed shape return true if was successfully created | |
| void | tagSelected () |
| Tag selected in GNETagSelector. | |
Static Protected Member Functions | |
| static FXLabel * | buildRainbow (FXComposite *parent) |
| build rainbow in frame modul | |
Protected Attributes | |
| CommonXMLStructure::SumoBaseObject * | myBaseShape |
| SumoBaseObject used for create shape. | |
| 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 | |
| GNEDrawingShape * | myDrawingShape = nullptr |
| Drawing shape. | |
| FXLabel * | myFrameHeaderLabel = nullptr |
| the label for the frame's header | |
| GEOPOICreator * | myGEOPOICreator = nullptr |
| GEOPOICreator. | |
| 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 * | myShapeAttributesEditor = nullptr |
| shape attributes editor | |
| GNETagSelector * | myShapeTagSelector |
| shape tag selector | |
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 37 of file GNEShapeFrame.h.
| GNEShapeFrame::GNEShapeFrame | ( | GNEViewParent * | viewParent, |
| GNEViewNet * | viewNet ) |
Constructor.
viewParent GNEViewParent in which this GNEFrame is placed
viewNet viewNet that uses this GNEFrame
create GEOPOICreator
Definition at line 226 of file GNEShapeFrame.cpp.
References GNEAttributesEditorType::CREATOR, GNEFrame::GNEFrame(), myBaseShape, myDrawingShape, myGEOPOICreator, myShapeAttributesEditor, myShapeTagSelector, GNETagProperties::SHAPE, SUMO_TAG_POLY, and TL.
Referenced by GNEShapeFrame::GEOPOICreator::GEOPOICreator().
| GNEShapeFrame::~GNEShapeFrame | ( | ) |
|
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().
|
protected |
Definition at line 313 of file GNEShapeFrame.cpp.
References myBaseShape.
Referenced by processClickPOI(), processClickPOIGeo(), processClickPOILanes(), and shapeDrawed().
|
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().
|
inherited |
get vertical frame that holds all widgets of frame
Definition at line 151 of file GNEFrame.cpp.
References myContentFrame.
| GNEDrawingShape * GNEShapeFrame::getDrawingShapeModule | ( | ) | const |
get drawing mode editor
Definition at line 307 of file GNEShapeFrame.cpp.
References myDrawingShape.
|
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().
|
static |
get list of selecte id's in string format
Definition at line 291 of file GNEShapeFrame.cpp.
|
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.
|
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().
|
virtualinherited |
hide Frame
Reimplemented in GNEContainerFrame, GNEContainerPlanFrame, GNECreateEdgeFrame, GNECrossingFrame, GNEDeleteFrame, GNEGenericDataFrame, GNEInspectorFrame, GNEMeanDataFrame, GNEMoveFrame, GNEPersonFrame, GNEPersonPlanFrame, GNEProhibitionFrame, GNERouteFrame, GNESelectorFrame, GNETAZFrame, and GNEVehicleFrame.
Definition at line 119 of file GNEFrame.cpp.
References myViewNet.
Referenced by GNEContainerFrame::hide(), GNEContainerPlanFrame::hide(), GNECreateEdgeFrame::hide(), GNECrossingFrame::hide(), GNEDeleteFrame::hide(), GNEGenericDataFrame::hide(), GNEInspectorFrame::hide(), GNEMeanDataFrame::hide(), GNEMoveFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNEProhibitionFrame::hide(), GNERouteFrame::hide(), GNESelectorFrame::hide(), GNETAZFrame::hide(), GNEVehicleFrame::hide(), GNEAdditionalFrame::E2MultilaneLegendModule::hideE2MultilaneLegend(), GNEShapeFrame::GEOPOICreator::hideGEOPOICreatorModule(), GNEStopFrame::HelpCreation::hideHelpCreation(), GNEAdditionalFrame::HelpCreationModule::hideHelpCreationModule(), GNETLSEditorFrame::TLSAttributes::hideTLSAttributes(), GNETLSEditorFrame::TLSFile::hideTLSFile(), GNETLSEditorFrame::TLSPhases::hideTLSPhases(), GNETLSEditorFrame::TLSPrograms::hideTLSPrograms(), GNETypeFrame::TypeEditor::hideTypeEditorModule(), and GNEAdditionalFrame::HelpCreationModule::showHelpCreationModule().
|
inherited |
| bool GNEShapeFrame::processClick | ( | const Position & | clickedPosition, |
| const GNEViewNetHelper::ViewObjectsSelector & | viewObjects, | ||
| bool & | updateTemporalShape ) |
process click over Viewnet
| [in] | clickedPosition | clicked position over ViewNet |
| [in] | viewObjects | objects under cursor after click over view |
Definition at line 262 of file GNEShapeFrame.cpp.
References GNE_TAG_JPS_OBSTACLE, GNE_TAG_JPS_WALKABLEAREA, GNE_TAG_POIGEO, GNE_TAG_POILANE, myShapeTagSelector, GNEFrame::myViewNet, processClickPOI(), processClickPOIGeo(), processClickPOILanes(), processClickPolygons(), SUMO_TAG_POI, SUMO_TAG_POLY, and TL.
|
protected |
process click for POIs over view
Definition at line 409 of file GNEShapeFrame.cpp.
References createBaseShapeObject(), GNE_ATTR_ADDITIONAL_FILE, myBaseShape, myShapeAttributesEditor, GNEFrame::myViewNet, AdditionalHandler::parseSumoBaseObject(), SUMO_ATTR_GEO, SUMO_ATTR_X, SUMO_ATTR_Y, Position::x(), and Position::y().
Referenced by processClick().
|
protected |
process click for POIGeo
Definition at line 437 of file GNEShapeFrame.cpp.
References GeoConvHelper::cartesian2geo(), createBaseShapeObject(), GeoConvHelper::getFinal(), GNE_ATTR_ADDITIONAL_FILE, myBaseShape, myShapeAttributesEditor, GNEFrame::myViewNet, AdditionalHandler::parseSumoBaseObject(), SUMO_ATTR_GEO, SUMO_ATTR_LAT, SUMO_ATTR_LON, SUMO_TAG_POI, Position::x(), and Position::y().
Referenced by processClick().
|
protected |
process click for POILanes
Definition at line 468 of file GNEShapeFrame.cpp.
References createBaseShapeObject(), GNEAttributeCarrier::getID(), GNEViewNetHelper::ViewObjectsSelector::getLaneFront(), GNELane::getLaneShape(), GNELane::getLengthGeometryFactor(), GNE_ATTR_ADDITIONAL_FILE, myBaseShape, myShapeAttributesEditor, GNEFrame::myViewNet, PositionVector::nearest_offset_to_point2D(), AdditionalHandler::parseSumoBaseObject(), SUMO_ATTR_LANE, SUMO_ATTR_POSITION, SUMO_TAG_POI, TL, and WRITE_WARNING.
Referenced by processClick().
|
protected |
process click for Polygons
Definition at line 391 of file GNEShapeFrame.cpp.
References myDrawingShape.
Referenced by processClick().
|
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 327 of file GNEShapeFrame.cpp.
References PositionVector::closePolygon(), createBaseShapeObject(), GNE_ATTR_CLOSE_SHAPE, GNE_ATTR_DEMAND_FILE, GNE_TAG_JPS_OBSTACLE, GNE_TAG_JPS_WALKABLEAREA, myBaseShape, myDrawingShape, myShapeAttributesEditor, myShapeTagSelector, GNEFrame::myViewNet, AdditionalHandler::parseSumoBaseObject(), SUMO_ATTR_SHAPE, TL, and WRITE_WARNING.
|
virtual |
show Frame
Reimplemented from GNEFrame.
Definition at line 253 of file GNEShapeFrame.cpp.
References myShapeTagSelector, and GNEFrame::show().
Referenced by GNEShapeFrame::GEOPOICreator::showGEOPOICreatorModule().
|
protectedvirtual |
Tag selected in GNETagSelector.
Reimplemented from GNEFrame.
Definition at line 363 of file GNEShapeFrame.cpp.
References GNE_TAG_JPS_OBSTACLE, GNE_TAG_JPS_WALKABLEAREA, GNE_TAG_POIGEO, myDrawingShape, myGEOPOICreator, myShapeAttributesEditor, myShapeTagSelector, and SUMO_TAG_POLY.
|
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 create shape.
Definition at line 127 of file GNEShapeFrame.h.
Referenced by createBaseShapeObject(), GNEShapeFrame(), processClickPOI(), processClickPOIGeo(), processClickPOILanes(), shapeDrawed(), and ~GNEShapeFrame().
|
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 |
Drawing shape.
Definition at line 161 of file GNEShapeFrame.h.
Referenced by getDrawingShapeModule(), GNEShapeFrame(), processClickPolygons(), shapeDrawed(), and tagSelected().
|
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().
|
private |
Definition at line 164 of file GNEShapeFrame.h.
Referenced by GNEShapeFrame(), and tagSelected().
|
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 |
shape attributes editor
Definition at line 158 of file GNEShapeFrame.h.
Referenced by GNEShapeFrame(), processClickPOI(), processClickPOIGeo(), processClickPOILanes(), shapeDrawed(), and tagSelected().
|
private |
shape tag selector
Definition at line 155 of file GNEShapeFrame.h.
Referenced by GNEShapeFrame(), processClick(), shapeDrawed(), show(), and tagSelected().
|
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().