Gazebo Sim

API Reference

8.7.0
EntityContextMenuHandler Class Reference

#include <EntityContextMenuPlugin.hh>

Signals

void ContextMenuRequested (QString _entity, int _mouseX, int _mouseY)
 Signal fired when context menu event is triggered. More...
 

Public Member Functions

 EntityContextMenuHandler ()
 Constructor. More...
 
void HandleMouseContextMenu (const common::MouseEvent &_mouseEvent, const rendering::CameraPtr &_camera)
 Handle mouse event for context menu. More...
 

Constructor & Destructor Documentation

◆ EntityContextMenuHandler()

Constructor.

Member Function Documentation

◆ ContextMenuRequested

void ContextMenuRequested ( QString  _entity,
int  _mouseX,
int  _mouseY 
)
signal

Signal fired when context menu event is triggered.

Parameters
[in]_entityScoped name of entity.
[in]_mouseXX coordinate of the right click
[in]_mouseYY coordinate of the right click

◆ HandleMouseContextMenu()

void HandleMouseContextMenu ( const common::MouseEvent _mouseEvent,
const rendering::CameraPtr &  _camera 
)

Handle mouse event for context menu.

Parameters
[in]_mouseEventRight click mouse event
[in]_cameraUser camera

The documentation for this class was generated from the following file: