pqRescaleRange.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 
10 #ifndef pqRescaleRange_h
11 #define pqRescaleRange_h
12 
13 #include "vtkParaViewDeprecation.h" // for PARAVIEW_DEPRECATED_IN_5_12_0
14 
15 #include "pqComponentsModule.h"
16 #include <QDialog>
17 
18 class pqRescaleRangeForm;
19 
22  : public QDialog
23 {
24  Q_OBJECT
25 public:
26  pqRescaleRange(QWidget* parent = nullptr);
27  ~pqRescaleRange() override;
28 
29  // Get the minimum of the color map range
30  double minimum() const;
31 
32  // Get the maximum of the color map range
33  double maximum() const;
34 
35  // Show or hide the opacity controls
36  void showOpacityControls(bool show);
37 
38  // Get the minimum of the opacity map range
39  double opacityMinimum() const;
40 
41  // Get the maximum of the opacity map range
42  double opacityMaximum() const;
43 
44  // Initialize the range for the color map
45  void setRange(double min, double max);
46 
47  // Initialize the range for a separate opacity map, if the option is available
48  void setOpacityRange(double min, double max);
49 
50  bool lock() const { return this->Lock; }
51 
52 protected Q_SLOTS:
53  void validate();
54  void rescaleAndLock();
55 
56 protected: // NOLINT(readability-redundant-access-specifiers)
57  pqRescaleRangeForm* Form;
58  bool Lock;
59 };
60 
61 #endif
pqRescaleScalarRangeToCustomDialog provides a dialog to be able to rescale the active lookup table&#39;s ...
#define PARAVIEW_DEPRECATED_IN_5_12_0(reason)
#define PQCOMPONENTS_EXPORT
bool lock() const
pqRescaleRangeForm * Form
#define max(a, b)