Gazebo Gazebo

API Reference

3.15.2
EntityContextMenu Class Reference

A context menu providing actions that can be invoked on an entity. More...

#include <EntityContextMenu.hh>

Public Member Functions

 EntityContextMenu ()
 Constructor. More...
 
 ~EntityContextMenu () override
 Destructor. More...
 
Q_INVOKABLE void OnRemove (const QString &_data, const QString &_type)
 Callback when a context menu item is invoked. More...
 
Q_INVOKABLE void OnRequest (const QString &_request, const QString &_data)
 Callback when a context menu item is invoked. More...
 

Detailed Description

A context menu providing actions that can be invoked on an entity.

Constructor & Destructor Documentation

◆ EntityContextMenu()

Constructor.

◆ ~EntityContextMenu()

~EntityContextMenu ( )
override

Destructor.

Member Function Documentation

◆ OnRemove()

Q_INVOKABLE void OnRemove ( const QString &  _data,
const QString &  _type 
)

Callback when a context menu item is invoked.

Parameters
[in]_dataRequest data
[in]_typeEntity type

◆ OnRequest()

Q_INVOKABLE void OnRequest ( const QString &  _request,
const QString &  _data 
)

Callback when a context menu item is invoked.

Parameters
[in]_requestRequest type
[in]_dataRequest data

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