13 #ifndef vtkMitkLevelWindowFilter_h
14 #define vtkMitkLevelWindowFilter_h
16 class vtkScalarsToColors;
17 class vtkPiecewiseFunction;
18 #include <vtkImageData.h>
19 #include <vtkThreadedImageAlgorithm.h>
131 void ThreadedExecute(vtkImageData *inData, vtkImageData *outData,
int extent[6],
int id)
override;
139 vtkInformationVector **inputVector,
140 vtkInformationVector *outputVector)
override;
146 vtkScalarsToColors *m_LookupTable;
148 vtkPiecewiseFunction *m_OpacityFunction;
154 double m_ClippingBounds[4];
Applies the gray-value or color/opacity level window to scalar or RGB(A) images.
static vtkMitkLevelWindowFilter * New()
Create a new instance of vtkMitkLevelWindowFilter.
vtkTypeMacro(vtkMitkLevelWindowFilter, vtkThreadedImageAlgorithm)
vtkMitkLevelWindowFilter()
Default constructor.
void SetMinOpacity(double minOpacity)
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 values to the alpha component.
vtkScalarsToColors * GetLookupTable()
Get the lookup table for the RGB level window.
void SetMaxOpacity(double maxOpacity)
Set the upper window opacity for the alpha level window.
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Standard VTK pipeline method to propagate output information.
double GetMaxOpacity() const
Get the upper window opacity for the alpha level window.
~vtkMitkLevelWindowFilter() override
Destructor.
vtkPiecewiseFunction * GetOpacityPiecewiseFunction()
Get the piecewise function used to map scalar values to the alpha component.
double GetMinOpacity() const
Get the lower window opacity for the alpha level window.
void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, int extent[6], int id) override
Threaded execution method that applies the level window to image data.
void SetLookupTable(vtkScalarsToColors *lookupTable)
Set the lookup table for the RGB level window.
vtkMTimeType GetMTime() override
Get the modification time, considering the lookup table's modification time.