188 void setNode(osg::Node* node) {
192 osg::Node* getNode()
const {
274 void setPrefix(
const std::string& prefix);
295 osg::Node* myOSGNode;
void buildNameCopyPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds entries which allow to copy the name / typed name into the clipboard.
GUIGlID myGlID
The numerical id of the object.
std::string createFullName() const
Stores the information about how to visualize structures.
void buildCenterPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to center to the object.
const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
virtual Boundary getCenteringBoundary() const =0
Returns the boundary to which the view shall be centered in order to show the object.
void buildShowParamsPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to open the parameter window.
void buildPositionCopyEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position.
GUIGlID getGlID() const
Returns the numerical id of the object.
#define UNUSED_PARAMETER(x)
A class that stores a 2D geometrical boundary.
virtual void drawGLAdditional(GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const
Draws additional, user-triggered visualisations.
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
virtual void drawGL(const GUIVisualizationSettings &s) const =0
Draws the object.
void removeParameterTable(GUIParameterTableWindow *w)
Lets this object know a parameter window showing the object's values was closed.
A point in 2D or 3D with translation and scaling methods.
virtual GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)=0
Returns an own popup-menu.
virtual ~GUIGlObject()
Destructor.
void addParameterTable(GUIParameterTableWindow *w)
Lets this object know a parameter window showing the object's values was opened.
virtual GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)=0
Returns an own parameter window.
A storage for of displayed objects via their numerical id.
void drawName(const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const
const GUIGlObjectType myGLObjectType
The type of the object.
void buildShowManipulatorPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to open the manipulator window.
void setMicrosimID(const std::string &newID)
Changes the microsimID of the object (happens in NETEDIT)
static StringBijection< GUIGlObjectType > TypeNames
associates object types with strings
void buildSelectionPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to (de)select the object.
static StringBijection< GUIGlObjectType >::Entry GUIGlObjectTypeNamesInitializer[]
GUIGlObject(GUIGlObjectType type, const std::string µsimID)
Constructor.
GUIGlObject & operator=(const GUIGlObject &)
Invalidated assignment operator.
std::set< GUIParameterTableWindow * > myParamWindows
Parameter table windows which refer to this object.
void setPrefix(const std::string &prefix)
const std::string & getFullName() const
Returns the full name appearing in the tool tip.
A window containing a gl-object's parameter.
void buildPopupHeader(GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
Builds the header.