VTK  9.1.0
vtkImageMapToWindowLevelColors.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageMapToWindowLevelColors.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
81 #ifndef vtkImageMapToWindowLevelColors_h
82 #define vtkImageMapToWindowLevelColors_h
83 
84 #include "vtkImageMapToColors.h"
85 #include "vtkImagingColorModule.h" // For export macro
86 
87 class VTKIMAGINGCOLOR_EXPORT vtkImageMapToWindowLevelColors : public vtkImageMapToColors
88 {
89 public:
92  void PrintSelf(ostream& os, vtkIndent indent) override;
93 
95 
100  vtkSetMacro(Window, double);
101  vtkGetMacro(Window, double);
103 
105 
110  vtkSetMacro(Level, double);
111  vtkGetMacro(Level, double);
113 
114 protected:
117 
120  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
121  int outExt[6], int id) override;
122  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
123  vtkInformationVector* outputVector) override;
124 
125  double Window;
126  double Level;
127 
128 private:
130  void operator=(const vtkImageMapToWindowLevelColors&) = delete;
131 };
132 
133 #endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
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:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.