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