| 21 | namespace 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(), |
nothing calls this directly
no test coverage detected