fw4spl
fwVtkIO::helper::TransferFunction Class Reference

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

Detailed Description

Helper to manage vtk data from fwData::TransferFunction.

Definition at line 26 of file SrcLib/io/fwVtkIO/include/fwVtkIO/helper/TransferFunction.hpp.

Member Function Documentation

void fwVtkIO::helper::TransferFunction::toBWVtkLookupTable ( double  rangeMin,
double  rangeMax,
vtkSmartPointer< vtkLookupTable >  lt,
unsigned int  size = 256 
)
static

Convert the range of an Image or a TransferFunction to a black and white vtkLookupTable.

Parameters
[in]rangeMin
[in]rangeMax
[in]sizelookup table size
[out]ltvtkLookupTable

Definition at line 57 of file SrcLib/io/fwVtkIO/src/fwVtkIO/helper/TransferFunction.cpp.

References SLM_TRACE_FUNC.

void fwVtkIO::helper::TransferFunction::toVtkLookupTable ( fwData::TransferFunction::csptr  tf,
vtkSmartPointer< vtkLookupTable >  lt,
bool  allowTransparency = false,
unsigned int  size = 256 
)
static

Convert a fwData::TransferFunction to a vtkLookupTable.

Parameters
[in]tffwData::TransferFunction
[in]allowTransparencyEnable conversion of fwData::TransferFunction alpha channel
[in]sizelookup table size
[out]ltvtkLookupTable

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

+ Here is the caller graph for this function:


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