20 #ifndef GNEPolygonFrame_h 21 #define GNEPolygonFrame_h 170 void clearAttributes();
176 void showShapeParameters();
179 void hideShapeParameters();
182 std::map<SumoXMLAttr, std::string> getAttributesAndValues()
const;
185 bool areValuesValid()
const;
188 void showWarningMessage(std::string extra =
"")
const;
191 int getNumberOfAddedAttributes()
const;
196 long onCmdHelp(FXObject*, FXSelector,
void*);
245 void show(
bool shapeEditing);
251 bool isBlockMovementEnabled()
const;
254 bool isBlockShapeEnabled()
const;
257 bool isCloseShapeEnabled()
const;
262 long onCmdSetBlockMovement(FXObject*, FXSelector,
void*);
265 long onCmdSetBlockShape(FXObject*, FXSelector,
void*);
268 long onCmdsetClosingClosing(FXObject*, FXSelector,
void*);
332 void addNewPoint(
const Position& P);
335 void removeLastPoint();
341 bool isDrawing()
const;
346 long onCmdStartDrawing(FXObject*, FXSelector,
void*);
349 long onCmdStopDrawing(FXObject*, FXSelector,
void*);
352 long onCmdAbortDrawing(FXObject*, FXSelector,
void*);
423 bool addPolygon(
const std::map<SumoXMLAttr, std::string>& POIValues);
426 bool addPOI(
const std::map<SumoXMLAttr, std::string>& POIValues);
ShapeAttributeSingle()
FOX needs this.
std::string getValue() const
return value
SumoXMLTag
Numbers representing SUMO-XML - element names.
bool buildPoly(const PositionVector &drawedShape)
build Polygon using values of Fields and drawed shap return true if was sucesfully created ...
GNEPolygonFrame()
FOX needs this.
void setParametersOfShape(SumoXMLTag actualShapeType)
set parameters depending of the new additionalType
~ShapeAttributeSingle()
destructor
FXHorizontalFrame * myBlockShapeFrame
frame for Block shape
~GNEPolygonFrame()
Destructor.
FXTextField * myTextFieldInt
textField to modify the default value of int/float/string parameters
SumoXMLTag myShapeTag
current XML attribute
GNEPolygonFrame::NeteditAttributes * getNetEditParameters() const
get editor parameters
AddShapeResult
FOX-declaration.
FXLabel * myClosePolygonLabel
Label for open/close polygon.
GNEPolygonFrame::NeteditAttributes * myEditorParameters
Netedit parameter.
AddShapeResult processClick(const Position &clickedPosition)
process click over Viewnet
long onCmdSetBooleanAttribute(FXObject *, FXSelector, void *)
called when user change the value of myBoolCheckButton
int myIndexParameter
Index for myVectorOfsingleShapeParameter.
GNEViewNet * myViewNet
pointer to viewNet
FXGroupBox * myGroupBoxForMyShapeMatchBox
groupBox for Match Box of additionals
FXLabel * myInformationLabel
Label with information.
FXTextField * myTextFieldReal
textField to modify the default value of real/times parameters
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
GNEPolygonFrame::DrawingMode * getDrawingMode() const
get drawing mode
FXCheckButton * myBlockMovementCheckButton
checkBox for block movement
FXLabel * myBlockMovementLabel
Label for block movement.
FXButton * myStopDrawingButton
button for stop drawing
bool addPolygon(const std::map< SumoXMLAttr, std::string > &POIValues)
add Polygon
bool addPOI(const std::map< SumoXMLAttr, std::string > &POIValues)
add POI
FXHorizontalFrame * myClosePolygonFrame
Frame for open/close polygon.
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
const std::string & isAttributeValid() const
returns a empty string if current value is valid, a string with information about invalid value in ot...
FXButton * mycolorEditor
Button for open color editor.
PositionVector myTemporalShapeShape
current drawed shape
A point in 2D or 3D with translation and scaling methods.
FXCheckButton * myClosePolygonCheckButton
checkbox to enable/disable closing polygon
void hideParameter()
hide all parameters
GNEPolygonFrame::DrawingMode * myDrawingMode
drawing mode
FXButton * myAbortDrawingButton
button for abort drawing
void showParameter(SumoXMLTag additionalTag, SumoXMLAttr additionalAttr, std::string value)
show name and value of attribute of type string
ShapeAttributes()
FOX needs this.
FXCheckButton * myBlockShapeCheckButton
checkBox for block shape
SumoXMLTag getTag() const
return tag
FXComboBox * myShapeMatchBox
combo box with the list of additional elements
NeteditAttributes()
FOX needs this.
SumoXMLTag myActualShapeType
actual additional type selected in the match Box
SumoXMLTag myShapeTag
current additional tag
int maxNumberOfParameters
max number of parameters (Defined in constructor)
void show()
show additional frame and update use selected edges/lanes
FXButton * myStartDrawingButton
button for start drawing
std::vector< ShapeAttributeSingle * > myVectorOfsingleShapeParameter
vector with the additional parameters
FXLabel * myBlockShapeLabel
Label for block shape.
GNEPolygonFrame::ShapeAttributes * myShapeAttributes
additional internal attributes
virtual void hide()
hide Frame
static std::string getIdsSelected(const FXList *list)
get list of selecte id's in string format
int myIndexParameterList
index for myIndexParameterList
SumoXMLAttr getAttr() const
return Attr
SumoXMLAttr myShapeAttr
current XML attribute
FXCheckButton * myBoolCheckButton
check button to enable/disable the value of boolean parameters
GNEPolygonFrame * myPolygonFrameParent
polygon frame parent
long onCmdSetAttribute(FXObject *, FXSelector, void *)
DrawingMode()
FOX needs this.
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