VTK: Imaging/Color/vtkImageMapToWindowLevelColors.h Source File

| 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
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:
52 static vtkImageMapToWindowLevelColors* New();
53 vtkTypeMacro(vtkImageMapToWindowLevelColors, vtkImageMapToColors);
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:
77 vtkImageMapToWindowLevelColors();
78 ~vtkImageMapToWindowLevelColors() override;
79
80 int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
81 void ThreadedRequestData(vtkInformation* request, vtkInformationVector** inputVector,
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:
91 vtkImageMapToWindowLevelColors(const vtkImageMapToWindowLevelColors&) = delete;
92 void operator=(const vtkImageMapToWindowLevelColors&) = delete;
93 };
94
95 VTK_ABI_NAMESPACE_END
96 #endif
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:52
vtkImageMapToColors
map the input image through a lookup table
Definition: vtkImageMapToColors.h:42
vtkImageMapToWindowLevelColors
Map an image through a lookup table and/or a window/level.
Definition: vtkImageMapToWindowLevelColors.h:50
vtkImageMapToWindowLevelColors::~vtkImageMapToWindowLevelColors
~vtkImageMapToWindowLevelColors() override
vtkImageMapToWindowLevelColors::ThreadedRequestData
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,...
vtkImageMapToWindowLevelColors::Level
double Level
Definition: vtkImageMapToWindowLevelColors.h:88
vtkImageMapToWindowLevelColors::vtkImageMapToWindowLevelColors
vtkImageMapToWindowLevelColors()
vtkImageMapToWindowLevelColors::Window
double Window
Definition: vtkImageMapToWindowLevelColors.h:87
vtkImageMapToWindowLevelColors::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkImageMapToWindowLevelColors::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageMapToWindowLevelColors::RequestData
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkImageMapToWindowLevelColors::New
static vtkImageMapToWindowLevelColors * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkImageMapToColors.h