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


Public Member Functions | |
| void | addAttribute (SumoXMLTag shapeTag, SumoXMLAttr ShapeAttributeSingle) |
| add attribute More... | |
| bool | areValuesValid () const |
| check if parameters of attributes are valid More... | |
| void | clearAttributes () |
| clear attributes More... | |
| std::map< SumoXMLAttr, std::string > | getAttributesAndValues () const |
| get attributes and their values More... | |
| int | getNumberOfAddedAttributes () const |
| get number of added attributes More... | |
| void | hideShapeParameters () |
| hide group box More... | |
| ShapeAttributes (GNEViewNet *viewNet, FXComposite *parent) | |
| FOX-declaration. More... | |
| void | showShapeParameters () |
| show group box More... | |
| void | showWarningMessage (std::string extra="") const |
| show warning message with information about non-valid attributes More... | |
| ~ShapeAttributes () | |
| destructor More... | |
FOX-callbacks | |
Called when help button is pressed | |
| long | onCmdHelp (FXObject *, FXSelector, void *) |
Protected Member Functions | |
| ShapeAttributes () | |
| FOX needs this. More... | |
Private Attributes | |
| FXButton * | helpShape |
| button for help More... | |
| int | maxNumberOfListParameters |
| max number of parameters (Defined in constructor) More... | |
| int | maxNumberOfParameters |
| max number of parameters (Defined in constructor) More... | |
| int | myIndexParameter |
| Index for myVectorOfsingleShapeParameter. More... | |
| int | myIndexParameterList |
| index for myIndexParameterList More... | |
| SumoXMLTag | myShapeTag |
| current shape tag More... | |
| std::vector< ShapeAttributeSingle * > | myVectorOfsingleShapeParameter |
| vector with the shape parameters More... | |
| GNEViewNet * | myViewNet |
| pointer to viewNet More... | |
Definition at line 157 of file GNEPolygonFrame.h.
| GNEPolygonFrame::ShapeAttributes::ShapeAttributes | ( | GNEViewNet * | viewNet, |
| FXComposite * | parent | ||
| ) |
FOX-declaration.
constructor
Definition at line 642 of file GNEPolygonFrame.cpp.
References GUIDesignButtonRectangular, helpShape, maxNumberOfParameters, MID_HELP, and myVectorOfsingleShapeParameter.
| GNEPolygonFrame::ShapeAttributes::~ShapeAttributes | ( | ) |
destructor
Definition at line 660 of file GNEPolygonFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 200 of file GNEPolygonFrame.h.
| void GNEPolygonFrame::ShapeAttributes::addAttribute | ( | SumoXMLTag | shapeTag, |
| SumoXMLAttr | ShapeAttributeSingle | ||
| ) |
add attribute
Definition at line 678 of file GNEPolygonFrame.cpp.
References GNEAttributeCarrier::isBool(), GNEAttributeCarrier::isColor(), GNEAttributeCarrier::isFloat(), GNEAttributeCarrier::isInt(), GNEAttributeCarrier::isString(), GNEAttributeCarrier::isTime(), maxNumberOfParameters, myIndexParameter, myShapeTag, myVectorOfsingleShapeParameter, toString(), WRITE_ERROR, and WRITE_WARNING.
Referenced by GNEPolygonFrame::setParametersOfShape().
| bool GNEPolygonFrame::ShapeAttributes::areValuesValid | ( | ) | const |
check if parameters of attributes are valid
Definition at line 757 of file GNEPolygonFrame.cpp.
References myIndexParameter, and myVectorOfsingleShapeParameter.
Referenced by GNEPolygonFrame::buildPoly(), and GNEPolygonFrame::processClick().
| void GNEPolygonFrame::ShapeAttributes::clearAttributes | ( | ) |
clear attributes
Definition at line 665 of file GNEPolygonFrame.cpp.
References maxNumberOfParameters, myIndexParameter, myIndexParameterList, and myVectorOfsingleShapeParameter.
Referenced by GNEPolygonFrame::setParametersOfShape().
| std::map< SumoXMLAttr, std::string > GNEPolygonFrame::ShapeAttributes::getAttributesAndValues | ( | ) | const |
get attributes and their values
Definition at line 719 of file GNEPolygonFrame.cpp.
References myIndexParameter, and myVectorOfsingleShapeParameter.
Referenced by GNEPolygonFrame::buildPoly(), and GNEPolygonFrame::processClick().
| int GNEPolygonFrame::ShapeAttributes::getNumberOfAddedAttributes | ( | ) | const |
get number of added attributes
Definition at line 770 of file GNEPolygonFrame.cpp.
References myIndexParameter, and myIndexParameterList.
Referenced by GNEPolygonFrame::setParametersOfShape().
| void GNEPolygonFrame::ShapeAttributes::hideShapeParameters | ( | ) |
hide group box
Definition at line 713 of file GNEPolygonFrame.cpp.
References GNEFrame::hide().
Referenced by GNEPolygonFrame::setParametersOfShape().
| long GNEPolygonFrame::ShapeAttributes::onCmdHelp | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 776 of file GNEPolygonFrame.cpp.
References GNEAttributeCarrier::getDefinition(), GUIIconSubSys::getIcon(), GUIDesignButtonOK, GUIDesignDialogBox, ICON_ACCEPT, GNEAttributeCarrier::isBool(), GNEAttributeCarrier::isColor(), GNEAttributeCarrier::isFloat(), GNEAttributeCarrier::isInt(), GNEAttributeCarrier::isString(), GNEAttributeCarrier::isTime(), MID_TABLE, myIndexParameter, myIndexParameterList, myShapeTag, myVectorOfsingleShapeParameter, and toString().
| void GNEPolygonFrame::ShapeAttributes::showShapeParameters | ( | ) |
show group box
Definition at line 706 of file GNEPolygonFrame.cpp.
References GNEPolygonFrame::show().
Referenced by GNEPolygonFrame::setParametersOfShape().
| void GNEPolygonFrame::ShapeAttributes::showWarningMessage | ( | std::string | extra = "" | ) | const |
show warning message with information about non-valid attributes
Definition at line 730 of file GNEPolygonFrame.cpp.
References OptionsCont::getOptions(), myIndexParameter, myShapeTag, myVectorOfsingleShapeParameter, myViewNet, GNEViewNet::setStatusBarText(), toString(), and WRITE_WARNING.
Referenced by GNEPolygonFrame::buildPoly(), and GNEPolygonFrame::processClick().
|
private |
|
private |
max number of parameters (Defined in constructor)
Definition at line 222 of file GNEPolygonFrame.h.
|
private |
max number of parameters (Defined in constructor)
Definition at line 219 of file GNEPolygonFrame.h.
Referenced by addAttribute(), clearAttributes(), and ShapeAttributes().
|
private |
Index for myVectorOfsingleShapeParameter.
Definition at line 213 of file GNEPolygonFrame.h.
Referenced by addAttribute(), areValuesValid(), clearAttributes(), getAttributesAndValues(), getNumberOfAddedAttributes(), onCmdHelp(), and showWarningMessage().
|
private |
index for myIndexParameterList
Definition at line 216 of file GNEPolygonFrame.h.
Referenced by clearAttributes(), getNumberOfAddedAttributes(), and onCmdHelp().
|
private |
current shape tag
Definition at line 207 of file GNEPolygonFrame.h.
Referenced by addAttribute(), onCmdHelp(), and showWarningMessage().
|
private |
vector with the shape parameters
Definition at line 210 of file GNEPolygonFrame.h.
Referenced by addAttribute(), areValuesValid(), clearAttributes(), getAttributesAndValues(), onCmdHelp(), ShapeAttributes(), and showWarningMessage().
|
private |
pointer to viewNet
Definition at line 204 of file GNEPolygonFrame.h.
Referenced by showWarningMessage().