Public Types | 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 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
 

Detailed Description

Reaction for creating selections on chart views.

Definition at line 20 of file pqChartSelectionReaction.h.

Member Enumeration Documentation

◆ SelectionMode

ParaView-specific selection modes.

Enumerator
CLEAR_SELECTION 

Definition at line 29 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. 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.

Member Function Documentation

◆ startSelection()

static void pqChartSelectionReaction::startSelection ( pqContextView view,
int  selectionType,
int  selectionModifier 
)
static

Start selection on the view where:

◆ 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

Get the current state of selection modifier, converting it to vtkScene enum.

◆ updateEnableState

void pqChartSelectionReaction::updateEnableState ( )
overrideprotectedslot

Handles enable state for CLEAR_SELECTION action.


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