35 const std::vector<GNEJunction*>& junctionParents,
36 const std::vector<GNEEdge*>& edgeParents,
37 const std::vector<GNELane*>& laneParents,
38 const std::vector<GNEAdditional*>& additionalParents,
39 const std::vector<GNEShape*>& shapeParents,
40 const std::vector<GNETAZElement*>& TAZElementParents,
41 const std::vector<GNEDemandElement*>& demandElementParents,
42 const std::vector<GNEGenericData*>& genericDataParents) :
44 GNEHierarchicalElement(net, tag, junctionParents, edgeParents, laneParents, additionalParents, shapeParents, TAZElementParents, demandElementParents, genericDataParents),
45 myBlockMovement(movementBlocked) {
76 glTranslated(pos.
x(), pos.
y(), layer + 0.1);
78 glRotated(180, 0, 0, 1);
@ GNETEXTURE_EMPTYSELECTED
@ GNETEXTURE_LOCKSELECTED
SumoXMLTag
Numbers representing SUMO-XML - element names.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
A class that stores a 2D geometrical boundary.
Position getCenter() const
Returns the center of the boundary.
bool mySelected
boolean to check if this AC is selected (instead of GUIGlObjectStorage)
static T parse(const std::string &string)
parses a value of type T from string (used for basic types: int, double, bool, etc....
const std::string & getTagStr() const
get tag assigned to this object in string format
GNENet * myNet
pointer to net
GNENet * getNet() const
get pointer to net
void replaceParentElements(T *elementChild, const U &newParents)
replace parent elements
A NBNetBuilder extended by visualisation and editing capabilities.
GNEViewNet * getViewNet() const
get view net
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
void disableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
void enableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
Boundary myBoundary
object boundary
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
Position getPositionInView() const
Returns position of additional in view.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
GNEShape(const std::string &id, GNENet *net, GUIGlObjectType type, SumoXMLTag tag, bool movementBlocked, const std::vector< GNEJunction * > &junctionParents, const std::vector< GNEEdge * > &edgeParents, const std::vector< GNELane * > &laneParents, const std::vector< GNEAdditional * > &additionalParents, const std::vector< GNEShape * > &shapeParents, const std::vector< GNETAZElement * > &TAZElementParents, const std::vector< GNEDemandElement * > &demandElementParents, const std::vector< GNEGenericData * > &genericDataParents)
Constructor.
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
GUIGlObject * getGUIGlObject()
get GUIGlObject associated with this AttributeCarrier
const std::string & getID() const
get ID (all shapes have one)
void draw(const Position &pos, double layer, double size=0.5) const
draw lock icon
virtual ~GNEShape()
Destructor.
bool myBlockMovement
flag to block movement
void replaceShapeParentLanes(const std::string &value)
replace shape parent lanes
bool showLockIcon() const
check if lock icon should be visible
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
static GUIGlID getTexture(GUITexture which)
returns a texture previously defined in the enum GUITexture
static void drawTexturedBox(int which, double size)
Draws a named texture as a box with the given size.
A point in 2D or 3D with translation and scaling methods.
double x() const
Returns the x-position.
double y() const
Returns the y-position.