CustusX
22.04-rc5
An IGT application
|
Handler for the transfer functions used in 3d image volumes. More...
#include <cxImageTF3D.h>
Public Member Functions | |
ImageTF3D () | |
ImageTF3DPtr | createCopy () |
vtkPiecewiseFunctionPtr | getOpacityTF () |
vtkColorTransferFunctionPtr | getColorTF () |
Public Member Functions inherited from cx::ImageTFData | |
ImageTFData () | |
virtual | ~ImageTFData () |
void | setAlpha (double val) |
range [0..1] More... | |
double | getAlpha () const |
void | setLLR (double val) |
range [scalarMin..scalarMax] More... | |
double | getLLR () const |
void | setWindow (double val) |
range [1..scalarMax-scalarMin] More... | |
double | getWindow () const |
void | setLevel (double val) |
range [scalarMin..scalarMax] More... | |
double | getLevel () const |
IntIntMap | getOpacityMap () |
ColorMap | getColorMap () |
void | resetAlpha (IntIntMap val) |
void | addAlphaPoint (int alphaPosition, int alphaValue) |
Add point to the opacity transfer function. More... | |
void | removeAlphaPoint (int alphaPosition) |
Remove point from the opacity transfer function. More... | |
void | moveAlphaPoint (int oldpos, int newpos, int alphaValue) |
void | resetColor (ColorMap val) |
void | addColorPoint (int colorPosition, QColor colorValue) |
Add point to the color transfer function. More... | |
void | removeColorPoint (int colorPosition) |
Remove point from the color transfer function. More... | |
void | moveColorPoint (int oldpos, int newpos, QColor colorValue) |
virtual void | addXml (QDomNode dataNode) |
adds xml information about the transferfunction and its variabels More... | |
virtual void | parseXml (QDomNode dataNode) |
Use a XML node to load data. More... | |
void | unsignedCT (bool onLoad) |
void | shift (int val) |
shift the transfter function index values by the input amount. Used for signed/unsigned conversion. More... | |
vtkColorTransferFunctionPtr | generateColorTF () const |
vtkPiecewiseFunctionPtr | generateOpacityTF () const |
Protected Member Functions | |
virtual void | internalsHaveChanged () |
Protected Member Functions inherited from cx::ImageTFData | |
void | deepCopy (ImageTFData *source) |
void | fillOpacityTFFromMap (vtkPiecewiseFunctionPtr tf) const |
void | fillColorTFFromMap (vtkColorTransferFunctionPtr tf) const |
void | shiftColor (int shift, double center, double scale) |
void | shiftOpacity (int shift) |
Additional Inherited Members | |
Signals inherited from cx::ImageTFData | |
void | transferFunctionsChanged () |
Protected Attributes inherited from cx::ImageTFData | |
IntIntMap | mOpacityMap |
ColorMap | mColorMap |
Handler for the transfer functions used in 3d image volumes.
Used by Image.
Set the basic lut using either setLut() or setColorPoint(), then modify it with window and level. Set the alpha channel using setAlphaPoint(), or override it by creating a opacity step function with LLR and Alpha.
The volume rendering classes can use the data by getting OpacityTF and ColorTF.
Created on: Jan 9, 2009 Author: christiana
Definition at line 51 of file cxImageTF3D.h.
cx::ImageTF3D::ImageTF3D | ( | ) |
Definition at line 41 of file cxImageTF3D.cpp.
ImageTF3DPtr cx::ImageTF3D::createCopy | ( | ) |
Definition at line 83 of file cxImageTF3D.cpp.
vtkColorTransferFunctionPtr cx::ImageTF3D::getColorTF | ( | ) |
Definition at line 100 of file cxImageTF3D.cpp.
vtkPiecewiseFunctionPtr cx::ImageTF3D::getOpacityTF | ( | ) |
Definition at line 90 of file cxImageTF3D.cpp.
|
protectedvirtual |
Reimplemented from cx::ImageTFData.
Definition at line 76 of file cxImageTF3D.cpp.