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 #include "vtkImageMapToColors.h"
46 #include "vtkImagingColorModule.h" // For export macro
47 
48 class VTKIMAGINGCOLOR_EXPORT vtkImageMapToWindowLevelColors : public vtkImageMapToColors
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
56 
61  vtkSetMacro(Window, double);
62  vtkGetMacro(Window, double);
64 
66 
71  vtkSetMacro(Level, double);
72  vtkGetMacro(Level, double);
74 
75 protected:
78 
80  void ThreadedRequestData(vtkInformation* request, vtkInformationVector** inputVector,
81  vtkInformationVector* outputVector, vtkImageData*** inData, vtkImageData** outData,
82  int extent[6], int id) override;
83  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
84  vtkInformationVector* outputVector) override;
85 
86  double Window;
87  double Level;
88 
89 private:
91  void operator=(const vtkImageMapToWindowLevelColors&) = delete;
92 };
93 
94 #endif
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:37
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:48
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:41
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkImageMapToWindowLevelColors::Window
double Window
Definition: vtkImageMapToWindowLevelColors.h:86
vtkImageMapToWindowLevelColors::Level
double Level
Definition: vtkImageMapToWindowLevelColors.h:87
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:64
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:351