GDCM: vtkImageMapToWindowLevelColors2.h Source File

GDCM 3.2.8

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
49 class VTKGDCM_EXPORT vtkImageMapToWindowLevelColors2 : public vtkImageMapToColors
50{
51public:
52 static vtkImageMapToWindowLevelColors2 *New();
53 vtkTypeMacro(vtkImageMapToWindowLevelColors2,vtkImageMapToColors);
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:
71 vtkImageMapToWindowLevelColors2();
72 ~vtkImageMapToWindowLevelColors2();
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:
88 vtkImageMapToWindowLevelColors2(const vtkImageMapToWindowLevelColors2&); // Not implemented.
89 void operator=(const vtkImageMapToWindowLevelColors2&); // Not implemented.
90};
91
92#endif
vtkImageMapToWindowLevelColors2::~vtkImageMapToWindowLevelColors2
~vtkImageMapToWindowLevelColors2()
vtkImageMapToWindowLevelColors2::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkImageMapToWindowLevelColors2::New
static vtkImageMapToWindowLevelColors2 * New()
vtkImageMapToWindowLevelColors2::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkImageMapToWindowLevelColors2::Window
double Window
Definition vtkImageMapToWindowLevelColors2.h:84
vtkImageMapToWindowLevelColors2::vtkSetMacro
vtkSetMacro(Window, double)
vtkImageMapToWindowLevelColors2::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageMapToWindowLevelColors2::vtkGetMacro
vtkGetMacro(Level, double)
vtkImageMapToWindowLevelColors2::Level
double Level
Definition vtkImageMapToWindowLevelColors2.h:85
vtkImageMapToWindowLevelColors2::vtkSetMacro
vtkSetMacro(Level, double)
vtkImageMapToWindowLevelColors2::vtkGetMacro
vtkGetMacro(Window, double)
vtkImageMapToWindowLevelColors2::vtkImageMapToWindowLevelColors2
vtkImageMapToWindowLevelColors2()
vtkImageMapToWindowLevelColors2::ThreadedRequestData
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int id)
vtkImageMapToWindowLevelColors2::vtkTypeMacro
vtkTypeMacro(vtkImageMapToWindowLevelColors2, vtkImageMapToColors)