##

ModelRightMenu Class Reference

Displays a menu when the right mouse button has been pressed. More...

`#include <gui/gui.hh>`

Inherits QObject.

## Public Types

enum | EntityTypes { MODEL, LIGHT, LINK }
| Unique identifiers for the type of entity this menu is attached to. More...

## Public Member Functions

| ModelRightMenu ()
| Constructor. More...
virtual | ~ModelRightMenu ()
| Destructor. More...
bool | Init ()
| Initialize the right menu. More...
void | Run (const std::string &_entityName, const QPoint &_pt, EntityTypes _type=MODEL)
| Show the right menu. More...

## Detailed Description

Displays a menu when the right mouse button has been pressed.

## Member Enumeration Documentation

## EntityTypes

enum EntityTypes

Unique identifiers for the type of entity this menu is attached to.

Enumerator
MODEL | Model.
LIGHT | Light.
LINK | Link.

## Constructor & Destructor Documentation

## ModelRightMenu()

ModelRightMenu | ( |  | ) |

Constructor.

## ~ModelRightMenu()

virtual ~ModelRightMenu | ( |  | ) |

virtual

Destructor.

## Member Function Documentation

## Init()

bool Init | ( |  | ) |

Initialize the right menu.

Returns
  True on success.

## Run()

void Run | ( | const std::string & | _entityName,
|  | const QPoint & | _pt,
|  | EntityTypes | _type = `MODEL`
| ) |  |

Show the right menu.

Parameters

  [in] | _entityName | Name of the entity that is active.
  [in] | _pt | Point on the GUI that has received the right-click request.
  [in] | _type | Type of the entity clicked.

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

- ModelRightMenu.hh