13 #ifndef mitkTransferFunction_h
14 #define mitkTransferFunction_h
20 #include <itkHistogram.h>
21 #include <itkObject.h>
22 #include <itkRGBPixel.h>
24 #include <vtkColorTransferFunction.h>
25 #include <vtkPiecewiseFunction.h>
26 #include <vtkSmartPointer.h>
63 itkFactorylessNewMacro(
Self);
68 itkSetMacro(Min,
int);
71 itkSetMacro(Max,
int);
74 itkGetMacro(Min,
int);
77 itkGetMacro(Max,
int);
80 itkGetMacro(ScalarOpacityFunction, vtkPiecewiseFunction *);
83 itkGetMacro(GradientOpacityFunction, vtkPiecewiseFunction *);
86 itkGetMacro(ColorTransferFunction, vtkColorTransferFunction *);
93 void InitializeByMitkImage(
const mitk::Image *image);
96 void InitializeByItkHistogram(
const itk::Statistics::Histogram<double> *histogram);
100 void InitializeHistogram(
const mitk::Image *image);
115 void AddScalarOpacityPoint(
double x,
double value);
118 void AddGradientOpacityPoint(
double x,
double value);
121 void AddRGBPoint(
double x,
double r,
double g,
double b);
134 int RemoveScalarOpacityPoint(
double x);
138 int RemoveGradientOpacityPoint(
double x);
141 int RemoveRGBPoint(
double x);
144 void ClearScalarOpacityPoints();
148 void ClearGradientOpacityPoints();
151 void ClearRGBPoints();
161 itk::LightObject::Pointer InternalClone()
const override;
163 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
181 mitk::HistogramGenerator::HistogramType::ConstPointer
m_Histogram;