19 #ifndef GNEPolygonFrame_h 20 #define GNEPolygonFrame_h 169 void clearAttributes();
175 void showShapeParameters();
178 void hideShapeParameters();
181 std::map<SumoXMLAttr, std::string> getAttributesAndValues()
const;
184 bool areValuesValid()
const;
187 void showWarningMessage(std::string extra =
"")
const;
190 int getNumberOfAddedAttributes()
const;
195 long onCmdHelp(FXObject*, FXSelector,
void*);
267 bool addPolygon(
const std::map<SumoXMLAttr, std::string>& POIValues);
270 bool addPOI(
const std::map<SumoXMLAttr, std::string>& POIValues);
273 bool addPOILane(
const std::map<SumoXMLAttr, std::string>& POIValues);
AddShapeResult processClick(const Position &clickedPosition, GNELane *lane)
process click over Viewnet
ShapeAttributeSingle()
FOX needs this.
SumoXMLTag
Numbers representing SUMO-XML - element names.
std::string getValue() const
return value
bool buildPoly(const PositionVector &drawedShape)
build Polygon using values of Fields and drawed shape return true if was sucesfully created ...
GNEPolygonFrame()
FOX needs this.
void setParametersOfShape(SumoXMLTag actualShapeType)
set parameters depending of the new shapeType
~ShapeAttributeSingle()
destructor
~GNEPolygonFrame()
Destructor.
FXTextField * myTextFieldInt
textField to modify the default value of int/float/string parameters
SumoXMLTag myShapeTag
current XML attribute
AddShapeResult
FOX-declaration.
long onCmdSetBooleanAttribute(FXObject *, FXSelector, void *)
called when user change the value of myBoolCheckButton
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
int myIndexParameter
Index for myVectorOfsingleShapeParameter.
GNEViewNet * myViewNet
pointer to viewNet
FXGroupBox * myGroupBoxForMyShapeMatchBox
groupBox for Match Box of shapes
FXTextField * myTextFieldReal
textField to modify the default value of real/times parameters
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void showParameter(SumoXMLTag shapeTag, SumoXMLAttr shapeAttr, std::string value)
show name and value of attribute of type string
bool addPolygon(const std::map< SumoXMLAttr, std::string > &POIValues)
add Polygon
bool addPOI(const std::map< SumoXMLAttr, std::string > &POIValues)
add POI
int maxNumberOfListParameters
max number of parameters (Defined in constructor)
FXButton * helpShape
button for help
FXTextField * myTextFieldStrings
textField to modify the default value of string parameters
FXButton * mycolorEditor
Button for open color editor.
A point in 2D or 3D with translation and scaling methods.
void hideParameter()
hide all parameters
bool addPOILane(const std::map< SumoXMLAttr, std::string > &POIValues)
add POILane
ShapeAttributes()
FOX needs this.
FXComboBox * myShapeMatchBox
combo box with the list of shape elements
SumoXMLTag myActualShapeType
actual shape type selected in the match Box
SumoXMLTag myShapeTag
current shape tag
int maxNumberOfParameters
max number of parameters (Defined in constructor)
void show()
show shape frame and update use selected edges/lanes
const std::string & isAttributeValid() const
returns a empty string if current value is valid, a string with information about invalid value in ot...
SumoXMLAttr getAttr() const
return Attr
std::vector< ShapeAttributeSingle * > myVectorOfsingleShapeParameter
vector with the shape parameters
GNEPolygonFrame::ShapeAttributes * myShapeAttributes
shape internal attributes
static std::string getIdsSelected(const FXList *list)
get list of selecte id's in string format
int myIndexParameterList
index for myIndexParameterList
SumoXMLTag getTag() const
return tag
SumoXMLAttr myShapeAttr
current XML attribute
FXCheckButton * myBoolCheckButton
check button to enable/disable the value of boolean parameters
long onCmdSetAttribute(FXObject *, FXSelector, void *)
long onCmdSetColorAttribute(FXObject *, FXSelector, void *)
called when user press the "Color" button
std::string myInvalidValue
string which indicates the reason due current value is invalid
long onCmdSelectShape(FXObject *, FXSelector, void *)
FXLabel * myLabel
lael with the name of the parameter