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 
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
pqContextView is an abstract base class for all charting views based on the VTK context charting libr...
Definition: pqContextView.h:19
virtual int getSelectionModifier()
Get the current state of selection modifier, if any.
virtual void updateEnableState()
Definition: pqReaction.h:48
SelectionMode
ParaView-specific selection modes.
#define PQAPPLICATIONCOMPONENTS_EXPORT
virtual void modifiersChanged()
called when modifier group is changed.
Generric reaction for creating selections on views.
Reaction for creating selections on chart views.