pqPresetToPixmap is a helper class to generate QPixmap from a color/opacity preset. More...
#include <pqPresetToPixmap.h>
Inherits QObject.
Public Member Functions | |
pqPresetToPixmap (QObject *parent=nullptr) | |
~pqPresetToPixmap () override | |
QPixmap | render (const Json::Value &preset, const QSize &resolution) const |
Render a preset to a pixmap for the given resolution. More... | |
Protected Member Functions | |
QPixmap | renderColorTransferFunction (vtkScalarsToColors *stc, vtkPiecewiseFunction *pf, const QSize &resolution) const |
Renders a color transfer function preset. More... | |
QPixmap | renderIndexedColorTransferFunction (vtkScalarsToColors *stc, const QSize &resolution) const |
Renders a color transfer function preset. More... | |
pqPresetToPixmap is a helper class to generate QPixmap from a color/opacity preset.
Use pqPresetToPixmap::render() to generate a QPixmap for a transfer function.
Definition at line 22 of file pqPresetToPixmap.h.
pqPresetToPixmap::pqPresetToPixmap | ( | QObject * | parent = nullptr | ) |
|
override |
Render a preset to a pixmap for the given resolution.
|
protected |
Renders a color transfer function preset.
|
protected |
Renders a color transfer function preset.