CustusX  2021.04.22-dev+develop.337f9
An IGT application
cx::ImageTF3D Class Reference

Handler for the transfer functions used in 3d image volumes. More...

#include <cxImageTF3D.h>

Inheritance diagram for cx::ImageTF3D:

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

Detailed Description

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.

Constructor & Destructor Documentation

cx::ImageTF3D::ImageTF3D ( )

Definition at line 41 of file cxImageTF3D.cpp.

Member Function Documentation

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.

void cx::ImageTF3D::internalsHaveChanged ( )

Reimplemented from cx::ImageTFData.

Definition at line 76 of file cxImageTF3D.cpp.

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