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


Public Member Functions | |
| void | addAttribute (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... | |
| GNEPolygonFrame * | getPolygonFrameParent () const |
| get PolygonFrame parent More... | |
| void | hideShapeParameters () |
| hide group box More... | |
| ShapeAttributes (GNEPolygonFrame *polygonFrameParent) | |
| 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 | |
| GNEPolygonFrame * | myPolygonFrameParent |
| pointer to Polygon Frame Parent More... | |
| std::vector< ShapeAttributeSingle * > | myVectorOfsingleShapeParameter |
| vector with the shape parameters More... | |
Definition at line 181 of file GNEPolygonFrame.h.
| GNEPolygonFrame::ShapeAttributes::ShapeAttributes | ( | GNEPolygonFrame * | polygonFrameParent | ) |
FOX-declaration.
constructor
Definition at line 407 of file GNEPolygonFrame.cpp.
References GNEAttributeCarrier::getHigherNumberOfAttributes(), GUIDesignButtonRectangular, MID_HELP, and myVectorOfsingleShapeParameter.
| GNEPolygonFrame::ShapeAttributes::~ShapeAttributes | ( | ) |
destructor
Definition at line 421 of file GNEPolygonFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 227 of file GNEPolygonFrame.h.
| void GNEPolygonFrame::ShapeAttributes::addAttribute | ( | SumoXMLAttr | ShapeAttributeSingle | ) |
add attribute
Definition at line 435 of file GNEPolygonFrame.cpp.
References GNEPolygonFrame::ShapeSelector::getCurrentShapeType(), GNEPolygonFrame::getShapeSelector(), GNEAttributeCarrier::getTagProperties(), myPolygonFrameParent, and myVectorOfsingleShapeParameter.
Referenced by GNEPolygonFrame::ShapeSelector::setCurrentShape().
| bool GNEPolygonFrame::ShapeAttributes::areValuesValid | ( | ) | const |
check if parameters of attributes are valid
Definition at line 496 of file GNEPolygonFrame.cpp.
References GNEPolygonFrame::ShapeSelector::getCurrentShapeType(), GNEAttributeCarrier::getTagProperties(), myPolygonFrameParent, GNEPolygonFrame::myShapeSelector, and myVectorOfsingleShapeParameter.
Referenced by GNEPolygonFrame::buildPoly(), and GNEPolygonFrame::processClick().
| void GNEPolygonFrame::ShapeAttributes::clearAttributes | ( | ) |
clear attributes
Definition at line 426 of file GNEPolygonFrame.cpp.
References myVectorOfsingleShapeParameter.
Referenced by GNEPolygonFrame::ShapeSelector::setCurrentShape().
| std::map< SumoXMLAttr, std::string > GNEPolygonFrame::ShapeAttributes::getAttributesAndValues | ( | ) | const |
get attributes and their values
Definition at line 456 of file GNEPolygonFrame.cpp.
References myVectorOfsingleShapeParameter, and SUMO_ATTR_NOTHING.
Referenced by GNEPolygonFrame::buildPoly(), and GNEPolygonFrame::processClick().
| int GNEPolygonFrame::ShapeAttributes::getNumberOfAddedAttributes | ( | ) | const |
get number of added attributes
Definition at line 509 of file GNEPolygonFrame.cpp.
Referenced by GNEPolygonFrame::ShapeSelector::setCurrentShape().
| GNEPolygonFrame * GNEPolygonFrame::ShapeAttributes::getPolygonFrameParent | ( | ) | const |
get PolygonFrame parent
Definition at line 515 of file GNEPolygonFrame.cpp.
References myPolygonFrameParent.
Referenced by GNEPolygonFrame::ShapeAttributeSingle::getValue(), GNEPolygonFrame::ShapeAttributeSingle::onCmdSetAttribute(), GNEPolygonFrame::ShapeAttributeSingle::onCmdSetColorAttribute(), and GNEPolygonFrame::ShapeAttributeSingle::showParameter().
| void GNEPolygonFrame::ShapeAttributes::hideShapeParameters | ( | ) |
hide group box
Definition at line 450 of file GNEPolygonFrame.cpp.
References GNEFrame::hide().
Referenced by GNEPolygonFrame::ShapeSelector::setCurrentShape().
| long GNEPolygonFrame::ShapeAttributes::onCmdHelp | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 521 of file GNEPolygonFrame.cpp.
References GNEPolygonFrame::ShapeSelector::getCurrentShapeType(), GNEPolygonFrame::getShapeSelector(), myPolygonFrameParent, and GNEFrame::openHelpAttributesDialog().
| void GNEPolygonFrame::ShapeAttributes::showShapeParameters | ( | ) |
show group box
Definition at line 443 of file GNEPolygonFrame.cpp.
References GNEPolygonFrame::show().
Referenced by GNEPolygonFrame::ShapeSelector::setCurrentShape().
| void GNEPolygonFrame::ShapeAttributes::showWarningMessage | ( | std::string | extra = "" | ) | const |
show warning message with information about non-valid attributes
Definition at line 469 of file GNEPolygonFrame.cpp.
References GNEPolygonFrame::ShapeSelector::getCurrentShapeType(), GNEPolygonFrame::getShapeSelector(), GNEAttributeCarrier::getTagProperties(), GNEFrame::getViewNet(), myPolygonFrameParent, GNEPolygonFrame::myShapeSelector, myVectorOfsingleShapeParameter, GNEViewNet::setStatusBarText(), toString(), and WRITE_DEBUG.
Referenced by GNEPolygonFrame::buildPoly(), and GNEPolygonFrame::processClick().
|
private |
pointer to Polygon Frame Parent
Definition at line 231 of file GNEPolygonFrame.h.
Referenced by addAttribute(), areValuesValid(), getPolygonFrameParent(), onCmdHelp(), and showWarningMessage().
|
private |
vector with the shape parameters
Definition at line 234 of file GNEPolygonFrame.h.
Referenced by addAttribute(), areValuesValid(), clearAttributes(), getAttributesAndValues(), ShapeAttributes(), and showWarningMessage().