72 const RGBColor& color,
double layer,
double angle,
const std::string& imgFile,
bool movementBlocked,
bool shapeBlocked);
void openPolygon(bool allowUndo=true)
open polygon
GNEPoly(GNENet *net, const std::string &id, const std::string &type, const PositionVector &shape, bool fill, const RGBColor &color, double layer, double angle, const std::string &imgFile, bool movementBlocked, bool shapeBlocked)
Constructor.
Stores the information about how to visualize structures.
void commitShapeChange(const PositionVector &oldShape, GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of changeShapeGeometry(...)
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
int getVertexIndex(const Position &pos, bool createIfNoExist=true)
return index of a vertex of shape, or of a new vertex if position is over an shape's edge ...
A NBNetBuilder extended by visualisation and editing capabilities.
bool mySimplifiedShape
flag to indicate if polygon is simplified
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
GNEJunction * myShapeEditedJunction
junction of which the shape is being edited (optional)
A class that stores a 2D geometrical boundary.
void closePolygon(bool allowUndo=true)
close polygon
GNEPoly & operator=(const GNEPoly &)=delete
Invalidated assignment operator.
static methods for processing the coordinates conversion for the current net
Position getPositionInView() const
Returns position of additional in view.
void writeShape(OutputDevice &device)
writte shape element into a xml file
int moveVertexShape(int index, const Position &newPos)
change position of a vertex of shape without commiting change
A point in 2D or 3D with translation and scaling methods.
static const double myHintSize
hint size of vertex
int myCurrentMovingVertexIndex
index of vertex that is been moved (-1 means that none vertex is been moved)
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes ...
const std::string getID() const
function to support debugging
GNEJunction * getShapeEditedJunction() const
retrieve the junction of which the shape is being edited
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
void deleteGeometryNear(const Position &pos, bool allowUndo=true)
delete the geometry point closest to the given pos
bool isPolygonClosed() const
check if polygon is closed
void simplifyShape(bool allowUndo=true)
replace the current shape with a rectangle
const std::string & getParentName() const
Returns the name of the parent object.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Static storage of an output device and its base (abstract) implementation.
void setShapeEditedJunction(GNEJunction *junction)
retrieve the junction of which the shape is being edited
bool myClosedShape
flag to indicate if polygon is open or closed
A window containing a gl-object's parameter.
std::string getAttribute(SumoXMLAttr key) const
This functions has to be implemented in allGNEAttributeCarrier.
void changeFirstGeometryPoint(int oldIndex, bool allowUndo=true)
change first geometry point
void moveEntireShape(const PositionVector &oldShape, const Position &offset)
move entire shape without commiting change