107 SUMOReal angle = 0,
const std::string& imgFile =
"");
180 static void saveToFile(
const std::string& file);
Position moveGeometry(const Position &oldPos, const Position &newPos, bool relative=false)
draw the polygon and also little movement handles
static void saveToFile(const std::string &file)
save POIs to file
Stores the information about how to visualize structures.
GNEJunction * getEditedJunction() const
retrieve the junction of which the shape is being edited
GNEPolyHandler(GNENet *net)
constructor
A NBNetBuilder extended by visualisation and editing capabilities.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
SAX-handler base for SUMO-files.
GeoConvHelper * myLocation
The coordinate transformation which was used compute the POI coordinates.
static void loadFromFile(const std::string &file, GNENet *net)
load POIs from file
GNENet * myNet
the net for querying updates
static methods for processing the coordinates conversion for the current net
Encapsulated SAX-Attributes.
A point in 2D or 3D with translation and scaling methods.
void loadPOI(const SUMOSAXAttributes &attrs)
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
bool isValid(SumoXMLAttr key, const std::string &value)
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
GNEPoly(GNENet *net, GNEJunction *junction, const std::string &id, const std::string &type, const PositionVector &shape, bool fill, const RGBColor &color, SUMOReal layer, SUMOReal angle=0, const std::string &imgFile="")
Constructor.
std::string getAttribute(SumoXMLAttr key) const
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
GNEJunction * myJunction
junction of which the shape is being edited (optional)
const SUMOSAXHandler & operator=(const SUMOSAXHandler &s)
invalidated assignment operator
void simplifyShape()
replace the current shape with a rectangle
virtual ~GNEPolyHandler()
int myNumLoaded
number of loaded pois
virtual void myEndElement(int element)
Called when a closing tag occurs.
virtual ~GNEPoly()
Destructor.
virtual void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
void deleteGeometryNear(const Position &pos)
delete the geometry point closest to the given pos