84 myMicrosimID(microsimID),
85 myPrefix(TypeNames.getString(type)) {
102 (*i)->removeObject(
this);
162 GUIGlObject::getNode()
const {
168 GUIGlObject::setNode(osg::Node* node) {
179 new FXMenuSeparator(ret);
188 new FXMenuSeparator(ret);
195 new FXMenuCommand(ret,
"Copy name to clipboard", 0, ret,
MID_COPY_NAME);
198 new FXMenuSeparator(ret);
211 new FXMenuSeparator(ret);
220 new FXMenuSeparator(ret);
229 new FXMenuSeparator(ret);
241 new FXMenuSeparator(ret);
250 new FXMenuSeparator(ret);
263 std::set<GUIParameterTableWindow*>::iterator i =
myParamWindows.find(t);
Center view to object - popup entry.
void drawName(const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0) const
draw name of item
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
create full name
const std::string & getFullName() const
Stores the information about how to visualize structures.
virtual void drawGLAdditional(GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const
Draws additional, user-triggered visualisations.
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.
bool isSelected(GUIGlObjectType type, GUIGlID id)
Returns the information whether the object with the given type and id is selected.
void buildShowParamsPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to open the parameter window.
Copy cursor geo-coordinate position - popup 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.
void buildShowTypeParamsPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to open the type parameter window.
GUIGlID getGlID() const
Returns the numerical id of the object.
#define UNUSED_PARAMETER(x)
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
void removeParameterTable(GUIParameterTableWindow *w)
Lets this object know a parameter window showing the object's values was closed.
virtual GUIParameterTableWindow * getTypeParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own type parameter window (optional)
Remove from selected items - Menu Etry.
A point in 2D or 3D with translation and scaling methods.
std::string myMicrosimID
ID of GL object.
static GUIGlObjectStorage gIDStorage
A single static instance of this class.
virtual ~GUIGlObject()
Destructor.
void addParameterTable(GUIParameterTableWindow *w)
Copy typed object name - popup entry.
Show object parameter - popup entry.
Add to selected items - menu entry.
static std::string emptyString
An empty string.
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.
Copy cursor position - popup entry.
virtual void setMicrosimID(const std::string &newID)
Changes the microsimID of the object.
static StringBijection< GUIGlObjectType > TypeNames
associates object types with strings
virtual const std::string & getParentName() const
Returns the name of the parent object (if any)
static const GUIGlID INVALID_ID
void buildSelectionPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to (de)select the object.
static StringBijection< GUIGlObjectType >::Entry GUIGlObjectTypeNamesInitializer[]
LinkStates (Currently unused)
static const GeoConvHelper & getFinal()
the coordinate transformation for writing the location element and for tracking the original coordina...
std::string myPrefix
prefix of GL Object
std::string myFullName
full name of GL Object
Copy object name - popup entry.
GUIGlID registerObject(GUIGlObject *object, const std::string &fullName)
Registers an object.
Open the object's manipulator.
GUIGlObject(GUIGlObjectType type, const std::string µsimID)
Constructor.
static void drawText(const std::string &text, const Position &pos, const double layer, const double size, const RGBColor &col=RGBColor::BLACK, const double angle=0)
draw Text with given parameters
Show object type parameter - popup entry.
std::set< GUIParameterTableWindow * > myParamWindows
Parameter table windows which refer to this object.
void setPrefix(const std::string &prefix)
usually names are prefixed by a type-specific string. this method can be used to change the default ...
GUISelectedStorage gSelected
A global holder of selected objects.
A window containing a gl-object's parameter.
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
void buildPopupHeader(GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
Builds the header.