41 myBlockMovement(movementBlocked) {
66 glTranslated(pos.
x(), pos.
y(), layer + 0.1);
68 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.
void draw(const Position &pos, double layer, double size=0.5) const
draw lock icon
SumoXMLTag
Numbers representing SUMO-XML - element names.
void addedLockedObject(const GUIGlObjectType type)
set object selected
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
GNEViewParent * getViewParent() const
get the net object
double y() const
Returns the y-position.
double x() const
Returns the x-position.
A NBNetBuilder extended by visualisation and editing capabilities.
GNEShape(GNENet *net, SumoXMLTag tag, bool movementBlocked)
Constructor.
GNENet * myNet
the net to inform about updates
void selectAttributeCarrier(bool changeFlag=true)
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
bool showLockIcon() const
check if lock icon should be visible
LockGLObjectTypes * getLockGLObjectTypes() const
get selected items
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
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
void removeLockedObject(const GUIGlObjectType type)
set object unselected
bool isMovementBlocked() const
return true if movement is blocked
GNESelectorFrame * getSelectorFrame() const
get frame for GNE_MODE_SELECT
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
const std::string & getTagStr() const
get tag assigned to this object in string format
void unselectAttributeCarrier(bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
GUIGlID getGlID() const
Returns the numerical id of the object.
GUISelectedStorage gSelected
A global holder of selected objects.
GNEViewNet * getViewNet() const
get view net