Qt
ApplicationComponents
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
23
typedef
pqSelectionReaction
Superclass
;
24
25
public
:
29
enum
SelectionMode
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
vtkObject
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.
pqReaction::updateEnableState
virtual void updateEnableState()
Definition:
pqReaction.h:48
pqChartSelectionReaction::SelectionMode
SelectionMode
ParaView-specific selection modes.
Definition:
pqChartSelectionReaction.h:29
PQAPPLICATIONCOMPONENTS_EXPORT
#define PQAPPLICATIONCOMPONENTS_EXPORT
Definition:
pqApplicationComponentsModule.h:15
pqSelectionReaction::modifiersChanged
virtual void modifiersChanged()
called when modifier group is changed.
Definition:
pqSelectionReaction.h:37
vtkChart.h
pqSelectionReaction
Generric reaction for creating selections on views.
Definition:
pqSelectionReaction.h:16
pqChartSelectionReaction
Reaction for creating selections on chart views.
Definition:
pqChartSelectionReaction.h:20
pqSelectionReaction.h
Generated by
1.8.13 on Mon Dec 23 2024