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


Public Member Functions | |
| SumoXMLTag | getCurrentShapeType () const |
| get current shape type More... | |
| void | setCurrentShape (SumoXMLTag actualShapeType) |
| set parameters depending of the given shapeType More... | |
| ShapeSelector (GNEPolygonFrame *shapeFrameParent) | |
| FOX-declaration. More... | |
| ~ShapeSelector () | |
| destructor More... | |
FOX-callbacks | |
Called when the user select another shape Type | |
| long | onCmdselectAttributeCarrier (FXObject *, FXSelector, void *) |
Protected Member Functions | |
| ShapeSelector () | |
| FOX needs this. More... | |
Private Attributes | |
| SumoXMLTag | myCurrentShapeType |
| actual shape type selected in the match Box More... | |
| GNEPolygonFrame * | myShapeFrameParent |
| pointer to Shape Frame Parent More... | |
| FXComboBox * | myShapeMatchBox |
| combo box with the list of shape elements More... | |
Definition at line 61 of file GNEPolygonFrame.h.
| GNEPolygonFrame::ShapeSelector::ShapeSelector | ( | GNEPolygonFrame * | shapeFrameParent | ) |
FOX-declaration.
constructor
Definition at line 86 of file GNEPolygonFrame.cpp.
References GNEAttributeCarrier::allowedShapeTags(), GUIDesignComboBox, GUIDesignComboBoxNCol, MID_GNE_SET_TYPE, and toString().
| GNEPolygonFrame::ShapeSelector::~ShapeSelector | ( | ) |
destructor
Definition at line 111 of file GNEPolygonFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 86 of file GNEPolygonFrame.h.
| SumoXMLTag GNEPolygonFrame::ShapeSelector::getCurrentShapeType | ( | ) | const |
get current shape type
Definition at line 115 of file GNEPolygonFrame.cpp.
References myCurrentShapeType.
Referenced by GNEPolygonFrame::ShapeAttributes::addAttribute(), GNEPolygonFrame::ShapeAttributes::areValuesValid(), GNEPolygonFrame::ShapeAttributeSingle::getValue(), GNEPolygonFrame::ShapeAttributes::onCmdHelp(), GNEPolygonFrame::ShapeAttributeSingle::onCmdSetAttribute(), GNEPolygonFrame::ShapeAttributeSingle::onCmdSetColorAttribute(), GNEPolygonFrame::processClick(), GNEPolygonFrame::ShapeAttributeSingle::showParameter(), and GNEPolygonFrame::ShapeAttributes::showWarningMessage().
| long GNEPolygonFrame::ShapeSelector::onCmdselectAttributeCarrier | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 160 of file GNEPolygonFrame.cpp.
References GNEAttributeCarrier::allowedShapeTags(), myShapeMatchBox, setCurrentShape(), SUMO_TAG_NOTHING, toString(), and WRITE_DEBUG.
| void GNEPolygonFrame::ShapeSelector::setCurrentShape | ( | SumoXMLTag | actualShapeType | ) |
set parameters depending of the given shapeType
Definition at line 121 of file GNEPolygonFrame.cpp.
References GNEPolygonFrame::ShapeAttributes::addAttribute(), GNEPolygonFrame::ShapeAttributes::clearAttributes(), GNEPolygonFrame::getDrawingMode(), GNEPolygonFrame::getNeteditAttributes(), GNEPolygonFrame::ShapeAttributes::getNumberOfAddedAttributes(), GNEPolygonFrame::getShapeAttributes(), GNEAttributeCarrier::getTagProperties(), GNEPolygonFrame::DrawingMode::hideDrawingMode(), GNEPolygonFrame::NeteditAttributes::hideNeteditAttributes(), GNEPolygonFrame::ShapeAttributes::hideShapeParameters(), myCurrentShapeType, myShapeFrameParent, GNEPolygonFrame::DrawingMode::showDrawingMode(), GNEPolygonFrame::NeteditAttributes::showNeteditAttributes(), GNEPolygonFrame::ShapeAttributes::showShapeParameters(), SUMO_TAG_NOTHING, and SUMO_TAG_POLY.
Referenced by GNEPolygonFrame::GNEPolygonFrame(), and onCmdselectAttributeCarrier().
|
private |
actual shape type selected in the match Box
Definition at line 96 of file GNEPolygonFrame.h.
Referenced by getCurrentShapeType(), and setCurrentShape().
|
private |
pointer to Shape Frame Parent
Definition at line 90 of file GNEPolygonFrame.h.
Referenced by setCurrentShape().
|
private |
combo box with the list of shape elements
Definition at line 93 of file GNEPolygonFrame.h.
Referenced by onCmdselectAttributeCarrier().