13 #ifndef __vtkMitkLevelWindowFilter_h
14 #define __vtkMitkLevelWindowFilter_h
16 class vtkScalarsToColors;
17 class vtkPiecewiseFunction;
18 #include <vtkImageData.h>
19 #include <vtkThreadedImageAlgorithm.h>
76 void ThreadedExecute(vtkImageData *inData, vtkImageData *outData,
int extent[6],
int id)
override;
80 vtkInformationVector **inputVector,
81 vtkInformationVector *outputVector)
override;
87 vtkScalarsToColors *m_LookupTable;
89 vtkPiecewiseFunction *m_OpacityFunction;
95 double m_ClippingBounds[4];
Applies the grayvalue or color/opacity level window to scalar or RGB(A) images.
static vtkMitkLevelWindowFilter * New()
vtkTypeMacro(vtkMitkLevelWindowFilter, vtkThreadedImageAlgorithm)
vtkMitkLevelWindowFilter()
void SetMinOpacity(double minOpacity)
Get/Set the lower window opacity for the alpha level window.
void SetClippingBounds(double *)
Set clipping bounds for the opaque part of the resliced 2d image.
void SetOpacityPiecewiseFunction(vtkPiecewiseFunction *opacityFunction)
Set the piecewise function used to map scalar to alpha component value (only used when the lookupTabl...
vtkScalarsToColors * GetLookupTable()
Get the lookup table for the RGB level window.
void SetMaxOpacity(double maxOpacity)
Get/Set the upper window opacity for the alpha level window.
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
double GetMaxOpacity() const
~vtkMitkLevelWindowFilter() override
vtkPiecewiseFunction * GetOpacityPiecewiseFunction()
Get the piecewise function used to map scalar to alpha component value (only used when the lookupTabl...
double GetMinOpacity() const
void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, int extent[6], int id) override
Method for threaded execution of the filter.
void SetLookupTable(vtkScalarsToColors *lookupTable)
Set the lookup table for the RGB level window.
vtkMTimeType GetMTime() override