47 myBlockMovement(movementBlocked),
48 myBlockShape(shapeBlocked),
49 myShapeVisible(false) {
92 glTranslated(pos.
x(), pos.
y(), layer + 0.1);
94 glRotated(180, 0, 0, 1);
static void drawTexturedBox(int which, double size)
Draws a named texture as a box with the given size.
bool showLockIcon() const
check if lock icon should be visible
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
double x() const
Returns the x-position.
GNEShape(GNENet *net, SumoXMLTag tag, GUIIcon icon, bool movementBlocked, bool shapeBlocked)
Constructor.
A NBNetBuilder extended by visualisation and editing capabilities.
bool isMovementBlocked() const
return true if movement is blocked
GNENet * myNet
the net to inform about updates
void drawLockIcon(const Position &pos, double layer, double size=0.5) const
draw lock icon
bool myBlockShape
flag for block shape
bool myBlockMovement
flag to block movement
A point in 2D or 3D with translation and scaling methods.
void setShapeVisible(bool visible)
set flag to enable or disable if shape is visible
bool isShapeSelected(SumoXMLTag tag, const std::string &ID) const
Check if shape item is selected.
double y() const
Returns the y-position.
GNENet * getNet() const
get Net in which this element is placed
const std::string getID() const
function to support debugging
bool myShapeVisible
flag for visible shape
bool isShapeBlocked() const
return true if shape is blocked
SumoXMLTag getTag() const
get XML Tag assigned to this object
bool isShapeVisible() const
check if shape is visible (Was added into view using insertPolygon/POIInView)
GNEViewNet * getViewNet() const
get view net