pqRescaleScalarRangeToCustomDialog.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 
5 #ifndef pqRescaleScalarRangeCustomDialog_h
6 #define pqRescaleScalarRangeCustomDialog_h
7 
8 #include "pqComponentsModule.h"
9 
10 #include <QDialog>
11 #include <memory>
12 
13 class pqRescaleScalarRangeToCustomDialogForm;
14 
20 {
21  Q_OBJECT
22 public:
23  pqRescaleScalarRangeToCustomDialog(QWidget* parent = nullptr);
25 
29  double minimum() const;
30 
34  double maximum() const;
35 
39  void showOpacityControls(bool show);
40 
44  double opacityMinimum() const;
45 
49  double opacityMaximum() const;
50 
54  void setRange(double min, double max);
55 
60  void setOpacityRange(double min, double max);
61 
65  void setLock(bool lock);
66 
70  bool doLock() const;
71 
72 Q_SIGNALS:
76  void apply();
77 
78 protected Q_SLOTS:
83  void validate();
84 
88  void rescale();
89 
90 protected: // NOLINT(readability-redundant-access-specifiers)
91  std::unique_ptr<pqRescaleScalarRangeToCustomDialogForm> Form;
92 };
93 
94 #endif
pqRescaleScalarRangeToCustomDialog provides a dialog to be able to rescale the active lookup table&#39;s ...
#define PQCOMPONENTS_EXPORT
std::unique_ptr< pqRescaleScalarRangeToCustomDialogForm > Form
#define max(a, b)