src
paraview-5.12
Qt
Components
pqPresetToPixmap.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 pqPresetToPixmap_h
5
#define pqPresetToPixmap_h
6
7
#include "pqComponentsModule.h"
8
#include <QObject>
9
#include <QScopedPointer>
10
#include <vtk_jsoncpp_fwd.h>
// for forward declarations
11
12
class
vtkPiecewiseFunction
;
13
class
vtkScalarsToColors
;
14
class
QPixmap;
15
class
QSize;
16
22
class
PQCOMPONENTS_EXPORT
pqPresetToPixmap
:
public
QObject
23
{
24
Q_OBJECT
25
typedef
QObject Superclass;
26
27
public
:
28
pqPresetToPixmap
(QObject* parent =
nullptr
);
29
~
pqPresetToPixmap
()
override
;
30
34
QPixmap render(
const
Json::Value& preset,
const
QSize&
resolution
)
const
;
35
36
protected
:
40
QPixmap renderColorTransferFunction(
41
vtkScalarsToColors
* stc,
vtkPiecewiseFunction
* pf,
const
QSize&
resolution
)
const
;
42
46
QPixmap renderIndexedColorTransferFunction(
47
vtkScalarsToColors
* stc,
const
QSize&
resolution
)
const
;
48
49
private
:
50
Q_DISABLE_COPY(
pqPresetToPixmap
)
51
class
pqInternals;
52
QScopedPointer<pqInternals> Internals;
53
};
54
55
#endif
resolution
resolution
pqPresetToPixmap
pqPresetToPixmap is a helper class to generate QPixmap from a color/opacity preset.
Definition:
pqPresetToPixmap.h:22
vtkScalarsToColors
vtkPiecewiseFunction
Generated by
1.8.17 on Wed Mar 27 2024