 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
118 myGLObjectType(type),
119 myMicrosimID(microsimID) {
129 i->removeObject(
this);
194 GUIGlObject::getNode()
const {
200 GUIGlObject::setNode(osg::Node* node) {
210 new FXMenuSeparator(ret);
219 new FXMenuSeparator(ret);
226 new FXMenuCommand(ret,
"Copy name to clipboard",
nullptr, ret,
MID_COPY_NAME);
229 new FXMenuSeparator(ret);
242 new FXMenuSeparator(ret);
251 new FXMenuSeparator(ret);
260 new FXMenuSeparator(ret);
272 new FXMenuSeparator(ret);
281 new FXMenuSeparator(ret);
294 std::set<GUIParameterTableWindow*>::iterator i =
myParamWindows.find(t);
318 new FXMenuCommand(ret, (
"type: " + type +
"").c_str(),
nullptr,
nullptr, 0);
319 new FXMenuSeparator(ret);
341 new FXMenuCommand(ret, (
"type: " + type +
"").c_str(),
nullptr,
nullptr, 0);
342 new FXMenuSeparator(ret);
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
#define UNUSED_PARAMETER(x)
static void drawTextSettings(const GUIVisualizationTextSettings &settings, const std::string &text, const Position &pos, const double scale, const double angle=0, const double layer=2048)
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.
virtual GUIParameterTableWindow * getTypeParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own type parameter window (optional)
bool remove(GUIGlID id)
Removes the named object from this container.
Copy cursor geo-coordinate position - popup entry.
void drawName(const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0) const
draw name of item
const std::string & getString(const T key) const
GUIGlID registerObject(GUIGlObject *object, const std::string &fullName)
Registers an object.
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.
static StringBijection< GUIGlObjectType >::Entry GUIGlObjectTypeNamesInitializer[]
LinkStates (Currently unused)
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
Copy object name - popup entry.
virtual const std::string getOptionalName() const
Returns the name of the object (default "")
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon
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
Add to selected items - menu entry.
std::string createFullName() const
create full name
GUIGlObject(GUIGlObjectType type, const std::string µsimID)
Constructor.
Copy cursor position - popup entry.
Center view to object - popup entry.
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.
static const GeoConvHelper & getFinal()
the coordinate transformation for writing the location element and for tracking the original coordina...
reserved GLO type to pack all RouteElements (note: In this case the sorting of GLO_<element> is impor...
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.
reserved GLO type to pack shapes
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.
Show object parameter - popup entry.
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
reserved GLO type to pack all netElements
static void removeObject(GUIGlObject &o)
Removes all instances that pass values from the object with the given id.
Open the object's manipulator.
void buildShowTypeParamsPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to open the type parameter window.
void buildShowParamsPopupEntry(GUIGLObjectPopupMenu *ret, bool addSeparator=true)
Builds an entry which allows to open the parameter window.
static GUIGlObjectStorage gIDStorage
A single static instance of this class.
static std::string emptyString
An empty string.
GUISelectedStorage gSelected
A global holder of selected objects.
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,...
reserved GLO type to pack all additionals
void addParameterTable(GUIParameterTableWindow *w)
virtual ~GUIGlObject()
Destructor.
Copy typed object name - popup entry.
Stores the information about how to visualize structures.
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
Show object type parameter - popup entry.
virtual std::string getParentName() const
Returns the name of the parent object (if any)
Remove from selected items - Menu Etry.
bool isSelected(GUIGlObjectType type, GUIGlID id)
Returns the information whether the object with the given type and id is selected.