VTK  9.3.20240327
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
72 #ifndef vtkImageMapToWindowLevelColors_h
73 #define vtkImageMapToWindowLevelColors_h
74 
75 #include "vtkImageMapToColors.h"
76 #include "vtkImagingColorModule.h" // For export macro
77 
78 VTK_ABI_NAMESPACE_BEGIN
79 class VTKIMAGINGCOLOR_EXPORT vtkImageMapToWindowLevelColors : public vtkImageMapToColors
80 {
81 public:
84  void PrintSelf(ostream& os, vtkIndent indent) override;
85 
87 
92  vtkSetMacro(Window, double);
93  vtkGetMacro(Window, double);
95 
97 
102  vtkSetMacro(Level, double);
103  vtkGetMacro(Level, double);
105 
106 protected:
109 
112  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
113  int outExt[6], int id) override;
114  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
115  vtkInformationVector* outputVector) override;
116 
117  double Window;
118  double Level;
119 
120 private:
122  void operator=(const vtkImageMapToWindowLevelColors&) = delete;
123 };
124 
125 VTK_ABI_NAMESPACE_END
126 #endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:155
map the input image through a lookup table
Map an image through a lookup table and/or a window/level.
~vtkImageMapToWindowLevelColors() override
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,...
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.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
static vtkImageMapToWindowLevelColors * New()
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.