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 "vtkgdcmModule.h"
50 #include "vtkImageMapToColors.h"
51 
52 class VTKGDCM_EXPORT vtkImageMapToWindowLevelColors2 : public vtkImageMapToColors
53 {
54 public:
56  vtkTypeMacro(vtkImageMapToWindowLevelColors2,vtkImageMapToColors);
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
60 
65  vtkSetMacro( Window, double );
66  vtkGetMacro( Window, double );
68 
70 
75  vtkSetMacro( Level, double );
76  vtkGetMacro( Level, double );
78 
79 protected:
82 
83  virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
84  void ThreadedRequestData(vtkInformation *request,
85  vtkInformationVector **inputVector,
86  vtkInformationVector *outputVector,
87  vtkImageData ***inData, vtkImageData **outData,
88  int extent[6], int id);
89  virtual int RequestData(vtkInformation *request,
90  vtkInformationVector **inputVector,
91  vtkInformationVector *outputVector);
92 
93  double Window;
94  double Level;
95 
96 private:
98  void operator=(const vtkImageMapToWindowLevelColors2&); // Not implemented.
99 };
100 
101 #endif
map the input image through a lookup table and window / level it
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent)
static vtkImageMapToWindowLevelColors2 * New()
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int id)