This interface creates ParaView's default context menu in render views.
More...
#include <pqDefaultContextMenu.h>
|
| | pqDefaultContextMenu (QObject *parent=nullptr) |
| |
| | ~pqDefaultContextMenu () override |
| |
| int | priority () const override |
| | The priority is used to order calls to pqContextMenuInterface::contextMenu among all registered instances of pqContextMenuInterface. More...
|
| |
|
| bool | contextMenu (QMenu *menu, pqView *viewContext, const QPoint &viewPoint, pqRepresentation *dataContext, const QList< unsigned int > &dataBlockContext) const override |
| | Create ParaView's default context menu. More...
|
| |
| virtual bool | contextMenu (QMenu *menu, pqView *viewContext, const QPoint &viewPoint, pqRepresentation *dataContext, const QList< unsigned int > &dataBlockContext) const |
| | Create ParaView's default context menu. More...
|
| |
| virtual bool | contextMenu (QMenu *menu, pqView *viewContext, const QPoint &viewPoint, pqRepresentation *dataContext, const QStringList &dataBlockContext) const |
| | Create ParaView's default context menu. More...
|
| |
This interface creates ParaView's default context menu in render views.
It has priority 0, so you can modify the QMenu it creates by using a lower (negative) priority in your own custom interface. You can eliminate the default menu by assigning your custom interface a positive priority and have its contextMenu() method return true.
- See also
- pqPipelineContextMenuBehavior
Definition at line 30 of file pqDefaultContextMenu.h.
◆ pqDefaultContextMenu()
| pqDefaultContextMenu::pqDefaultContextMenu |
( |
QObject * |
parent = nullptr | ) |
|
◆ ~pqDefaultContextMenu()
| pqDefaultContextMenu::~pqDefaultContextMenu |
( |
| ) |
|
|
override |
◆ contextMenu() [1/3]
| bool pqDefaultContextMenu::contextMenu |
( |
QMenu * |
menu, |
|
|
pqView * |
viewContext, |
|
|
const QPoint & |
viewPoint, |
|
|
pqRepresentation * |
dataContext, |
|
|
const QList< unsigned int > & |
dataBlockContext |
|
) |
| const |
|
overridevirtual |
Create ParaView's default context menu.
It will always return false (i.e., allow lower-priority menus to append/modify its output).
Reimplemented from pqContextMenuInterface.
◆ priority()
| int pqDefaultContextMenu::priority |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ hide
| void pqDefaultContextMenu::hide |
( |
| ) |
|
|
protectedslot |
called to hide the representation.
◆ reprTypeChanged
| void pqDefaultContextMenu::reprTypeChanged |
( |
QAction * |
action | ) |
|
|
protectedslot |
called to change the representation type.
◆ colorMenuTriggered
| void pqDefaultContextMenu::colorMenuTriggered |
( |
QAction * |
action | ) |
|
|
protectedslot |
called to change the coloring mode.
◆ showAllBlocks
| void pqDefaultContextMenu::showAllBlocks |
( |
| ) |
const |
|
protectedslot |
called to show all blocks.
◆ buildColorFieldsMenu()
called to build the color arrays submenu.
◆ contextMenu() [2/3]
| virtual bool pqContextMenuInterface::contextMenu |
Create ParaView's default context menu.
It will always return false (i.e., allow lower-priority menus to append/modify its output).
◆ contextMenu() [3/3]
| virtual bool pqContextMenuInterface::contextMenu |
Create ParaView's default context menu.
It will always return false (i.e., allow lower-priority menus to append/modify its output).
◆ Position
| QPoint pqDefaultContextMenu::Position |
|
mutableprotected |
◆ PickedRepresentation
The documentation for this class was generated from the following file: