ParaView
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
pqPipelineContextMenuBehavior Class Reference

This behavior manages showing up of a context menu with sensible pipeline related actions for changing color/visibility etc. More...

#include <pqPipelineContextMenuBehavior.h>

List of all members.

Public Member Functions

 pqPipelineContextMenuBehavior (QObject *parent=0)
virtual ~pqPipelineContextMenuBehavior ()

Protected Slots

void onViewAdded (pqView *)
 Called when a new view is added.
void hide ()
 called to hide the representation.
void reprTypeChanged (QAction *action)
 called to change the representation type.
void colorMenuTriggered (QAction *action)
 called to change the coloring mode.

Protected Member Functions

virtual void buildMenu (pqDataRepresentation *repr)
 called to build the context menu for the given representation.
virtual void buildColorFieldsMenu (pqPipelineRepresentation *pipelineRepr, QMenu *menu)
 called to build the color arrays submenu.
virtual bool eventFilter (QObject *caller, QEvent *e)
 event filter to capture the right-click.

Protected Attributes

QMenu * Menu
QPoint Position
QPointer< pqDataRepresentationPickedRepresentation

Detailed Description

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 52 of file pqPipelineContextMenuBehavior.h.


Constructor & Destructor Documentation

pqPipelineContextMenuBehavior::pqPipelineContextMenuBehavior ( QObject *  parent = 0)
virtual pqPipelineContextMenuBehavior::~pqPipelineContextMenuBehavior ( ) [virtual]

Member Function Documentation

void pqPipelineContextMenuBehavior::onViewAdded ( pqView ) [protected, slot]

Called when a new view is added.

We add actions to the widget for context menu if the view is a render-view.

void pqPipelineContextMenuBehavior::hide ( ) [protected, slot]

called to hide the representation.

void pqPipelineContextMenuBehavior::reprTypeChanged ( QAction *  action) [protected, slot]

called to change the representation type.

void pqPipelineContextMenuBehavior::colorMenuTriggered ( QAction *  action) [protected, slot]

called to change the coloring mode.

virtual void pqPipelineContextMenuBehavior::buildMenu ( pqDataRepresentation repr) [protected, virtual]

called to build the context menu for the given representation.

virtual void pqPipelineContextMenuBehavior::buildColorFieldsMenu ( pqPipelineRepresentation pipelineRepr,
QMenu *  menu 
) [protected, virtual]

called to build the color arrays submenu.

virtual bool pqPipelineContextMenuBehavior::eventFilter ( QObject *  caller,
QEvent *  e 
) [protected, virtual]

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.


Member Data Documentation

Definition at line 88 of file pqPipelineContextMenuBehavior.h.

Definition at line 89 of file pqPipelineContextMenuBehavior.h.

Definition at line 90 of file pqPipelineContextMenuBehavior.h.


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