Reaction for creating selections on chart views. More...
#include <pqChartSelectionReaction.h>
Public Member Functions | |
pqChartSelectionReaction (QAction *parent, pqContextView *view, QActionGroup *modifierGroup) | |
Constructor. More... | |
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... | |
Static Public Member Functions | |
static void | startSelection (pqContextView *view, int selectionType, int selectionModifier) |
start selection on the view where selectionType is one of vtkChart::SELECT_POLYGON, vtkChart::SELECT_RECTANGLE, etc., and selectionModifier is one of vtkContextScene::SELECTION_DEFAULT, vtkContextScene::SELECTION_ADDITION, etc. 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 |
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 45 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. 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 selectionType is one of vtkChart::SELECT_POLYGON, vtkChart::SELECT_RECTANGLE, etc., and selectionModifier is one of vtkContextScene::SELECTION_DEFAULT, vtkContextScene::SELECTION_ADDITION, etc.
|
protectedvirtualslot |
Called when the action is triggered.
|
protectedslot |
stops selecting on the view
|
overrideprotectedslot |
called when modifier group is changed.
|
overrideprotectedslot |