MCPcopy Create free account
hub / github.com/MITK/MITK / TransferFunction

Method TransferFunction

Modules/Core/src/DataManagement/mitkTransferFunction.cpp:23–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace mitk
22{
23 TransferFunction::TransferFunction() : m_Min(0), m_Max(0)
24 {
25 m_ScalarOpacityFunction = vtkSmartPointer<vtkPiecewiseFunction>::New();
26 m_ColorTransferFunction = vtkSmartPointer<vtkColorTransferFunction>::New();
27 m_GradientOpacityFunction = vtkSmartPointer<vtkPiecewiseFunction>::New();
28
29 m_ScalarOpacityFunction->Initialize();
30 m_ScalarOpacityFunction->AddPoint(0, 1);
31
32 m_GradientOpacityFunction->Initialize();
33 m_GradientOpacityFunction->AddPoint(0, 1);
34
35 m_ColorTransferFunction->RemoveAllPoints();
36 m_ColorTransferFunction->SetColorSpaceToHSV();
37 m_ColorTransferFunction->AddRGBPoint(0, 1, 1, 1);
38 }
39
40 TransferFunction::TransferFunction(const TransferFunction &other)
41 : itk::Object(),

Callers

nothing calls this directly

Calls 7

RemoveAllPointsMethod · 0.80
AddRGBPointMethod · 0.80
DeepCopyMethod · 0.80
NewFunction · 0.50
InitializeMethod · 0.45
AddPointMethod · 0.45
NewMethod · 0.45

Tested by

no test coverage detected