VTK
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 =========================================================================*/
42 #ifndef vtkImageMapToWindowLevelColors_h
43 #define vtkImageMapToWindowLevelColors_h
44 
45 
46 #include "vtkImagingColorModule.h" // For export macro
47 #include "vtkImageMapToColors.h"
48 
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 
81  void ThreadedRequestData(vtkInformation *request,
82  vtkInformationVector **inputVector,
83  vtkInformationVector *outputVector,
84  vtkImageData ***inData, vtkImageData **outData,
85  int extent[6], int id) override;
86  int RequestData(vtkInformation *request,
87  vtkInformationVector **inputVector,
88  vtkInformationVector *outputVector) override;
89 
90  double Window;
91  double Level;
92 
93 private:
95  void operator=(const vtkImageMapToWindowLevelColors&) = delete;
96 };
97 
98 #endif
99 
100 
101 
102 
103 
104 
105 
vtkImageMapToColors::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkImageMapToColors::New
static vtkImageMapToColors * New()
vtkImageMapToColors.h
vtkImageMapToColors
map the input image through a lookup table
Definition: vtkImageMapToColors.h:38
vtkImageMapToColors::RequestData
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkImageMapToWindowLevelColors
Map an image through a lookup table and/or a window/level.
Definition: vtkImageMapToWindowLevelColors.h:49
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkImageMapToWindowLevelColors::Window
double Window
Definition: vtkImageMapToWindowLevelColors.h:90
vtkImageMapToWindowLevelColors::Level
double Level
Definition: vtkImageMapToWindowLevelColors.h:91
vtkImageMapToColors::ThreadedRequestData
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int id) override
If the subclass does not define an Execute method, then the task will be broken up,...
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkImageMapToColors::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkX3D::extent
Definition: vtkX3D.h:345