vtkgdcm
vtkImageMapToWindowLevelColors2.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: GDCM (Grassroots DICOM). A DICOM library
4 
5  Copyright (c) 2006-2011 Mathieu Malaterre
6  All rights reserved.
7  See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
14 /*=========================================================================
15 
16  Portions of this file are subject to the VTK Toolkit Version 3 copyright.
17 
18  Program: Visualization Toolkit
19  Module: $RCSfile: vtkImageMapToWindowLevelColors2.h,v $
20 
21  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
22  All rights reserved.
23  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
24 
25  This software is distributed WITHOUT ANY WARRANTY; without even
26  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
27  PURPOSE. See the above copyright notice for more information.
28 
29 =========================================================================*/
46 #ifndef VTKIMAGEMAPTOWINDOWLEVELCOLORS2_H
47 #define VTKIMAGEMAPTOWINDOWLEVELCOLORS2_H
48 
49 #include "vtkImageMapToColors.h"
50 
51 class VTK_EXPORT vtkImageMapToWindowLevelColors2 : public vtkImageMapToColors
52 {
53 public:
54  static vtkImageMapToWindowLevelColors2 *New();
55  vtkTypeMacro(vtkImageMapToWindowLevelColors2,vtkImageMapToColors);
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
59 
64  vtkSetMacro( Window, double );
65  vtkGetMacro( Window, double );
67 
69 
74  vtkSetMacro( Level, double );
75  vtkGetMacro( Level, double );
77 
78 protected:
81 
82  virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
83  void ThreadedRequestData(vtkInformation *request,
84  vtkInformationVector **inputVector,
85  vtkInformationVector *outputVector,
86  vtkImageData ***inData, vtkImageData **outData,
87  int extent[6], int id);
88  virtual int RequestData(vtkInformation *request,
89  vtkInformationVector **inputVector,
90  vtkInformationVector *outputVector);
91 
92  double Window;
93  double Level;
94 
95 private:
97  void operator=(const vtkImageMapToWindowLevelColors2&); // Not implemented.
98 };
99 
100 #endif
vtkImageMapToWindowLevelColors2::Window
double Window
Definition: vtkImageMapToWindowLevelColors2.h:92
vtkImageMapToWindowLevelColors2
map the input image through a lookup table and window / level it
Definition: vtkImageMapToWindowLevelColors2.h:51
vtkImageMapToWindowLevelColors2::Level
double Level
Definition: vtkImageMapToWindowLevelColors2.h:93