47 myBlockMovement(movementBlocked),
48 myBlockShape(shapeBlocked) {
79 glTranslated(pos.
x(), pos.
y(), layer + 0.1);
81 glRotated(180, 0, 0, 1);
static void drawTexturedBox(int which, double size)
Draws a named texture as a box with the given size.
SumoXMLTag
Numbers representing SUMO-XML - element names.
GUIIcon
An enumeration of icons used by the gui applications.
static GUIGlID getTexture(GUITexture which)
returns a texture previously defined in the enum GUITexture
GNEShape(GNENet *net, SumoXMLTag tag, GUIIcon icon, bool movementBlocked, bool shapeBlocked)
Constructor.
double y() const
Returns the y-position.
double x() const
Returns the x-position.
bool isSelected(GUIGlObjectType type, GUIGlID id)
Returns the information whether the object with the given type and id is selected.
A NBNetBuilder extended by visualisation and editing capabilities.
GNENet * myNet
the net to inform about updates
void drawLockIcon(const Position &pos, double layer, double size=0.5) const
draw lock icon
bool showLockIcon() const
check if lock icon should be visible
bool myBlockShape
flag for block shape
bool myBlockMovement
flag to block movement
A point in 2D or 3D with translation and scaling methods.
bool isMovementBlocked() const
return true if movement is blocked
GNENet * getNet() const
get Net in which this element is placed
virtual GUIGlID getGlID() const =0
Returns the numerical id of the object.
bool isShapeBlocked() const
return true if shape is blocked
GUISelectedStorage gSelected
A global holder of selected objects.
GNEViewNet * getViewNet() const
get view net
const GUIGlObject * getGUIGLObject() const
get const pointer to GUIGlObject vinculated with this Attribute Carrier