45 #ifdef CHECK_MEMORY_LEAKS 47 #endif // CHECK_MEMORY_LEAKS 49 #define DEBUG_VEHICLE_GUI_SELECTION 1 68 FXIMPLEMENT(
GUIGLObjectPopupMenu, FXMenuPane, GUIGLObjectPopupMenuMap, ARRAYNUMBER(GUIGLObjectPopupMenuMap))
77 : FXMenuPane(&parent), myParent(&parent), myObject(&o),
78 myApplication(&app), myNetworkPosition(parent.getPositionInformation()) {
152 #ifdef DEBUG_VEHICLE_GUI_SELECTION
void cartesian2geo(Position &cartesian) const
Converts the given cartesian (shifted) position to its geo (lat/long) representation.
static void copyToClipboard(const FXApp &app, const std::string &text)
Copies the given text to clipboard.
Center view to object - popup entry.
virtual void centerTo(GUIGlID id, bool applyZoom, SUMOReal zoomDist=20)
centers to the chosen artifact
Copy edge name (for lanes only)
#define GEO_OUTPUT_ACCURACY
void select(GUIGlID id, bool update=true)
Adds the object with the given id.
const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
Copy typed object name - popup entry.
Show object type parameter - popup entry.
Remove from selected items - Menu Etry.
SUMOReal x() const
Returns the x-position.
GUIGlID getGlID() const
Returns the numerical id of the object.
std::string gDebugSelectedVehicle
virtual GUIParameterTableWindow * getTypeParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own type parameter window (optional)
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
Copy object name - popup entry.
A point in 2D or 3D with translation and scaling methods.
virtual GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)=0
Returns an own parameter window.
Show object parameter - popup entry.
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
virtual const std::string & getParentName() const
Returns the name of the parent object (if any)
void deselect(GUIGlID id)
Deselects the object with the given id.
Add to selected items - menu entry.
SUMOReal y() const
Returns the y-position.
static const GeoConvHelper & getFinal()
the coordinate transformation for writing the location element and for tracking the original coordina...
Copy cursor geo-coordinate position - popup entry.
const std::string & getFullName() const
Returns the full name appearing in the tool tip.
Copy cursor position - popup entry.
GUISelectedStorage gSelected
A global holder of selected objects.