63FXIMPLEMENT(
GUIGLObjectPopupMenu, FXMenuPane, GUIGLObjectPopupMenuMap, ARRAYNUMBER(GUIGLObjectPopupMenuMap))
76 myNetworkPosition(parent.getPositionInformation()),
77 myTestCoordinates((
toString(parent.getWindowCursorPosition().x() - 24.0) + " " +
toString(parent.getWindowCursorPosition().y() - 25.0))) {
86 myPopupType(popupType),
87 myNetworkPosition(parent->getPositionInformation()) {
102 if (child ==
nullptr) {
235 FXMenuCommand*
const mc =
dynamic_cast<FXMenuCommand*
>(item);
317 myApplication(nullptr),
@ MID_ADDSELECT
Add to selected items - menu entry.
@ MID_COPY_CURSOR_GEOPOSITION
Copy cursor geo-coordinate position - popup entry.
@ MID_CENTER
Center view to object - popup entry.
@ MID_COPY_TEST_COORDINATES
Copy test coordinates.
@ MID_SHOW_GEOPOSITION_ONLINE
Show the cursor geo-coordinate position online in GeoHack - popup entry.
@ MID_COPY_TYPED_NAME
Copy typed object name - popup entry.
@ MID_SHOWPARS_PARENT
Show object parent parameter - popup entry.
@ MID_COPY_EDGE_NAME
Copy edge name (for lanes only)
@ MID_COPY_CURSOR_POSITION
Copy cursor position - popup entry.
@ MID_SHOWPARS
Show object parameter - popup entry.
@ MID_COPY_NAME
Copy object name - popup entry.
@ MID_COPY_VIEW_GEOBOUNDARY
Copy view geo-coordinate boundary - popup entry.
@ MID_DELETE
delete item - menu entry
@ MID_SHOWTYPEPARS
Show object type parameter - popup entry.
@ MID_REMOVESELECT
Remove from selected items - Menu Entry.
GUISelectedStorage gSelected
A global holder of selected objects.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
A class that stores a 2D geometrical boundary.
double ymin() const
Returns minimum y-coordinate.
double xmin() const
Returns minimum x-coordinate.
double ymax() const
Returns maximum y-coordinate.
double xmax() const
Returns maximum x-coordinate.
const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
virtual void deleteGLObject()
delete GLObject (Currently used only in netedit)
virtual GUIParameterTableWindow * getTypeParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own type parameter window (optional)
const std::string & getFullName() const
virtual std::string getParentName() const
Returns the name of the parent object (if any)
GUIGlObject * getGLObjectParent()
notify object about popup menu removal
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
virtual void removedPopupMenu()
notify object about popup menu removal
virtual GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)=0
Returns an own parameter window.
GUIGlID getGlID() const
Returns the numerical id of the object.
const std::map< std::string, std::string > & getOnlineMaps() const
Boundary getVisibleBoundary() const
get visible boundary
virtual void centerTo(GUIGlID id, bool applyZoom, double zoomDist=20)
centers to the chosen artifact
void select(GUIGlID id, bool update=true)
Adds the object with the given id.
void deselect(GUIGlID id)
Deselects the object with the given id.
static void copyToClipboard(const FXApp &app, const std::string &text)
Copies the given text to clipboard.
static const GeoConvHelper & getFinal()
the coordinate transformation for writing the location element and for tracking the original coordina...
void cartesian2geo(Position &cartesian) const
Converts the given cartesian (shifted) position to its geo (lat/long) representation.
static FXint fxexecute(FXString link)
A point in 2D or 3D with translation and scaling methods.
double x() const
Returns the x-position.
double y() const
Returns the y-position.
static std::string replace(std::string str, const std::string &what, const std::string &by)
Replaces all occurrences of the second string by the third string within the first string.