 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
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);
GNESelectorFrame * getSelectorFrame() const
get frame for GNE_NMODE_SELECT
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)
An special type of Attribute carrier that owns hierarchical elements.
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.
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.
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
bool isAttributeEnabled(SumoXMLAttr key) const
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
An special type of Attribute carrier that owns hierarchical elements.
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
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.
void addedLockedObject(const GUIGlObjectType type)
set object selected