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 =========================================================================*/
34 #ifndef vtkImageMapToWindowLevelColors_h
35 #define vtkImageMapToWindowLevelColors_h
36 
37 
38 #include "vtkImagingColorModule.h" // For export macro
39 #include "vtkImageMapToColors.h"
40 
41 class VTKIMAGINGCOLOR_EXPORT vtkImageMapToWindowLevelColors : public vtkImageMapToColors
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
54  vtkSetMacro( Window, double );
55  vtkGetMacro( Window, double );
57 
59 
64  vtkSetMacro( Level, double );
65  vtkGetMacro( Level, double );
67 
68 protected:
71 
73  void ThreadedRequestData(vtkInformation *request,
74  vtkInformationVector **inputVector,
75  vtkInformationVector *outputVector,
76  vtkImageData ***inData, vtkImageData **outData,
77  int extent[6], int id) override;
78  int RequestData(vtkInformation *request,
79  vtkInformationVector **inputVector,
80  vtkInformationVector *outputVector) override;
81 
82  double Window;
83  double Level;
84 
85 private:
87  void operator=(const vtkImageMapToWindowLevelColors&) = delete;
88 };
89 
90 #endif
91 
92 
93 
94 
95 
96 
97 
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:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
map the input image through a lookup table
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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,...