Public Types | Signals | Public Member Functions | List of all members
pqRenderViewSelectionReaction Class Reference

pqRenderViewSelectionReaction handles various selection modes available on RenderViews. More...

#include <pqRenderViewSelectionReaction.h>

Inheritance diagram for pqRenderViewSelectionReaction:
Inheritance graph
[legend]
Collaboration diagram for pqRenderViewSelectionReaction:
Collaboration graph
[legend]

Public Types

enum  SelectionMode {
  SELECT_SURFACE_CELLS, SELECT_SURFACE_POINTS, SELECT_FRUSTUM_CELLS, SELECT_FRUSTUM_POINTS,
  SELECT_SURFACE_CELLS_POLYGON, SELECT_SURFACE_POINTS_POLYGON, SELECT_BLOCKS, SELECT_CUSTOM_BOX,
  SELECT_CUSTOM_POLYGON, ZOOM_TO_BOX, CLEAR_SELECTION, GROW_SELECTION,
  SHRINK_SELECTION, SELECT_SURFACE_POINTDATA_INTERACTIVELY, SELECT_SURFACE_CELLDATA_INTERACTIVELY, SELECT_SURFACE_CELLS_INTERACTIVELY,
  SELECT_SURFACE_POINTS_INTERACTIVELY, SELECT_SURFACE_POINTS_TOOLTIP, SELECT_SURFACE_CELLS_TOOLTIP
}
 

Signals

void selectedCustomBox (int xmin, int ymin, int xmax, int ymax)
 
void selectedCustomBox (const int region[4])
 
void selectedCustomPolygon (vtkIntArray *polygon)
 

Public Member Functions

 pqRenderViewSelectionReaction (QAction *parentAction, pqRenderView *view, SelectionMode mode, QActionGroup *modifierGroup=NULL)
 If view is NULL, this reaction will track the active-view maintained by pqActiveObjects. More...
 
 ~pqRenderViewSelectionReaction () override
 
- Public Member Functions inherited from pqSelectionReaction
 pqSelectionReaction (QAction *parent, QActionGroup *modifierGroup=NULL)
 Constructor. More...
 
- Public Member Functions inherited from pqReaction
 pqReaction (QAction *parent, Qt::ConnectionType type=Qt::AutoConnection)
 Constructor. More...
 
 ~pqReaction () override
 
QAction * parentAction () const
 Provides access to the parent action. More...
 

Additional Inherited Members

- Protected Slots inherited from pqSelectionReaction
virtual void modifiersChanged ()
 called when modifier group is changed. More...
 
- Protected Slots inherited from pqReaction
virtual void onTriggered ()
 Called when the action is triggered. More...
 
virtual void updateEnableState ()
 
virtual void updateMasterEnableState (bool)
 
- Protected Member Functions inherited from pqSelectionReaction
virtual void uncheckSelectionModifiers ()
 Uncheck selection modifiers, if any. More...
 
virtual void disableSelectionModifiers (bool disable)
 Disable/Enable selection modifiers, if any. More...
 
- Protected Attributes inherited from pqSelectionReaction
QPointer< QActionGroup > ModifierGroup
 
- Protected Attributes inherited from pqReaction
bool IsMaster
 

Detailed Description

pqRenderViewSelectionReaction handles various selection modes available on RenderViews.

Simply create multiple instances of pqRenderViewSelectionReaction to handle selection modes for that RenderView. pqRenderViewSelectionReaction uses internal static members to ensure that at most 1 view (and 1 type of selection) is in selection-mode at any given time.

Definition at line 56 of file pqRenderViewSelectionReaction.h.

Member Enumeration Documentation

◆ SelectionMode

Enumerator
SELECT_SURFACE_CELLS 
SELECT_SURFACE_POINTS 
SELECT_FRUSTUM_CELLS 
SELECT_FRUSTUM_POINTS 
SELECT_SURFACE_CELLS_POLYGON 
SELECT_SURFACE_POINTS_POLYGON 
SELECT_BLOCKS 
SELECT_CUSTOM_BOX 
SELECT_CUSTOM_POLYGON 
ZOOM_TO_BOX 
CLEAR_SELECTION 
GROW_SELECTION 
SHRINK_SELECTION 
SELECT_SURFACE_POINTDATA_INTERACTIVELY 
SELECT_SURFACE_CELLDATA_INTERACTIVELY 
SELECT_SURFACE_CELLS_INTERACTIVELY 
SELECT_SURFACE_POINTS_INTERACTIVELY 
SELECT_SURFACE_POINTS_TOOLTIP 
SELECT_SURFACE_CELLS_TOOLTIP 

Definition at line 62 of file pqRenderViewSelectionReaction.h.

Constructor & Destructor Documentation

◆ pqRenderViewSelectionReaction()

pqRenderViewSelectionReaction::pqRenderViewSelectionReaction ( QAction *  parentAction,
pqRenderView view,
SelectionMode  mode,
QActionGroup *  modifierGroup = NULL 
)

If view is NULL, this reaction will track the active-view maintained by pqActiveObjects.

◆ ~pqRenderViewSelectionReaction()

pqRenderViewSelectionReaction::~pqRenderViewSelectionReaction ( )
override

Member Function Documentation

◆ selectedCustomBox [1/2]

void pqRenderViewSelectionReaction::selectedCustomBox ( int  xmin,
int  ymin,
int  xmax,
int  ymax 
)
signal

◆ selectedCustomBox [2/2]

void pqRenderViewSelectionReaction::selectedCustomBox ( const int  region[4])
signal

◆ selectedCustomPolygon

void pqRenderViewSelectionReaction::selectedCustomPolygon ( vtkIntArray polygon)
signal

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