This behavior manages showing up of a context menu with sensible pipeline related actions for changing color/visibility etc.
More...
#include <pqPipelineContextMenuBehavior.h>
Inherits QObject.
This behavior manages showing up of a context menu with sensible pipeline related actions for changing color/visibility etc.
when the user right-clicks on top of an object in the 3D view. Currently, it only supports views with proxies that vtkSMRenderViewProxy subclasses.
Definition at line 29 of file pqPipelineContextMenuBehavior.h.
◆ pqPipelineContextMenuBehavior()
pqPipelineContextMenuBehavior::pqPipelineContextMenuBehavior |
( |
QObject * |
parent = nullptr | ) |
|
◆ ~pqPipelineContextMenuBehavior()
pqPipelineContextMenuBehavior::~pqPipelineContextMenuBehavior |
( |
| ) |
|
|
override |
◆ onViewAdded
void pqPipelineContextMenuBehavior::onViewAdded |
( |
pqView * |
| ) |
|
|
protectedslot |
Called when a new view is added.
We add actions to the widget for context menu if the view is a render-view.
◆ buildMenu()
called to build the context menu for the given representation.
If the picked representation was a composite data set the block index of the selected block will be passed in blockIndex.
With introduction of vtkPartitionedDataSetCollection and vtkPartitionedDataSet, flatIndex is no longer consistent across ranks and hence rank is also returned. Unless dealing with these data types, rank can be ignored.
◆ eventFilter()
bool pqPipelineContextMenuBehavior::eventFilter |
( |
QObject * |
caller, |
|
|
QEvent * |
e |
|
) |
| |
|
overrideprotected |
event filter to capture the right-click.
We don't directly use mechanisms from QWidget to popup the context menu since all of those mechanism seem to eat away the right button release, leaving the render window in a dragging state.
◆ Menu
QMenu* pqPipelineContextMenuBehavior::Menu |
|
protected |
◆ Position
QPoint pqPipelineContextMenuBehavior::Position |
|
protected |
The documentation for this class was generated from the following file: