 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
168 osg::Node* getNode()
const;
172 void setNode(osg::Node* node);
269 osg::Node* myOSGNode;
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
A window containing a gl-object's parameter.
void removeParameterTable(GUIParameterTableWindow *w)
Lets this object know a parameter window showing the object's values was closed.
std::string myMicrosimID
ID of GL object.
A storage for of displayed objects via their numerical id.
virtual GUIParameterTableWindow * getTypeParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own type parameter window (optional)
virtual double getColorValue(const GUIVisualizationSettings &, int) const
void drawName(const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0) const
draw name of item
const GUIGlObjectType myGLObjectType
The type of the object.
void buildSelectionPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to (de)select the object.
virtual GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)=0
Returns an own popup-menu.
virtual GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)=0
Returns an own parameter window.
static StringBijection< GUIGlObjectType >::Entry GUIGlObjectTypeNamesInitializer[]
LinkStates (Currently unused)
virtual void removeActiveAddVisualisation(GUISUMOAbstractView *const, int)
remove additional user-griggered visualisations
virtual void removedPopupMenu()
notify object about popup menu removal
static StringBijection< GUIGlObjectType > TypeNames
associates object types with strings
void buildShowManipulatorPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to open the manipulator window.
const std::string & getFullName() const
std::string myFullName
full name of GL Object
virtual const std::string getOptionalName() const
Returns the name of the object (default "")
void buildAdditionalsPopupOptions(GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type)
build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
std::string createFullName() const
create full name
GUIGlObject(GUIGlObjectType type, const std::string µsimID)
Constructor.
virtual void setMicrosimID(const std::string &newID)
Changes the microsimID of the object.
static const GUIGlID INVALID_ID
virtual void drawGLAdditional(GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const
Draws additional, user-triggered visualisations.
void buildNameCopyPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds entries which allow to copy the name / typed name into the clipboard.
std::set< GUIParameterTableWindow * > myParamWindows
Parameter table windows which refer to this object.
GUIGlID getGlID() const
Returns the numerical id of the object.
A class that stores a 2D geometrical boundary.
A point in 2D or 3D with translation and scaling methods.
void buildPopupHeader(GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
Builds the header.
GUIGlID myGlID
The numerical id of the object.
GUIGlObject & operator=(const GUIGlObject &)=delete
Invalidated assignment operator.
virtual Boundary getCenteringBoundary() const =0
void buildShapePopupOptions(GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type)
build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
void buildShowTypeParamsPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to open the type parameter window.
virtual void drawGL(const GUIVisualizationSettings &s) const =0
Draws the object.
void buildShowParamsPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to open the parameter window.
void buildCenterPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to center to the object.
void buildPositionCopyEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to copy the cursor position if geo projection is used,...
virtual void onLeftBtnPress(void *)
notify object about left click
void addParameterTable(GUIParameterTableWindow *w)
virtual ~GUIGlObject()
Destructor.
Stores the information about how to visualize structures.
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
virtual std::string getParentName() const
Returns the name of the parent object (if any)