13 #ifndef MITK_TRANSFER_FUNCTION_H_HEADER_INCLUDED 14 #define MITK_TRANSFER_FUNCTION_H_HEADER_INCLUDED 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 *);
87 itkSetMacro(ColorTransferFunction, vtkSmartPointer<vtkColorTransferFunction>);
96 void InitializeByItkHistogram(
const itk::Statistics::Histogram<double> *histogram);
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;
vtkSmartPointer< vtkColorTransferFunction > m_ColorTransferFunction
vtkSmartPointer< vtkPiecewiseFunction > m_GradientOpacityFunction
The TransferFunction class A 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.
DataCollection - Class to facilitate loading/accessing structured data.
std::vector< std::pair< double, itk::RGBPixel< double > > > RGBControlPoints
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
mitk::HistogramGenerator::HistogramType::ConstPointer m_Histogram
#define mitkClassMacroItkParent(className, SuperClassName)
Image class for storing images.
vtkSmartPointer< vtkPiecewiseFunction > m_ScalarOpacityFunction
mitk::Image::Pointer image
itk::Statistics::Histogram< double > HistogramType
std::vector< std::pair< double, double > > ControlPoints