Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
pqSelectionReaction Class Reference

Generric reaction for creating selections on views. More...

#include <pqSelectionReaction.h>

Inheritance diagram for pqSelectionReaction:
Inheritance graph
Collaboration diagram for pqSelectionReaction:
Collaboration graph

Public Member Functions

 pqSelectionReaction (QAction *parent, QActionGroup *modifierGroup=nullptr)
 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...

Protected Slots

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

virtual int getSelectionModifier ()
 Get the current state of selection modifier, if any. More...
virtual void uncheckSelectionModifiers ()
 Uncheck selection modifiers, if any. More...
virtual void disableSelectionModifiers (bool disable)
 Disable/Enable selection modifiers, if any. More...

Protected Attributes

QPointer< QActionGroup > ModifierGroup
- Protected Attributes inherited from pqReaction
bool IsMaster

Detailed Description

Generric reaction for creating selections on views.

Definition at line 16 of file pqSelectionReaction.h.

Constructor & Destructor Documentation

◆ pqSelectionReaction()

pqSelectionReaction::pqSelectionReaction ( QAction *  parent,
QActionGroup *  modifierGroup = nullptr 


modifierGroup is used to determine selection modifier. If there's a non-nullptr checkedAction() in the group, we use that action's data() to determine the selection mode e.g. pqView::PVSELECTION_ADDITION, pqView::PVSELECTION_SUBTRACTION etc. If no QActionGroup is specified or no checked action is present, then the default mode of pqView::PVSELECTION_DEFAULT is used.

Member Function Documentation

◆ modifiersChanged

virtual void pqSelectionReaction::modifiersChanged ( )

called when modifier group is changed.

Definition at line 37 of file pqSelectionReaction.h.

◆ getSelectionModifier()

virtual int pqSelectionReaction::getSelectionModifier ( )

Get the current state of selection modifier, if any.

Reimplemented in pqRenderViewSelectionReaction.

◆ uncheckSelectionModifiers()

virtual void pqSelectionReaction::uncheckSelectionModifiers ( )

Uncheck selection modifiers, if any.

◆ disableSelectionModifiers()

virtual void pqSelectionReaction::disableSelectionModifiers ( bool  disable)

Disable/Enable selection modifiers, if any.

Member Data Documentation

◆ ModifierGroup

QPointer<QActionGroup> pqSelectionReaction::ModifierGroup

Definition at line 55 of file pqSelectionReaction.h.

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