pqTransferFunction2DWidget.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 pqTransferFunction2DWidget_h
5 #define pqTransferFunction2DWidget_h
6 
7 #include "pqComponentsModule.h"
8 #include "vtkType.h"
9 #include <QWidget>
10 
11 // Forward declarations
12 class vtkChart;
13 class vtkImageData;
15 // class vtkPVDiscretizableColorTransferFunction;
16 
24 {
25  Q_OBJECT
26  typedef QWidget Superclass;
27 
28 public:
29  pqTransferFunction2DWidget(QWidget* parent = nullptr);
30  ~pqTransferFunction2DWidget() override;
31 
33 
36  vtkImageData* histogram() const;
37  virtual void setHistogram(vtkImageData*);
39 
41 
44  void initialize(vtkPVTransferFunction2D* tf2d);
45  bool isInitialized();
47 
51  vtkChart* chart() const;
52 
56  vtkPVTransferFunction2D* transferFunction() const;
57 
58 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
63  void render();
64 
65 Q_SIGNALS:
70  void transferFunctionModified();
71 
72 protected Q_SLOTS:
76  void showUsageStatus();
77 
78 private:
79  Q_DISABLE_COPY(pqTransferFunction2DWidget)
80 
81  class pqInternals;
82  pqInternals* Internals;
83 };
84 
85 #endif
pqTransferFunction2DWidget provides a widget that can edit control boxes in a 2D histogram to represe...
#define PQCOMPONENTS_EXPORT
Defines a 2D transfer function for mapping to RGBA values for volume rendering.