Public Member Functions | Protected Member Functions | List of all members
pqPresetToPixmap Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ pqPresetToPixmap()

pqPresetToPixmap::pqPresetToPixmap ( QObject *  parent = nullptr)

◆ ~pqPresetToPixmap()

pqPresetToPixmap::~pqPresetToPixmap ( )
override

Member Function Documentation

◆ render()

QPixmap pqPresetToPixmap::render ( const Json::Value &  preset,
const QSize &  resolution 
) const

Render a preset to a pixmap for the given resolution.

◆ renderColorTransferFunction()

QPixmap pqPresetToPixmap::renderColorTransferFunction ( vtkScalarsToColors stc,
vtkPiecewiseFunction pf,
const QSize &  resolution 
) const
protected

Renders a color transfer function preset.

◆ renderIndexedColorTransferFunction()

QPixmap pqPresetToPixmap::renderIndexedColorTransferFunction ( vtkScalarsToColors stc,
const QSize &  resolution 
) const
protected

Renders a color transfer function preset.


The documentation for this class was generated from the following file: