]> Creatis software - gdcm.git/blob - vtk/vtkImageMapToWindowLevelColors2.h
Fix mistypings
[gdcm.git] / vtk / vtkImageMapToWindowLevelColors2.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkImageMapToWindowLevelColors2.h,v $
5
6   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7   All rights reserved.
8   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
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.
13
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 
23 // UNSIGNED_CHAR.
24 //
25 // .SECTION See Also
26 // vtkLookupTable vtkScalarsToColors
27
28 #ifndef __vtkImageMapToWindowLevelColors2_h
29 #define __vtkImageMapToWindowLevelColors2_h
30
31
32 #include "vtkImageMapToColors.h"
33
34 class VTK_EXPORT vtkImageMapToWindowLevelColors2 : public vtkImageMapToColors
35 {
36 public:
37   static vtkImageMapToWindowLevelColors2 *New();
38   vtkTypeRevisionMacro(vtkImageMapToWindowLevelColors2,vtkImageMapToColors);
39   void PrintSelf(ostream& os, vtkIndent indent);
40
41   // Description:
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 );
47   
48   // Description:
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 );
54   
55 protected:
56   vtkImageMapToWindowLevelColors2();
57   ~vtkImageMapToWindowLevelColors2();
58
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);
68
69   double Window;
70   double Level;
71   
72 private:
73   vtkImageMapToWindowLevelColors2(const vtkImageMapToWindowLevelColors2&);  // Not implemented.
74   void operator=(const vtkImageMapToWindowLevelColors2&);  // Not implemented.
75 };
76
77 #endif
78
79
80
81
82
83
84