pqEditScalarBarReaction.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 pqEditScalarBarReaction_h
5 #define pqEditScalarBarReaction_h
6 
7 #include "pqReaction.h"
8 
9 #include <QPointer>
10 
13 
25 {
26  Q_OBJECT
27  typedef pqReaction Superclass;
28 
29 public:
30  pqEditScalarBarReaction(QAction* parent = nullptr, bool track_active_objects = true);
31  ~pqEditScalarBarReaction() override;
32 
33 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
35 
41  void setRepresentation(pqDataRepresentation*, int selectedPropertiesType);
43  {
44  this->setRepresentation(repr, 0 /*Representation*/);
45  }
47 
51  void setScalarBarVisibilityReaction(pqScalarBarVisibilityReaction* reaction);
52 
56  bool editScalarBar();
57 
58 protected Q_SLOTS:
63  void updateEnableState() override;
64 
68  void onTriggered() override;
69 
70 private:
71  Q_DISABLE_COPY(pqEditScalarBarReaction)
72 
73  QPointer<pqScalarBarVisibilityReaction> createDefaultScalarBarVisibilityReaction(
74  bool track_active_objects);
75 
76  QPointer<pqScalarBarVisibilityReaction> SBVReaction;
77 };
78 
79 #endif
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
Reaction to allow editing of scalar bar properties using a pqProxyWidgetDialog.
virtual void updateEnableState()
Definition: pqReaction.h:48
#define PQAPPLICATIONCOMPONENTS_EXPORT
Reaction to toggle scalar bar visibility.
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
void setRepresentation(pqDataRepresentation *repr)
Set the active representation.
virtual void onTriggered()
Called when the action is triggered.
Definition: pqReaction.h:46