VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
39 
40 VTK_ABI_NAMESPACE_BEGIN
41 class VTKIMAGINGCOLOR_EXPORT VTK_MARSHALAUTO vtkImageMapToWindowLevelColors
42  : public vtkImageMapToColors
43 {
44 public:
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
50 
55  vtkSetMacro(Window, double);
56  vtkGetMacro(Window, double);
58 
60 
65  vtkSetMacro(Level, double);
66  vtkGetMacro(Level, double);
68 
69 protected:
72 
74  void ThreadedRequestData(vtkInformation* request, vtkInformationVector** inputVector,
75  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
76  VTK_FUTURE_CONST int outExt[6], int id) override;
77  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
78  vtkInformationVector* outputVector) override;
79 
80  double Window;
81  double Level;
82 
83 private:
85  void operator=(const vtkImageMapToWindowLevelColors&) = delete;
86 };
87 
88 VTK_ABI_NAMESPACE_END
89 #endif
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, VTK_FUTURE_CONST 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.
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:45
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.
#define VTK_MARSHALAUTO
static vtkImageMapToColors * New()