Reaction for creating selections on chart views. More...
#include <pqChartSelectionReaction.h>
Public Types | |
enum | SelectionMode { CLEAR_SELECTION = vtkChart::ACTION_TYPES_COUNT } |
ParaView-specific selection modes. More... | |
Public Member Functions | |
pqChartSelectionReaction (QAction *parent, pqContextView *view, QActionGroup *modifierGroup) | |
Constructor. More... | |
Public Member Functions inherited from pqSelectionReaction | |
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... | |
Static Public Member Functions | |
static void | startSelection (pqContextView *view, int selectionType, int selectionModifier) |
Start selection on the view where: More... | |
Protected Slots | |
virtual void | triggered (bool) |
Called when the action is triggered. More... | |
void | stopSelection () |
Stops selecting on the view. More... | |
void | modifiersChanged () override |
Called when modifier group is changed. More... | |
int | getSelectionModifier () override |
Get the current state of selection modifier, converting it to vtkScene enum. More... | |
void | updateEnableState () override |
Handles enable state for CLEAR_SELECTION action. More... | |
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) |
Additional Inherited Members | |
Protected Member Functions inherited from pqSelectionReaction | |
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 inherited from pqSelectionReaction | |
QPointer< QActionGroup > | ModifierGroup |
Protected Attributes inherited from pqReaction | |
bool | IsMaster |
Reaction for creating selections on chart views.
Definition at line 20 of file pqChartSelectionReaction.h.
ParaView-specific selection modes.
Enumerator | |
---|---|
CLEAR_SELECTION |
Definition at line 29 of file pqChartSelectionReaction.h.
pqChartSelectionReaction::pqChartSelectionReaction | ( | QAction * | parent, |
pqContextView * | view, | ||
QActionGroup * | modifierGroup | ||
) |
Constructor.
parent
is expected to have data() that indicates the selection type e.g. vtkChart::SELECT_RECTANGLE or vtkChart::SELECT_POLYGON. One can also use vtkChart::CLEAR_SELECTION to clear the current selection. QActionGroup modifierGroup
is used to determine selection modifier. If there's a non-null checkedAction() in the group, we use that action's data() to determine the selection mode e.g. vtkContextScene::SELECTION_ADDITION, vtkContextScene::SELECTION_SUBTRACTION etc. If no QActionGroup is specified or no checked action is present, then the default mode of vtkContextScene::SELECTION_DEFAULT is used.
|
static |
Start selection on the view where:
|
protectedvirtualslot |
Called when the action is triggered.
|
protectedslot |
Stops selecting on the view.
|
overrideprotectedslot |
Called when modifier group is changed.
|
overrideprotectedslot |
Get the current state of selection modifier, converting it to vtkScene enum.
|
overrideprotectedslot |
Handles enable state for CLEAR_SELECTION
action.