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 =========================================================================*/
31 #ifndef vtkImageMapToWindowLevelColors_h
32 #define vtkImageMapToWindowLevelColors_h
33 
34 
35 #include "vtkImagingColorModule.h" // For export macro
36 #include "vtkImageMapToColors.h"
37 
38 class VTKIMAGINGCOLOR_EXPORT vtkImageMapToWindowLevelColors : public vtkImageMapToColors
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
51  vtkSetMacro( Window, double );
52  vtkGetMacro( Window, double );
54 
56 
61  vtkSetMacro( Level, double );
62  vtkGetMacro( Level, double );
64 
65 protected:
68 
70  void ThreadedRequestData(vtkInformation *request,
71  vtkInformationVector **inputVector,
72  vtkInformationVector *outputVector,
73  vtkImageData ***inData, vtkImageData **outData,
74  int extent[6], int id) override;
75  int RequestData(vtkInformation *request,
76  vtkInformationVector **inputVector,
77  vtkInformationVector *outputVector) override;
78 
79  double Window;
80  double Level;
81 
82 private:
84  void operator=(const vtkImageMapToWindowLevelColors&) = delete;
85 };
86 
87 #endif
88 
89 
90 
91 
92 
93 
94 
Store vtkAlgorithm input/output information.
map the input image through a lookup table and window / level it
a simple class to control print indentation
Definition: vtkIndent.h:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
map the input image through a lookup table
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store zero or more vtkInformation instances.
static vtkImageMapToColors * New()
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, multiple threads will be spawned, and each thread will call this method.