 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
39 const std::vector<GNEEdge*>& parentEdges,
40 const std::vector<GNELane*>& parentLanes,
41 const std::vector<GNEShape*>& parentShapes,
42 const std::vector<GNEAdditional*>& parentAdditionals,
43 const std::vector<GNEDemandElement*>& parentDemandElements,
44 const std::vector<GNEEdge*>& childEdges,
45 const std::vector<GNELane*>& childLanes,
46 const std::vector<GNEShape*>& childShapes,
47 const std::vector<GNEAdditional*>& childAdditionals,
48 const std::vector<GNEDemandElement*>& childDemandElements) :
53 myBlockMovement(movementBlocked) {
78 glTranslated(pos.
x(), pos.
y(), layer + 0.1);
80 glRotated(180, 0, 0, 1);
GNESelectorFrame * getSelectorFrame() const
get frame for GNE_NMODE_SELECT
void disableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
bool mySelected
boolean to check if this AC is selected (instead of GUIGlObjectStorage)
const std::string getID() const
function to support debugging
virtual const GUIGlObject * getGUIGlObject() const =0
get GUIGlObject associated to this GNEShape
void selectAttributeCarrier(bool changeFlag=true)
A NBNetBuilder extended by visualisation and editing capabilities.
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)
bool isMovementBlocked() const
return true if movement is blocked
SumoXMLTag
Numbers representing SUMO-XML - element names.
static void drawTexturedBox(int which, double size)
Draws a named texture as a box with the given size.
An special type of Attribute carrier that owns hierarchical elements.
GNEShape(GNENet *net, SumoXMLTag tag, bool movementBlocked, const std::vector< GNEEdge * > &parentEdges, const std::vector< GNELane * > &parentLanes, const std::vector< GNEShape * > &parentShapes, const std::vector< GNEAdditional * > &parentAdditionals, const std::vector< GNEDemandElement * > &parentDemandElements, const std::vector< GNEEdge * > &childEdges, const std::vector< GNELane * > &childLanes, const std::vector< GNEShape * > &childShapes, const std::vector< GNEAdditional * > &childAdditionals, const std::vector< GNEDemandElement * > &childDemandElements)
Constructor.
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
void select(GUIGlID id, bool update=true)
Adds the object with the given id.
GNENet * myNet
the net to inform about updates
static GUIGlID getTexture(GUITexture which)
returns a texture previously defined in the enum GUITexture
Network mode (Edges, junctions, etc..)
bool drawUsingSelectColor() const
check if attribute carrier must be drawn using selecting color.
Supermode currentSupermode
the current supermode
A point in 2D or 3D with translation and scaling methods.
double x() const
Returns the x-position.
GNENet * getNet() const
get Net in which this element is placed
bool myBlockMovement
flag to block movement
virtual GUIGlID getGlID() const =0
Returns the numerical id of the object.
GNEViewNet * getViewNet() const
get view net
bool showLockIcon() const
check if lock icon should be visible
double y() const
Returns the y-position.
GUISelectedStorage gSelected
A global holder of selected objects.
An special type of Attribute carrier that owns hierarchical elements.
void draw(const Position &pos, double layer, double size=0.5) const
draw lock icon
const GNEViewNetHelper::EditModes & getEditModes() const
get edit modes
void enableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
void removeLockedObject(const GUIGlObjectType type)
set object unselected
const std::string & getTagStr() const
get tag assigned to this object in string format
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void unselectAttributeCarrier(bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
void deselect(GUIGlID id)
Deselects the object with the given id.
GNEViewParent * getViewParent() const
get the net object
bool isAttributeCarrierSelected() const
check if attribute carrier is selected
LockGLObjectTypes * getLockGLObjectTypes() const
get selected items Modul
void addedLockedObject(const GUIGlObjectType type)
set object selected