VTK
vtkImageMapToWindowLevelColors.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageMapToWindowLevelColors.h
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 =========================================================================*/
45 #ifndef vtkImageMapToWindowLevelColors_h
46 #define vtkImageMapToWindowLevelColors_h
47 
48 
49 #include "vtkImagingColorModule.h" // For export macro
50 #include "vtkImageMapToColors.h"
51 
52 class VTKIMAGINGCOLOR_EXPORT vtkImageMapToWindowLevelColors : public vtkImageMapToColors
53 {
54 public:
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
65  vtkSetMacro( Window, double );
66  vtkGetMacro( Window, double );
68 
70 
75  vtkSetMacro( Level, double );
76  vtkGetMacro( Level, double );
78 
79 protected:
82 
84  void ThreadedRequestData(vtkInformation *request,
85  vtkInformationVector **inputVector,
86  vtkInformationVector *outputVector,
87  vtkImageData ***inData, vtkImageData **outData,
88  int extent[6], int id) override;
89  int RequestData(vtkInformation *request,
90  vtkInformationVector **inputVector,
91  vtkInformationVector *outputVector) override;
92 
93  double Window;
94  double Level;
95 
96 private:
98  void operator=(const vtkImageMapToWindowLevelColors&) = delete;
99 };
100 
101 #endif
102 
103 
104 
105 
106 
107 
108 
vtkImageMapToColors::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkImageMapToColors::New
static vtkImageMapToColors * New()
vtkImageMapToColors.h
vtkImageMapToColors
map the input image through a lookup table
Definition: vtkImageMapToColors.h:44
vtkImageMapToColors::RequestData
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkImageMapToWindowLevelColors
Map an image through a lookup table and/or a window/level.
Definition: vtkImageMapToWindowLevelColors.h:52
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkImageMapToWindowLevelColors::Window
double Window
Definition: vtkImageMapToWindowLevelColors.h:93
vtkImageMapToWindowLevelColors::Level
double Level
Definition: vtkImageMapToWindowLevelColors.h:94
vtkImageMapToColors::ThreadedRequestData
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int id) override
If the subclass does not define an Execute method, then the task will be broken up,...
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkImageMapToColors::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkX3D::extent
Definition: vtkX3D.h:345