pqChartSelectionReaction.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqChartSelectionReaction_h
5 #define pqChartSelectionReaction_h
6 
7 #include "pqSelectionReaction.h"
8 
9 #include "vtkChart.h" // for vtkChart::ACTION_TYPES_COUNT
10 
11 #include <QPointer> // for QPointer
12 
13 class pqContextView;
14 class vtkObject;
15 
20 class PQAPPLICATIONCOMPONENTS_EXPORT pqChartSelectionReaction : public pqSelectionReaction
21 {
22  Q_OBJECT
24 
25 public:
30  {
31  CLEAR_SELECTION = vtkChart::ACTION_TYPES_COUNT
32  };
33 
46  pqChartSelectionReaction(QAction* parent, pqContextView* view, QActionGroup* modifierGroup);
47 
55  static void startSelection(pqContextView* view, int selectionType, int selectionModifier);
56 
57 protected Q_SLOTS:
61  virtual void triggered(bool);
62 
66  void stopSelection();
67 
71  void modifiersChanged() override;
72 
76  int getSelectionModifier() override;
77 
81  void updateEnableState() override;
82 
83 private:
84  Q_DISABLE_COPY(pqChartSelectionReaction)
85  QPointer<pqContextView> View;
86 };
87 
88 #endif
pqChartSelectionReaction::SelectionMode
SelectionMode
ParaView-specific selection modes.
Definition: pqChartSelectionReaction.h:29
vtkChart.h
vtkObject
pqSelectionReaction::modifiersChanged
virtual void modifiersChanged()
called when modifier group is changed.
Definition: pqSelectionReaction.h:37
pqContextView
pqContextView is an abstract base class for all charting views based on the VTK context charting libr...
Definition: pqContextView.h:19
pqSelectionReaction::getSelectionModifier
virtual int getSelectionModifier()
Get the current state of selection modifier, if any.
pqSelectionReaction.h
pqSelectionReaction
Definition: pqSelectionReaction.h:16
pqReaction::updateEnableState
virtual void updateEnableState()
Definition: pqReaction.h:48
pqChartSelectionReaction
Definition: pqChartSelectionReaction.h:20