fw4spl
|
Helper to manage vtk data from fwData::TransferFunction. More...
#include <TransferFunction.hpp>
Static Public Member Functions | |
static FWVTKIO_API void | toVtkLookupTable (fwData::TransferFunction::csptr tf, vtkSmartPointer< vtkLookupTable > lt, bool allowTransparency=false, unsigned int size=256) |
Convert a fwData::TransferFunction to a vtkLookupTable. More... | |
static FWVTKIO_API void | toBWVtkLookupTable (double rangeMin, double rangeMax, vtkSmartPointer< vtkLookupTable > lt, unsigned int size=256) |
Convert the range of an Image or a TransferFunction to a black and white vtkLookupTable. More... | |
Helper to manage vtk data from fwData::TransferFunction.
Definition at line 26 of file SrcLib/io/fwVtkIO/include/fwVtkIO/helper/TransferFunction.hpp.
|
static |
Convert the range of an Image or a TransferFunction to a black and white vtkLookupTable.
[in] | rangeMin | |
[in] | rangeMax | |
[in] | size | lookup table size |
[out] | lt | vtkLookupTable |
Definition at line 57 of file SrcLib/io/fwVtkIO/src/fwVtkIO/helper/TransferFunction.cpp.
References SLM_TRACE_FUNC.
|
static |
Convert a fwData::TransferFunction to a vtkLookupTable.
[in] | tf | fwData::TransferFunction |
[in] | allowTransparency | Enable conversion of fwData::TransferFunction alpha channel |
[in] | size | lookup table size |
[out] | lt | vtkLookupTable |
Definition at line 18 of file SrcLib/io/fwVtkIO/src/fwVtkIO/helper/TransferFunction.cpp.
References fwData::TransferFunction::TFColor::a, fwData::TransferFunction::TFColor::b, fwData::TransferFunction::TFColor::g, and fwData::TransferFunction::TFColor::r.
Referenced by visuVTKAdaptor::SImage::configuring().