57 int numberOfSegments = (int)
shape.size() - 1;
59 if (numberOfSegments >= 0) {
64 for (
int i = 0; i < numberOfSegments; ++i) {
bool mySelected
boolean to check if this AC is selected (instead of GUIGlObjectStorage)
const TagProperties & myTagProperty
the xml tag to which this attribute carrier corresponds
SumoXMLTag
Numbers representing SUMO-XML - element names.
void closeBuilding(const Parameterised *p=0)
Closes the building of the table.
void addedLockedObject(const GUIGlObjectType type)
set object selected
PositionVector shape
The shape of the netElement element.
GNENet * myNet
the net to inform about updates
struct for pack all variables related with geometry of elemement
begin/end of the description of a single lane
GNENet * getNet() const
get Net in which this element is placed
bool drawUsingSelectColor() const
check if attribute carrier must be drawn using selecting color.
virtual std::string generateChildID(SumoXMLTag childTag)=0
gererate a new ID for an element child
connectio between two lanes
void select(GUIGlID id, bool update=true)
Adds the object with the given id.
GNEViewParent * getViewParent() const
get the net object
double y() const
Returns the y-position.
void setEnabledAttribute(const int enabledAttributes)
method for enabling the attribute and nothing else (used in GNEChange_EnableAttribute) ...
void mkItem(const char *name, bool dynamic, ValueSource< T > *src)
Adds a row which obtains its value from a ValueSource.
double x() const
Returns the x-position.
NetElementGeometry myGeometry
netElement geometry
A NBNetBuilder extended by visualisation and editing capabilities.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
Boundary myMovingGeometryBoundary
boundary used during moving of elements
~GNENetElement()
Destructor.
std::string getPopUpID() const
get PopPup ID (Used in AC Hierarchy)
GNENetElement(GNENet *net, const std::string &id, GUIGlObjectType type, SumoXMLTag tag)
Constructor.
An special type of Attribute carrier that owns hierarchical elements.
std::vector< double > shapeRotations
The rotations of the single shape parts.
LockGLObjectTypes * getLockGLObjectTypes() const
get selected items Modul
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
SumoXMLTag getTag() const
get Tag vinculated with this attribute Property
std::string getHierarchyName() const
get Hierarchy Name (Used in AC Hierarchy)
int getNumberOfAttributes() const
get number of attributes
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 isAttributeEnabled(SumoXMLAttr key) const
GNESelectorFrame * getSelectorFrame() const
get frame for GNE_NMODE_SELECT
const std::string getID() const
function to support debugging
const NetElementGeometry & getGeometry() const
void selectAttributeCarrier(bool changeFlag=true)
select attribute carrier using GUIGlobalSelection
NetElementGeometry()
constructor
std::vector< double > shapeLengths
The lengths of the single shape parts.
begin/end of the description of an edge
void unselectAttributeCarrier(bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
void deselect(GUIGlID id)
Deselects the object with the given id.
const std::string & getTagStr() const
get tag assigned to this object in string format
GNEHierarchicalElementChildren(GNEAttributeCarrier *AC, 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)
Parameter Constructor.
crossing between edges for pedestrians
virtual std::string getAttribute(SumoXMLAttr key) const =0
GUIGlID getGlID() const
Returns the numerical id of the object.
double distanceTo(const Position &p2) const
returns the euclidean distance in 3 dimension
void calculateShapeRotationsAndLengths()
calculate shape rotations and lengths
void enableAttribute(SumoXMLAttr key, GNEUndoList *undoList)
const GNEViewNetHelper::EditModes & getEditModes() const
get edit modes
Network mode (Edges, junctions, etc..)
GUISelectedStorage gSelected
A global holder of selected objects.
void clearGeometry()
reset geometry
A window containing a gl-object's parameter.
bool isAttributeCarrierSelected() const
check if attribute carrier is selected
GNEViewNet * getViewNet() const
get view net