![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEPolygonFrame.h>


Data Structures | |
| class | DrawingMode |
| class | NeteditAttributes |
| class | ShapeAttributes |
| class | ShapeAttributeSingle |
Public Types | |
| enum | AddShapeResult { ADDSHAPE_SUCCESS, ADDSHAPE_NEWPOINT, ADDSHAPE_INVALID, ADDSHAPE_NOTHING } |
| FOX-declaration. More... | |
Public Member Functions | |
| bool | buildPoly (const PositionVector &drawedShape) |
| build Polygon using values of Fields and drawed shap return true if was sucesfully created More... | |
| void | focusUpperElement () |
| focus upper element of frame More... | |
| GNEPolygonFrame::DrawingMode * | getDrawingMode () const |
| get drawing mode More... | |
| FXFont * | getFrameHeaderFont () const |
| get font of the header's frame More... | |
| FXLabel * | getFrameHeaderLabel () const |
| get the label for the frame's header More... | |
| GNEPolygonFrame::NeteditAttributes * | getNetEditParameters () const |
| get editor parameters More... | |
| GNEViewNet * | getViewNet () const |
| get view net More... | |
| GNEPolygonFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet) | |
| Constructor. More... | |
| virtual void | hide () |
| hide Frame More... | |
| AddShapeResult | processClick (const Position &clickedPosition) |
| process click over Viewnet More... | |
| void | setFrameWidth (int newWidth) |
| set width of GNEFrame More... | |
| void | show () |
| show additional frame and update use selected edges/lanes More... | |
| ~GNEPolygonFrame () | |
| Destructor. More... | |
FOX-callbacks | |
Called when the user select another additional Type | |
| long | onCmdSelectShape (FXObject *, FXSelector, void *) |
Static Public Member Functions | |
| static std::string | getIdsSelected (const FXList *list) |
| get list of selecte id's in string format More... | |
Protected Member Functions | |
| bool | addPOI (const std::map< SumoXMLAttr, std::string > &POIValues) |
| add POI More... | |
| bool | addPolygon (const std::map< SumoXMLAttr, std::string > &POIValues) |
| add Polygon More... | |
| GNEPolygonFrame () | |
| FOX needs this. More... | |
Protected Attributes | |
| FXVerticalFrame * | myContentFrame |
| Vertical frame that holds all widgets of frame. More... | |
| FXFont * | myFrameHeaderFont |
| Font for the Header. More... | |
| FXLabel * | myFrameHeaderLabel |
| the label for the frame's header More... | |
| FXHorizontalFrame * | myHeaderFrame |
| fame for header elements More... | |
| FXHorizontalFrame * | myHeaderLeftFrame |
| fame for left header elements More... | |
| FXHorizontalFrame * | myHeaderRightFrame |
| fame for right header elements More... | |
| GNEViewNet * | myViewNet |
| the window to inform when the tls is modfied More... | |
Private Member Functions | |
| void | setParametersOfShape (SumoXMLTag actualShapeType) |
| set parameters depending of the new additionalType More... | |
Private Attributes | |
| SumoXMLTag | myActualShapeType |
| actual additional type selected in the match Box More... | |
| GNEPolygonFrame::DrawingMode * | myDrawingMode |
| drawing mode More... | |
| GNEPolygonFrame::NeteditAttributes * | myEditorParameters |
| Netedit parameter. More... | |
| FXGroupBox * | myGroupBoxForMyShapeMatchBox |
| groupBox for Match Box of additionals More... | |
| GNEPolygonFrame::ShapeAttributes * | myShapeAttributes |
| additional internal attributes More... | |
| FXComboBox * | myShapeMatchBox |
| combo box with the list of additional elements More... | |
The Widget for setting internal attributes of additional elements
Definition at line 49 of file GNEPolygonFrame.h.
FOX-declaration.
enum with all possible values after try to create an additional using frame
| Enumerator | |
|---|---|
| ADDSHAPE_SUCCESS | |
| ADDSHAPE_NEWPOINT | |
| ADDSHAPE_INVALID | |
| ADDSHAPE_NOTHING | |
Definition at line 56 of file GNEPolygonFrame.h.
| GNEPolygonFrame::GNEPolygonFrame | ( | FXHorizontalFrame * | horizontalFrameParent, |
| GNEViewNet * | viewNet | ||
| ) |
Constructor.
parent FXHorizontalFrame in which this GNEFrame is placed viewNet viewNet that uses this GNEFrame
Definition at line 99 of file GNEPolygonFrame.cpp.
References GNEAttributeCarrier::allowedShapeTags(), GUIDesignComboBox, GUIDesignComboBoxNCol, GUIDesignGroupBoxFrame, MID_GNE_MODE_ADDITIONAL_ITEM, SUMO_TAG_POLY, and toString().
| GNEPolygonFrame::~GNEPolygonFrame | ( | ) |
Destructor.
Definition at line 141 of file GNEPolygonFrame.cpp.
References gSelected, and GUISelectedStorage::remove2Update().
|
inlineprotected |
FOX needs this.
Definition at line 420 of file GNEPolygonFrame.h.
References addPOI(), addPolygon(), and setParametersOfShape().
|
protected |
add POI
Definition at line 315 of file GNEPolygonFrame.cpp.
References GNENet::addPOI(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNE_ATTR_BLOCK_MOVEMENT, GNEFrame::myViewNet, GNEUndoList::p_abort(), GNEUndoList::p_begin(), GNEUndoList::p_end(), RGBColor::parseColor(), GeomConvHelper::parseShapeReporting(), GNENet::retrievePOI(), GNEPOI::setAttribute(), SUMO_ATTR_ANGLE, SUMO_ATTR_COLOR, SUMO_ATTR_HEIGHT, SUMO_ATTR_ID, SUMO_ATTR_IMGFILE, SUMO_ATTR_LAYER, SUMO_ATTR_POSITION, SUMO_ATTR_TYPE, SUMO_ATTR_WIDTH, SUMO_TAG_POI, and toString().
Referenced by GNEPolygonFrame(), and processClick().
|
protected |
add Polygon
Definition at line 285 of file GNEPolygonFrame.cpp.
References GNENet::addPolygon(), GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNE_ATTR_BLOCK_MOVEMENT, GNE_ATTR_BLOCK_SHAPE, GNEFrame::myViewNet, GNEUndoList::p_abort(), GNEUndoList::p_begin(), GNEUndoList::p_end(), RGBColor::parseColor(), GeomConvHelper::parseShapeReporting(), GNENet::retrievePolygon(), GNEPoly::setAttribute(), SUMO_ATTR_ANGLE, SUMO_ATTR_COLOR, SUMO_ATTR_FILL, SUMO_ATTR_ID, SUMO_ATTR_IMGFILE, SUMO_ATTR_LAYER, SUMO_ATTR_SHAPE, SUMO_ATTR_TYPE, SUMO_TAG_POLY, and toString().
Referenced by buildPoly(), and GNEPolygonFrame().
| bool GNEPolygonFrame::buildPoly | ( | const PositionVector & | drawedShape | ) |
build Polygon using values of Fields and drawed shap return true if was sucesfully created
Definition at line 191 of file GNEPolygonFrame.cpp.
References addPolygon(), GNEPolygonFrame::ShapeAttributes::areValuesValid(), GNENet::generatePolyID(), GNEPolygonFrame::ShapeAttributes::getAttributesAndValues(), GNEViewNet::getNet(), GNE_ATTR_BLOCK_MOVEMENT, GNE_ATTR_BLOCK_SHAPE, GNEPolygonFrame::NeteditAttributes::isBlockMovementEnabled(), GNEPolygonFrame::NeteditAttributes::isBlockShapeEnabled(), myEditorParameters, myShapeAttributes, GNEFrame::myViewNet, GNEPolygonFrame::ShapeAttributes::showWarningMessage(), SUMO_ATTR_ID, SUMO_ATTR_SHAPE, and toString().
Referenced by GNEPolygonFrame::DrawingMode::stopDrawing().
|
inherited |
focus upper element of frame
Definition at line 92 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEViewNet::hotkeyFocusFrame(), GNEViewNet::onLeftBtnPress(), GNEViewNet::setEditMode(), and GNEViewNet::updateModeSpecificControls().
| GNEPolygonFrame::DrawingMode * GNEPolygonFrame::getDrawingMode | ( | ) | const |
get drawing mode
Definition at line 225 of file GNEPolygonFrame.cpp.
References myDrawingMode.
Referenced by GNEViewNet::abortOperation(), GNEViewNet::doPaintGL(), GNEViewNet::hotkeyEnter(), GNEViewNet::onRightBtnPress(), and GNEViewNet::onRightBtnRelease().
|
inherited |
get font of the header's frame
Definition at line 135 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 129 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEInspectorFrame::inspectMultisection().
|
static |
get list of selecte id's in string format
Definition at line 1038 of file GNEPolygonFrame.cpp.
References text().
| GNEPolygonFrame::NeteditAttributes * GNEPolygonFrame::getNetEditParameters | ( | ) | const |
get editor parameters
Definition at line 219 of file GNEPolygonFrame.cpp.
References myEditorParameters.
Referenced by GNEPolygonFrame::DrawingMode::stopDrawing().
|
inherited |
get view net
Definition at line 123 of file GNEFrame.cpp.
References GNEFrame::myViewNet.
Referenced by GNEPolygonFrame::DrawingMode::abortDrawing(), GNECrossingFrame::edgesSelector::enableEdgeSelector(), GNEInspectorFrame::AttributeInput::onCmdSetAttribute(), GNECrossingFrame::crossingParameters::onCmdSetAttribute(), GNEInspectorFrame::NeteditParameters::onCmdSetBlockingMovement(), GNEInspectorFrame::NeteditParameters::onCmdSetBlockingShape(), GNEInspectorFrame::NeteditParameters::onCmdSetClosingShape(), GNEDeleteFrame::removeAttributeCarrier(), GNECrossingFrame::edgesSelector::restoreEdgeColors(), and GNEPolygonFrame::DrawingMode::stopDrawing().
|
virtualinherited |
hide Frame
Reimplemented in GNECrossingFrame, and GNESelectorFrame.
Definition at line 107 of file GNEFrame.cpp.
References GNEViewNet::getViewParent(), GNEViewParent::hideFramesArea(), and GNEFrame::myViewNet.
Referenced by GNESelectorFrame::hide(), GNECrossingFrame::hide(), GNEAdditionalFrame::AdditionalAttributes::hideAdditionalParameters(), GNEAdditionalFrame::SelectorParentLanes::hideList(), GNEAdditionalFrame::SelectorParentAdditional::hideListOfAdditionals(), GNEAdditionalFrame::AdditionalAttributeSingle::hideParameter(), GNEPolygonFrame::ShapeAttributeSingle::hideParameter(), GNEPolygonFrame::ShapeAttributes::hideShapeParameters(), GNEInspectorFrame::onCmdDeleteItem(), GNEInspectorFrame::onCmdGoBack(), GNEDeleteFrame::onCmdInspectChildItem(), and GNEDeleteFrame::removeAttributeCarrier().
| long GNEPolygonFrame::onCmdSelectShape | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 231 of file GNEPolygonFrame.cpp.
References GNEAttributeCarrier::allowedShapeTags(), GNEPolygonFrame::NeteditAttributes::hide(), GNEPolygonFrame::DrawingMode::hide(), myActualShapeType, myDrawingMode, myEditorParameters, myShapeAttributes, myShapeMatchBox, setParametersOfShape(), GNEPolygonFrame::NeteditAttributes::show(), GNEPolygonFrame::DrawingMode::show(), SUMO_TAG_NOTHING, SUMO_TAG_POLY, and toString().
| GNEPolygonFrame::AddShapeResult GNEPolygonFrame::processClick | ( | const Position & | clickedPosition | ) |
process click over Viewnet
| [in] | clickedPosition | clicked position over ViewNet |
Definition at line 147 of file GNEPolygonFrame.cpp.
References GNEPolygonFrame::DrawingMode::addNewPoint(), addPOI(), ADDSHAPE_INVALID, ADDSHAPE_NEWPOINT, ADDSHAPE_NOTHING, ADDSHAPE_SUCCESS, GNEPolygonFrame::ShapeAttributes::areValuesValid(), GNENet::generatePOIID(), GNEPolygonFrame::ShapeAttributes::getAttributesAndValues(), GNEViewNet::getNet(), GNE_ATTR_BLOCK_MOVEMENT, GNEPolygonFrame::NeteditAttributes::isBlockMovementEnabled(), GNEPolygonFrame::DrawingMode::isDrawing(), myActualShapeType, myDrawingMode, myEditorParameters, myShapeAttributes, GNEFrame::myViewNet, GNEViewNet::setStatusBarText(), GNEPolygonFrame::ShapeAttributes::showWarningMessage(), SUMO_ATTR_ID, SUMO_ATTR_POSITION, SUMO_TAG_POI, SUMO_TAG_POLY, and toString().
Referenced by GNEViewNet::onLeftBtnPress().
|
inherited |
set width of GNEFrame
Definition at line 116 of file GNEFrame.cpp.
References GNEFrame::myScrollWindowsContents.
|
private |
set parameters depending of the new additionalType
Definition at line 264 of file GNEPolygonFrame.cpp.
References GNEPolygonFrame::ShapeAttributes::addAttribute(), GNEAttributeCarrier::allowedAttributes(), GNEPolygonFrame::ShapeAttributes::clearAttributes(), GNEPolygonFrame::ShapeAttributes::getNumberOfAddedAttributes(), GNEPolygonFrame::ShapeAttributes::hideShapeParameters(), GNEAttributeCarrier::isUnique(), myActualShapeType, myShapeAttributes, and GNEPolygonFrame::ShapeAttributes::showShapeParameters().
Referenced by GNEPolygonFrame(), and onCmdSelectShape().
|
virtual |
show additional frame and update use selected edges/lanes
Reimplemented from GNEFrame.
Definition at line 489 of file GNEPolygonFrame.cpp.
References GNEFrame::show().
Referenced by GNEPolygonFrame::ShapeAttributeSingle::showParameter(), GNEPolygonFrame::ShapeAttributes::showShapeParameters(), and GNEViewNet::updateModeSpecificControls().
|
private |
actual additional type selected in the match Box
Definition at line 448 of file GNEPolygonFrame.h.
Referenced by onCmdSelectShape(), processClick(), and setParametersOfShape().
|
protectedinherited |
Vertical frame that holds all widgets of frame.
Definition at line 104 of file GNEFrame.h.
Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), and GNEInspectorFrame::inspectMultisection().
|
private |
drawing mode
Definition at line 445 of file GNEPolygonFrame.h.
Referenced by getDrawingMode(), onCmdSelectShape(), and processClick().
|
private |
Netedit parameter.
Definition at line 442 of file GNEPolygonFrame.h.
Referenced by buildPoly(), getNetEditParameters(), onCmdSelectShape(), and processClick().
|
protectedinherited |
Font for the Header.
Definition at line 98 of file GNEFrame.h.
Referenced by GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().
|
protectedinherited |
the label for the frame's header
Definition at line 101 of file GNEFrame.h.
Referenced by GNEFrame::focusUpperElement(), GNEFrame::getFrameHeaderLabel(), and GNEFrame::GNEFrame().
|
private |
groupBox for Match Box of additionals
Definition at line 433 of file GNEPolygonFrame.h.
|
protectedinherited |
fame for header elements
Definition at line 107 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
fame for left header elements
Definition at line 110 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::inspectChild(), GNEInspectorFrame::inspectFromDeleteFrame(), and GNEInspectorFrame::inspectMultisection().
|
protectedinherited |
fame for right header elements
Definition at line 113 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
private |
additional internal attributes
Definition at line 439 of file GNEPolygonFrame.h.
Referenced by buildPoly(), onCmdSelectShape(), processClick(), and setParametersOfShape().
|
private |
combo box with the list of additional elements
Definition at line 436 of file GNEPolygonFrame.h.
Referenced by onCmdSelectShape().
|
protectedinherited |
the window to inform when the tls is modfied
Definition at line 95 of file GNEFrame.h.
Referenced by GNEAdditionalFrame::addAdditional(), addPOI(), addPolygon(), GNETLSEditorFrame::buildIinternalLanes(), buildPoly(), GNEDeleteFrame::createPopUpMenu(), GNEInspectorFrame::createPopUpMenu(), GNETLSEditorFrame::editJunction(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), GNETLSEditorFrame::handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEFrame::hide(), GNEConnectorFrame::initTargets(), GNEConnectorFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNEDeleteFrame::onCmdCenterChildItem(), GNEInspectorFrame::onCmdCenterItem(), GNESelectorFrame::onCmdClear(), GNEConnectorFrame::onCmdClearSelectedConnections(), GNEInspectorFrame::onCmdCopyTemplate(), GNECrossingFrame::onCmdCreateCrossing(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEInspectorFrame::onCmdDeleteItem(), GNEInspectorFrame::onCmdGoBack(), GNEDeleteFrame::onCmdInspectChildItem(), GNESelectorFrame::onCmdInvert(), GNESelectorFrame::onCmdLoad(), GNEConnectorFrame::onCmdOK(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEConnectorFrame::onCmdResetSelectedConnections(), GNESelectorFrame::onCmdScaleSelection(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadEnds(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), processClick(), GNEAdditionalFrame::removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), and GNEFrame::show().