pqRescaleScalarRangeReaction.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 pqRescaleScalarRangeReaction_h
5 #define pqRescaleScalarRangeReaction_h
6 
7 #include "pqReaction.h"
8 #include "vtkSmartPointer.h"
9 
10 #include <QPointer>
11 
16 class pqServer;
18 class vtkSMProxy;
19 
28 {
29  Q_OBJECT
30  typedef pqReaction Superclass;
31 
32 public:
33  enum Modes
34  {
38  VISIBLE
39  };
40 
46  QAction* parent, bool track_active_objects = true, Modes mode = DATA);
47  ~pqRescaleScalarRangeReaction() override;
48 
57  static bool rescaleScalarRangeToData(pqPipelineRepresentation* repr = nullptr);
58 
67  static pqRescaleScalarRangeToCustomDialog* rescaleScalarRangeToCustom(
68  pqPipelineRepresentation* repr = nullptr);
69 
79  static pqRescaleScalarRangeToCustomDialog* rescaleScalarRangeToCustom(
80  vtkSMProxy* tfProxy, bool separateOpacity = false);
81 
90  static pqRescaleScalarRangeToDataOverTimeDialog* rescaleScalarRangeToDataOverTime(
91  pqPipelineRepresentation* repr = nullptr);
92 
101  static bool rescaleScalarRangeToVisible(pqPipelineRepresentation* repr = nullptr);
102 
103 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
107  void updateEnableState() override;
108 
112  void setRepresentation(pqDataRepresentation* repr);
113 
114 protected:
118  void onTriggered() override;
119 
120 protected Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
121  virtual void onServerAdded(pqServer* server);
122  virtual void onAboutToRemoveServer(pqServer* server);
123 
124 private:
125  Q_DISABLE_COPY(pqRescaleScalarRangeReaction)
126  QPointer<pqPipelineRepresentation> Representation;
127  Modes Mode;
129 };
130 
131 #endif
pqDataRepresentation is the superclass for a display for a pqPipelineSource i.e.
pqRescaleScalarRangeToCustomDialog provides a dialog to be able to rescale the active lookup table&#39;s ...
virtual void updateEnableState()
Definition: pqReaction.h:48
This is PQ representation for a single display.
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
Reaction to rescale the active lookup table&#39;s range to match the active representation.
pqRescaleScalarRangeToDataOverTimeDialog provides a dialog to be able to rescale the active lookup ta...
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
virtual void onTriggered()
Called when the action is triggered.
Definition: pqReaction.h:46
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:35