32 #ifndef pqPresetToPixmap_h 33 #define pqPresetToPixmap_h 35 #include "pqComponentsModule.h" 37 #include <QScopedPointer> 44 class vtkPiecewiseFunction;
45 class vtkScalarsToColors;
57 typedef QObject Superclass;
66 QPixmap render(
const Json::Value& preset,
const QSize& resolution)
const;
72 QPixmap renderColorTransferFunction(
73 vtkScalarsToColors* stc, vtkPiecewiseFunction* pf,
const QSize& resolution)
const;
78 QPixmap renderIndexedColorTransferFunction(
79 vtkScalarsToColors* stc,
const QSize& resolution)
const;
84 QScopedPointer<pqInternals> Internals;
pqPresetToPixmap is a helper class to generate QPixmap from a color/opacity preset.