69 double lineWidth,
const RGBColor& color,
double layer,
double angle,
const std::string& imgFile,
bool relativePath,
70 const std::string& name,
const std::map<std::string, std::string>& parameters);
90 void setParameter(
const std::string& key,
const std::string& value);
SumoXMLTag
Numbers representing SUMO-XML - element names.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
A NBNetBuilder extended by visualisation and editing capabilities.
void updateGeometry()
update pre-computed geometry information
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
bool mySimplifiedShape
flag to indicate if polygon is simplified
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
std::string getAttribute(SumoXMLAttr key) const
GNEPoly & operator=(const GNEPoly &)=delete
Invalidated assignment operator.
void setMoveShape(const GNEMoveResult &moveResult)
set move shape
int getVertexIndex(Position pos, bool snapToGrid)
return index of a vertex of shape, or of a new vertex if position is over an shape's edge
PositionVector myGeoShape
Latitude of Polygon.
GUIGeometry myPolygonGeometry
geometry for lenghts/rotations
GNEPoly(GNENet *net)
default Constructor
void closePolygon(bool allowUndo=true)
close polygon
void changeFirstGeometryPoint(int oldIndex, bool allowUndo=true)
change first geometry point
void removeGeometryPoint(const Position clickedPosition, GNEUndoList *undoList)
remove geometry point in the clicked position
void commitMoveShape(const GNEMoveResult &moveResult, GNEUndoList *undoList)
commit move shape
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
GNEMoveOperation * getMoveOperation()
get move operation
void setParameter(const std::string &key, const std::string &value)
Sets a parameter.
GNEPoly(const GNEPoly &)=delete
Invalidated copy constructor.
bool isAttributeEnabled(SumoXMLAttr key) const
double getExaggeration(const GUIVisualizationSettings &s) const
return exaggeration asociated with this GLObject
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
void deleteGeometryPoint(const Position &pos, bool allowUndo=true)
delete the geometry point closest to the given pos
std::string getParentName() const
Returns the name of the parent object.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes
void updateCenteringBoundary(const bool updateGrid)
update centering boundary (implies change in RTREE)
void writeShape(OutputDevice &device)
writte shape element into a xml file
bool isPolygonClosed() const
check if polygon is closed
void simplifyShape(bool allowUndo=true)
replace the current shape with a rectangle
const std::map< std::string, std::string > & getACParametersMap() const
get parameters map
GUIGlID getGlID() const
Returns the numerical id of the object.
std::string generateChildID(SumoXMLTag childTag)
gererate a new ID for an element child
Position getPositionInView() const
Returns position of shape in view.
void openPolygon(bool allowUndo=true)
open polygon
const std::string & getID() const
get ID (all shapes have one)
A window containing a gl-object's parameter.
Stores the information about how to visualize structures.
static methods for processing the coordinates conversion for the current net
Static storage of an output device and its base (abstract) implementation.
A point in 2D or 3D with translation and scaling methods.