#include <BackgroundRenderer.h>
Inheritance diagram for BackgroundRenderer:
Public Member Functions | |
BackgroundRenderer (const Data &aData) | |
virtual void | render (QPixmap *pixmap) |
Render data into a provided pixmap. | |
void | setDataIndex (int newIndex) |
index of additional data pieces | |
int | dataIndex () |
void | addTransferFunction (TransferFunc *aFunc) |
Adds a transfer function to use. | |
void | removeTransferFunction (TransferFunc *aFunc) |
Removes a transfer function from the renderer's list. | |
void | transferFunctionsChanged () |
Must be called when the threshold of a transfer function changes. | |
Protected Member Functions | |
QColor | applyTransferFunctions (float aDataValue) const |
Passes a data value through all the transfer functions to produce a color value. | |
Protected Attributes | |
std::vector< TransferFunc * > | mFunctions |
unsigned int | mDataIndex |
Set the desired data piece index using setDataIndex(). Colors are specified using transfer functions, between which they will be linearly interpolated.
|
|
|
Adds a transfer function to use.
|
|
Passes a data value through all the transfer functions to produce a color value. If no functions exist, this function falls back to creating an opaque greyscale value. |
|
|
|
Removes a transfer function from the renderer's list.
|
|
Render data into a provided pixmap. The size of the pixmap must be getImageSize(). Implements ARender. |
|
index of additional data pieces
|
|
Must be called when the threshold of a transfer function changes. This resorts our list of functions and sets the correct next and prev threshold values. |
|
|
|
|