EntityContextMenuPlugin.hh
This library is part of the Gazebo project.
EntityContextMenuHandler()
Constructor.
void OnContextMenuRequested(QString _entity, int _mouseX, int _mouseY)
Qt callback when context menu request is received.
void LoadConfig(const tinyxml2::XMLElement *_pluginElem) override
EntityContextMenuItem(QQuickItem *_parent=nullptr)
Constructor.
void HandleMouseContextMenu(const common::MouseEvent &_mouseEvent, const rendering::CameraPtr &_camera)
Handle mouse event for context menu.
void SetEntityContextMenuHandler(const EntityContextMenuHandler &_entityContextMenuHandler)
Set the entity context menu handler.
This plugin is in charge of showing the entity context menu when the right button is clicked on a vis...
Definition: EntityContextMenuPlugin.hh:37
A QQUickItem that manages the render window.
Definition: EntityContextMenuPlugin.hh:80
bool eventFilter(QObject *_obj, QEvent *_event) override
void ContextMenuRequested(QString _entity, int _mouseX, int _mouseY)
Signal fired when context menu event is triggered.
void openContextMenu(QString _entity, int _mouseX, int _mouseY)
Signal fired to open context menu Note that the function name needs to start with lowercase in order ...
Definition: EntityContextMenuPlugin.hh:58