50 #ifdef CHECK_MEMORY_LEAKS
52 #endif // CHECK_MEMORY_LEAKS
75 GUIGlObjectTypeNamesInitializer,
GLO_MAX);
82 myMicrosimID(microsimID),
83 myPrefix(TypeNames.getString(type)) {
91 myMicrosimID(microsimID),
101 (*i)->removeObject(
this);
119 new FXMenuSeparator(ret);
128 new FXMenuSeparator(ret);
138 new FXMenuSeparator(ret);
151 new FXMenuSeparator(ret);
160 new FXMenuSeparator(ret);
172 new FXMenuSeparator(ret);
181 new FXMenuSeparator(ret);
194 std::set<GUIParameterTableWindow*>::iterator i =
myParamWindows.find(t);
Copy cursor position - popup entry.
Copy object name - popup entry.
void buildNameCopyPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds entries which allow to copy the name / typed name into the clipboard.
Copy typed object name - popup entry.
GUIGlID myGlID
The numerical id of the object.
std::string createFullName() const
bool remove(GUIGlID id)
Removes the named object from this container.
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.
bool isSelected(GUIGlObjectType type, GUIGlID id)
Returns the information whether the object with the given type and id is selected.
static void drawText(const std::string &text, const Position &pos, const SUMOReal layer, const SUMOReal size, const RGBColor &col=RGBColor::BLACK, const SUMOReal angle=0)
draw Text with given parameters
void buildShowParamsPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to open the parameter window.
Add to selected items - menu entry.
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.
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
Center view to object - popup entry.
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.
static GUIGlObjectStorage gIDStorage
A single static instance of this class.
virtual ~GUIGlObject()
Destructor.
void addParameterTable(GUIParameterTableWindow *w)
Lets this object know a parameter window showing the object's values was opened.
Remove from selected items - Menu Etry.
void drawName(const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const
void buildShowManipulatorPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to open the manipulator window.
Show object parameter - popup entry.
void setMicrosimID(const std::string &newID)
Changes the microsimID of the object (happens in NETEDIT)
Copy cursor geo-coordinate position - popup entry.
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[]
static const GeoConvHelper & getFinal()
the coordinate transformation for writing the location element and for tracking the original coordina...
GUIGlID registerObject(GUIGlObject *object, const std::string &fullName)
Registers an object.
GUIGlObject(GUIGlObjectType type, const std::string µsimID)
Constructor.
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.
GUISelectedStorage gSelected
A global holder of selected objects.
A window containing a gl-object's parameter.
static FXIcon * getIcon(GUIIcon which)
void buildPopupHeader(GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
Builds the header.
Open the object's manipulator.