VTK  9.3.1
vtkImageMapToWindowLevelColors.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
33 #ifndef vtkImageMapToWindowLevelColors_h
34 #define vtkImageMapToWindowLevelColors_h
35 
36 #include "vtkImageMapToColors.h"
37 #include "vtkImagingColorModule.h" // For export macro
38 
39 VTK_ABI_NAMESPACE_BEGIN
40 class VTKIMAGINGCOLOR_EXPORT vtkImageMapToWindowLevelColors : public vtkImageMapToColors
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
48 
53  vtkSetMacro(Window, double);
54  vtkGetMacro(Window, double);
56 
58 
63  vtkSetMacro(Level, double);
64  vtkGetMacro(Level, double);
66 
67 protected:
70 
72  void ThreadedRequestData(vtkInformation* request, vtkInformationVector** inputVector,
73  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
74  int outExt[6], int id) override;
75  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
76  vtkInformationVector* outputVector) override;
77 
78  double Window;
79  double Level;
80 
81 private:
83  void operator=(const vtkImageMapToWindowLevelColors&) = delete;
84 };
85 
86 VTK_ABI_NAMESPACE_END
87 #endif
Store vtkAlgorithm input/output information.
Map an image through a lookup table and/or a window/level.
a simple class to control print indentation
Definition: vtkIndent.h:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int outExt[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.
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()