Qt
Components
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
;
14
class
vtkPVTransferFunction2D
;
15
// class vtkPVDiscretizableColorTransferFunction;
16
23
class
PQCOMPONENTS_EXPORT
pqTransferFunction2DWidget
:
public
QWidget
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
pqTransferFunction2DWidget provides a widget that can edit control boxes in a 2D histogram to represe...
Definition:
pqTransferFunction2DWidget.h:23
vtkImageData
vtkPVTransferFunction2D
Defines a 2D transfer function for mapping to RGBA values for volume rendering.
Definition:
vtkPVTransferFunction2D.h:27
vtkChart
vtkType.h
Generated by
1.8.13 on Tue Jan 21 2025