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