40 const std::vector<GNEEdge*>& edgeParents,
41 const std::vector<GNELane*>& laneParents,
42 const std::vector<GNEShape*>& shapeParents,
43 const std::vector<GNEAdditional*>& additionalParents,
44 const std::vector<GNEDemandElement*>& demandElementParents,
45 const std::vector<GNEEdge*>& edgeChildren,
46 const std::vector<GNELane*>& laneChildren,
47 const std::vector<GNEShape*>& shapeChildren,
48 const std::vector<GNEAdditional*>& additionalChildren,
49 const std::vector<GNEDemandElement*>& demandElementChildren) :
54 myBlockMovement(movementBlocked) {
79 glTranslated(pos.
x(), pos.
y(), layer + 0.1);
81 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
void enableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
bool isAttributeEnabled(SumoXMLAttr key) const
An special type of Attribute carrier that owns hierarchical elements.
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
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.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
bool drawUsingSelectColor() const
check if attribute carrier must be drawn using selecting color.
GNENet * myNet
the net to inform about updates
void selectAttributeCarrier(bool changeFlag=true)
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
void setEnabledAttribute(const int enabledAttributes)
method for enabling the attribute and nothing else (used in GNEChange_EnableAttribute) ...
An special type of Attribute carrier that owns hierarchical elements.
bool showLockIcon() const
check if lock icon should be visible
LockGLObjectTypes * getLockGLObjectTypes() const
get selected items Modul
bool myBlockMovement
flag to block movement
A point in 2D or 3D with translation and scaling methods.
Supermode currentSupermode
the current supermode
void removeLockedObject(const GUIGlObjectType type)
set object unselected
bool isMovementBlocked() const
return true if movement is blocked
GNESelectorFrame * getSelectorFrame() const
get frame for GNE_NMODE_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
virtual GUIGlID getGlID() const =0
Returns the numerical id of the object.
virtual const GUIGlObject * getGUIGlObject() const =0
get GUIGlObject associated to this GNEShape
const GNEViewNetHelper::EditModes & getEditModes() const
get edit modes
Network mode (Edges, junctions, etc..)
GUISelectedStorage gSelected
A global holder of selected objects.
GNEShape(GNENet *net, SumoXMLTag tag, bool movementBlocked, const std::vector< GNEEdge *> &edgeParents, const std::vector< GNELane *> &laneParents, const std::vector< GNEShape *> &shapeParents, const std::vector< GNEAdditional *> &additionalParents, const std::vector< GNEDemandElement *> &demandElementParents, const std::vector< GNEEdge *> &edgeChildren, const std::vector< GNELane *> &laneChildren, const std::vector< GNEShape *> &shapeChildren, const std::vector< GNEAdditional *> &additionalChildren, const std::vector< GNEDemandElement *> &demandElementChildren)
Constructor.
GNEViewNet * getViewNet() const
get view net