|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Wrapper class for VTK scalar opacity, gradient opacity, and color transfer functions. More...
#include <mitkTransferFunctionInitializer.h>


Public Member Functions | |
| mitkClassMacroItkParent (TransferFunctionInitializer, itk::Object) | |
| Pointer | Clone () const |
| mitkNewMacro1Param (TransferFunctionInitializer, TransferFunction::Pointer) | |
| void | SetTransferFunction (TransferFunction::Pointer transferFunction) |
| Set the transfer function to be initialized. More... | |
| mitk::TransferFunction::Pointer | GetTransferFunction () |
| Return the currently held transfer function. More... | |
| void | SetTransferFunctionMode (int mode) |
| Set the transfer function preset mode and immediately apply it. More... | |
| void | InitTransferFunctionMode () |
| Initialize the transfer function according to the currently set mode. More... | |
Static Public Member Functions | |
| static Pointer | New () |
| static void | GetPresetNames (std::vector< std::string > &presetNames) |
| Populate a vector with the names of all available transfer function presets. More... | |
Protected Member Functions | |
| TransferFunctionInitializer (TransferFunction::Pointer transferFunction=nullptr) | |
| ~TransferFunctionInitializer () override | |
Wrapper class for VTK scalar opacity, gradient opacity, and color transfer functions.
Holds a copy of each of the three standard VTK transfer functions (scalar opacity, gradient opacity, color) and provides an interface for manipulating their control points. Each original function can be retrieved by a Get() method.
NOTE: Currently, transfer function initialization based on histograms or computed-tomography-presets is also provided by this class, but will likely be separated into a specific initializer class.
Definition at line 42 of file mitkTransferFunctionInitializer.h.
|
protected |
|
overrideprotected |
| Pointer mitk::TransferFunctionInitializer::Clone | ( | ) | const |
|
static |
Populate a vector with the names of all available transfer function presets.
| [out] | presetNames | Vector to be filled with preset name strings. |
| mitk::TransferFunction::Pointer mitk::TransferFunctionInitializer::GetTransferFunction | ( | ) |
Return the currently held transfer function.
| void mitk::TransferFunctionInitializer::InitTransferFunctionMode | ( | ) |
Initialize the transfer function according to the currently set mode.
| itk::ExceptionObject | if no transfer function has been set. |
| mitk::TransferFunctionInitializer::mitkClassMacroItkParent | ( | TransferFunctionInitializer | , |
| itk::Object | |||
| ) |
| mitk::TransferFunctionInitializer::mitkNewMacro1Param | ( | TransferFunctionInitializer | , |
| TransferFunction::Pointer | |||
| ) |
|
static |
| void mitk::TransferFunctionInitializer::SetTransferFunction | ( | TransferFunction::Pointer | transferFunction | ) |
Set the transfer function to be initialized.
| [in] | transferFunction | The transfer function to configure. |
| void mitk::TransferFunctionInitializer::SetTransferFunctionMode | ( | int | mode | ) |
Set the transfer function preset mode and immediately apply it.
Valid mode values correspond to the internal TransferFunctionMode enum (e.g., 0 for CT Default, 7 for MR Generic).
| [in] | mode | The preset index to apply. |