Public Member Functions | Static Public Member Functions | Protected Slots | List of all members
pqChartSelectionReaction Class Reference

Reaction for creating selections on chart views. More...

#include <pqChartSelectionReaction.h>

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

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
 

Detailed Description

Reaction for creating selections on chart views.

Definition at line 45 of file pqChartSelectionReaction.h.

Constructor & Destructor Documentation

◆ pqChartSelectionReaction()

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.

Member Function Documentation

◆ startSelection()

static void pqChartSelectionReaction::startSelection ( pqContextView view,
int  selectionType,
int  selectionModifier 
)
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.

◆ triggered

virtual void pqChartSelectionReaction::triggered ( bool  )
protectedvirtualslot

Called when the action is triggered.

◆ stopSelection

void pqChartSelectionReaction::stopSelection ( )
protectedslot

stops selecting on the view

◆ modifiersChanged

void pqChartSelectionReaction::modifiersChanged ( )
overrideprotectedslot

called when modifier group is changed.

◆ getSelectionModifier

int pqChartSelectionReaction::getSelectionModifier ( )
overrideprotectedslot

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