42 myBlockMovement(movementBlocked),
43 myBlockShape(shapeBlocked) {
74 glTranslated(pos.
x(), pos.
y(), layer + 0.1);
76 glRotated(180, 0, 0, 1);
bool mySelected
boolean to check if this AC is selected (instead of GUIGlObjectStorage)
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.
static GUIGlID getTexture(GUITexture which)
returns a texture previously defined in the enum GUITexture
Stores the information about how to visualize structures.
void select(GUIGlID id, bool update=true)
Adds the object with the given id.
bool isAttributeCarrierSelected() const
check if attribute carrier is selected
double y() const
Returns the y-position.
GNEShape(GNENet *net, SumoXMLTag tag, bool movementBlocked, bool shapeBlocked)
Constructor.
double x() const
Returns the x-position.
A NBNetBuilder extended by visualisation and editing capabilities.
GNENet * myNet
the net to inform about updates
void selectAttributeCarrier(bool changeFlag=true)
void drawLockIcon(const Position &pos, double layer, double size=0.5) const
draw lock icon
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
bool showLockIcon() const
check if lock icon should be visible
bool myBlockShape
flag for block shape
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
bool myBlockMovement
flag to block movement
A point in 2D or 3D with translation and scaling methods.
virtual void mouseOverObject(const GUIVisualizationSettings &s) const =0
method for check if mouse is over objects
bool isMovementBlocked() const
return true if movement is blocked
const std::string getID() const
function to support debugging
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
void deselect(GUIGlID id)
Deselects the object with the given id.
GNENet * getNet() const
get Net in which this element is placed
void unselectAttributeCarrier(bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
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
SumoXMLTag getTag() const
get XML Tag assigned to this object