VTK  9.3.0
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
42 #ifndef vtkImageMapToWindowLevelColors_h
43 #define vtkImageMapToWindowLevelColors_h
44 
45 #include "vtkImageMapToColors.h"
46 #include "vtkImagingColorModule.h" // For export macro
47 
48 VTK_ABI_NAMESPACE_BEGIN
49 class VTKIMAGINGCOLOR_EXPORT vtkImageMapToWindowLevelColors : public vtkImageMapToColors
50 {
51 public:
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
57 
62  vtkSetMacro(Window, double);
63  vtkGetMacro(Window, double);
65 
67 
72  vtkSetMacro(Level, double);
73  vtkGetMacro(Level, double);
75 
76 protected:
79 
82  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
83  int outExt[6], int id) override;
84  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
85  vtkInformationVector* outputVector) override;
86 
87  double Window;
88  double Level;
89 
90 private:
92  void operator=(const vtkImageMapToWindowLevelColors&) = delete;
93 };
94 
95 VTK_ABI_NAMESPACE_END
96 #endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:52
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:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.