1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkImageMapToWindowLevelColors2.h,v $
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
14 =========================================================================*/
15 // .NAME vtkImageMapToWindowLevelColors2 - map the input image through a lookup table and window / level it
16 // .SECTION Description
17 // The vtkImageMapToWindowLevelColors2 filter will take an input image of any
18 // valid scalar type, and map the first component of the image through a
19 // lookup table. This resulting color will be modulated with value obtained
20 // by a window / level operation. The result is an image of type
21 // VTK_UNSIGNED_CHAR. If the lookup table is not set, or is set to NULL, then
22 // the input data will be passed through if it is already of type
26 // vtkLookupTable vtkScalarsToColors
28 #ifndef __vtkImageMapToWindowLevelColors2_h
29 #define __vtkImageMapToWindowLevelColors2_h
32 #include "vtkImageMapToColors.h"
34 class VTK_IMAGING_EXPORT vtkImageMapToWindowLevelColors2 : public vtkImageMapToColors
37 static vtkImageMapToWindowLevelColors2 *New();
38 vtkTypeRevisionMacro(vtkImageMapToWindowLevelColors2,vtkImageMapToColors);
39 void PrintSelf(ostream& os, vtkIndent indent);
42 // Set / Get the Window to use -> modulation will be performed on the
43 // color based on (S - (L - W/2))/W where S is the scalar value, L is
44 // the level and W is the window.
45 vtkSetMacro( Window, double );
46 vtkGetMacro( Window, double );
49 // Set / Get the Level to use -> modulation will be performed on the
50 // color based on (S - (L - W/2))/W where S is the scalar value, L is
51 // the level and W is the window.
52 vtkSetMacro( Level, double );
53 vtkGetMacro( Level, double );
56 vtkImageMapToWindowLevelColors2();
57 ~vtkImageMapToWindowLevelColors2();
59 virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
60 void ThreadedRequestData(vtkInformation *request,
61 vtkInformationVector **inputVector,
62 vtkInformationVector *outputVector,
63 vtkImageData ***inData, vtkImageData **outData,
64 int extent[6], int id);
65 virtual int RequestData(vtkInformation *request,
66 vtkInformationVector **inputVector,
67 vtkInformationVector *outputVector);
73 vtkImageMapToWindowLevelColors2(const vtkImageMapToWindowLevelColors2&); // Not implemented.
74 void operator=(const vtkImageMapToWindowLevelColors2&); // Not implemented.