17 #ifndef GNEPolygonFrame_h 18 #define GNEPolygonFrame_h 115 void showParameter(
SumoXMLAttr shapeAttr, std::string value);
118 void hideParameter();
124 std::string getValue()
const;
127 const std::string& isAttributeValid()
const;
135 long onCmdSetAttribute(FXObject*, FXSelector,
void*);
138 long onCmdSetBooleanAttribute(FXObject*, FXSelector,
void*);
141 long onCmdSetColorAttribute(FXObject*, FXSelector,
void*);
193 void clearAttributes();
199 void showShapeParameters();
202 void hideShapeParameters();
205 std::map<SumoXMLAttr, std::string> getAttributesAndValues()
const;
208 bool areValuesValid()
const;
211 void showWarningMessage(std::string extra =
"")
const;
214 int getNumberOfAddedAttributes()
const;
222 long onCmdHelp(FXObject*, FXSelector,
void*);
253 void showNeteditAttributes(
bool shapeEditing);
256 void hideNeteditAttributes();
259 bool isBlockMovementEnabled()
const;
262 bool isBlockShapeEnabled()
const;
265 bool isCloseShapeEnabled()
const;
270 long onCmdSetNeteditAttribute(FXObject*, FXSelector,
void*);
273 long onCmdHelp(FXObject*, FXSelector,
void*);
322 void showDrawingMode();
325 void hideDrawingMode();
337 void addNewPoint(
const Position& P);
340 void removeLastPoint();
346 bool isDrawing()
const;
351 long onCmdStartDrawing(FXObject*, FXSelector,
void*);
354 long onCmdStopDrawing(FXObject*, FXSelector,
void*);
357 long onCmdAbortDrawing(FXObject*, FXSelector,
void*);
426 bool addPolygon(
const std::map<SumoXMLAttr, std::string>& POIValues);
429 bool addPOI(
const std::map<SumoXMLAttr, std::string>& POIValues);
432 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.
bool buildPoly(const PositionVector &drawedShape)
build Polygon using values of Fields and drawed shape return true if was sucesfully created ...
FXHorizontalFrame * myBlockShapeFrame
frame for Block shape
ShapeAttributes * myShapeAttributesParent
pointer to ShapeAttributes
~GNEPolygonFrame()
Destructor.
FXTextField * myTextFieldInt
textField to modify the default value of int/float/string parameters
~ShapeSelector()
destructor
SumoXMLTag getCurrentShapeType() const
get current shape type
void setCurrentShape(SumoXMLTag actualShapeType)
set parameters depending of the given shapeType
AddShapeResult
enum with all possible values after try to create an shape using frame
long onCmdselectAttributeCarrier(FXObject *, FXSelector, void *)
GNEPolygonFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
FXLabel * myClosePolygonLabel
Label for open/close polygon.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
FXLabel * myInformationLabel
Label with information.
FXTextField * myTextFieldReal
textField to modify the default value of real/times parameters
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
FXCheckButton * myBlockMovementCheckButton
checkBox for block movement
FXLabel * myBlockMovementLabel
Label for block movement.
FXButton * myStopDrawingButton
button for stop drawing
FXButton * myColorEditor
Button for open color editor.
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.
FXTextField * myTextFieldStrings
textField to modify the default value of string parameters
ShapeSelector()
FOX needs this.
PositionVector myTemporalShapeShape
current drawed shape
A point in 2D or 3D with translation and scaling methods.
FXCheckButton * myClosePolygonCheckButton
checkbox to enable/disable closing polygon
bool addPOILane(const std::map< SumoXMLAttr, std::string > &POIValues)
add POILane
FXButton * myAbortDrawingButton
button for abort drawing
SumoXMLTag myCurrentShapeType
actual shape type selected in the match Box
ShapeAttributes()
FOX needs this.
ShapeAttributes * myShapeAttributes
shape internal attributes
ShapeAttributes * getShapeAttributes() const
get shape attributes
ShapeSelector * getShapeSelector() const
get shape selector
FXCheckButton * myBlockShapeCheckButton
checkBox for block shape
NeteditAttributes * myNeteditAttributes
Netedit parameter.
NeteditAttributes * getNeteditAttributes() const
get netedit attributes editor
NeteditAttributes()
FOX needs this.
ShapeSelector * myShapeSelector
additional selector
DrawingMode * getDrawingMode() const
get drawing mode editor
DrawingMode * myDrawingMode
drawing mode
void show()
show shape frame and update use selected edges/lanes
GNEPolygonFrame * myPolygonFrameParent
pointer to Polygon Frame Parent
GNEPolygonFrame * myShapeFrameParent
pointer to Shape Frame Parent
FXButton * myStartDrawingButton
button for start drawing
std::vector< ShapeAttributeSingle * > myVectorOfsingleShapeParameter
vector with the shape parameters
FXLabel * myBlockShapeLabel
Label for block shape.
FXComboBox * myShapeMatchBox
combo box with the list of shape elements
static std::string getIdsSelected(const FXList *list)
get list of selecte id's in string format
SumoXMLAttr myShapeAttr
current XML attribute
FXCheckButton * myBoolCheckButton
check button to enable/disable the value of boolean parameters
GNEPolygonFrame * myPolygonFrameParent
frame frame parent
DrawingMode()
FOX needs this.
std::string myInvalidValue
string which indicates the reason due current value is invalid
FXLabel * myLabel
lael with the name of the parameter