GDCM 3.0.24
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=========================================================================*/
30// .NAME vtkImageMapToWindowLevelColors2 - map the input image through a lookup table and window / level it
31// .SECTION Description
32// The vtkImageMapToWindowLevelColors2 filter will take an input image of any
33// valid scalar type, and map the first component of the image through a
34// lookup table. This resulting color will be modulated with value obtained
35// by a window / level operation. The result is an image of type
36// VTK_UNSIGNED_CHAR. If the lookup table is not set, or is set to NULL, then
37// the input data will be passed through if it is already of type
38// UNSIGNED_CHAR.
39//
40// .SECTION See Also
41// vtkLookupTable vtkScalarsToColors
42
43#ifndef VTKIMAGEMAPTOWINDOWLEVELCOLORS2_H
44#define VTKIMAGEMAPTOWINDOWLEVELCOLORS2_H
45
46#include "vtkgdcmModule.h"
47#include "vtkImageMapToColors.h"
48
49class VTKGDCM_EXPORT vtkImageMapToWindowLevelColors2 : public vtkImageMapToColors
50{
51public:
54 void PrintSelf(ostream& os, vtkIndent indent);
55
56 // Description:
57 // Set / Get the Window to use -> modulation will be performed on the
58 // color based on (S - (L - W/2))/W where S is the scalar value, L is
59 // the level and W is the window.
60 vtkSetMacro( Window, double );
61 vtkGetMacro( Window, double );
62
63 // Description:
64 // Set / Get the Level to use -> modulation will be performed on the
65 // color based on (S - (L - W/2))/W where S is the scalar value, L is
66 // the level and W is the window.
67 vtkSetMacro( Level, double );
68 vtkGetMacro( Level, double );
69
70protected:
73
74 virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
75 void ThreadedRequestData(vtkInformation *request,
76 vtkInformationVector **inputVector,
77 vtkInformationVector *outputVector,
78 vtkImageData ***inData, vtkImageData **outData,
79 int extent[6], int id);
80 virtual int RequestData(vtkInformation *request,
81 vtkInformationVector **inputVector,
82 vtkInformationVector *outputVector);
83
84 double Window;
85 double Level;
86
87private:
89 void operator=(const vtkImageMapToWindowLevelColors2&); // Not implemented.
90};
91
92#endif
Definition vtkImageMapToWindowLevelColors2.h:50
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkImageMapToWindowLevelColors2 * New()
void PrintSelf(ostream &os, vtkIndent indent)
double Window
Definition vtkImageMapToWindowLevelColors2.h:84
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
double Level
Definition vtkImageMapToWindowLevelColors2.h:85
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int id)
vtkTypeMacro(vtkImageMapToWindowLevelColors2, vtkImageMapToColors)