VTK
vtkImageMapToColors.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageMapToColors.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 =========================================================================*/
34 #ifndef vtkImageMapToColors_h
35 #define vtkImageMapToColors_h
36 
37 
38 #include "vtkImagingCoreModule.h" // For export macro
40 
41 class vtkScalarsToColors;
42 
44 {
45 public:
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
55 
57 
58  vtkSetMacro(OutputFormat,int);
59  vtkGetMacro(OutputFormat,int);
60  void SetOutputFormatToRGBA() { this->OutputFormat = VTK_RGBA; };
61  void SetOutputFormatToRGB() { this->OutputFormat = VTK_RGB; };
62  void SetOutputFormatToLuminanceAlpha() { this->OutputFormat = VTK_LUMINANCE_ALPHA; };
63  void SetOutputFormatToLuminance() { this->OutputFormat = VTK_LUMINANCE; };
65 
67 
68  vtkSetMacro(ActiveComponent,int);
69  vtkGetMacro(ActiveComponent,int);
71 
73 
76  vtkSetMacro(PassAlphaToOutput,int);
77  vtkBooleanMacro(PassAlphaToOutput,int);
78  vtkGetMacro(PassAlphaToOutput,int);
80 
82  virtual unsigned long GetMTime();
83 
85 
86  vtkSetVector4Macro(NaNColor, unsigned char);
87  vtkGetVector4Macro(NaNColor, unsigned char);
89 
90 protected:
93 
95 
97  vtkInformationVector **inputVector,
98  vtkInformationVector *outputVector,
99  vtkImageData ***inData, vtkImageData **outData,
100  int extent[6], int id);
101 
102  virtual int RequestData(vtkInformation *request,
103  vtkInformationVector **inputVector,
104  vtkInformationVector *outputVector);
105 
108 
111 
113 
114  unsigned char NaNColor[4];
115 private:
116  vtkImageMapToColors(const vtkImageMapToColors&); // Not implemented.
117  void operator=(const vtkImageMapToColors&); // Not implemented.
118 };
119 
120 #endif
121 
122 
123 
124 
125 
126 
127 
vtkImageMapToColors::vtkImageMapToColors
vtkImageMapToColors()
vtkImageMapToColors::SetOutputFormatToLuminance
void SetOutputFormatToLuminance()
Definition: vtkImageMapToColors.h:63
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkImageMapToColors::New
static vtkImageMapToColors * New()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkThreadedImageAlgorithm
Generic filter that has one input..
Definition: vtkThreadedImageAlgorithm.h:37
vtkImageMapToColors
map the input image through a lookup table
Definition: vtkImageMapToColors.h:44
vtkImageMapToColors::GetMTime
virtual unsigned long GetMTime()
vtkThreadedImageAlgorithm.h
vtkImageMapToColors::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkImageMapToColors::LookupTable
vtkScalarsToColors * LookupTable
Definition: vtkImageMapToColors.h:106
VTK_LUMINANCE
#define VTK_LUMINANCE
Definition: vtkSystemIncludes.h:93
vtkImageMapToColors::DataWasPassed
int DataWasPassed
Definition: vtkImageMapToColors.h:112
vtkImageMapToColors::ActiveComponent
int ActiveComponent
Definition: vtkImageMapToColors.h:109
vtkImageMapToColors::ThreadedRequestData
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int id)
vtkImageMapToColors::~vtkImageMapToColors
~vtkImageMapToColors()
vtkImageMapToColors::OutputFormat
int OutputFormat
Definition: vtkImageMapToColors.h:107
vtkImageMapToColors::SetOutputFormatToRGB
void SetOutputFormatToRGB()
Definition: vtkImageMapToColors.h:61
VTK_RGB
#define VTK_RGB
Definition: vtkSystemIncludes.h:95
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition: vtkScalarsToColors.h:63
vtkImageMapToColors::PassAlphaToOutput
int PassAlphaToOutput
Definition: vtkImageMapToColors.h:110
vtkImageMapToColors::SetLookupTable
virtual void SetLookupTable(vtkScalarsToColors *)
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkSetVector4Macro
#define vtkSetVector4Macro(name, type)
Definition: vtkSetGet.h:322
VTK_LUMINANCE_ALPHA
#define VTK_LUMINANCE_ALPHA
Definition: vtkSystemIncludes.h:94
vtkImageMapToColors::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkImageMapToColors::SetOutputFormatToLuminanceAlpha
void SetOutputFormatToLuminanceAlpha()
Definition: vtkImageMapToColors.h:62
VTK_RGBA
#define VTK_RGBA
Definition: vtkSystemIncludes.h:96
vtkImageMapToColors::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkImagingCoreModule.h
vtkX3D::extent
@ extent
Definition: vtkX3D.h:345
VTKIMAGINGCORE_EXPORT
#define VTKIMAGINGCORE_EXPORT
Definition: vtkImagingCoreModule.h:15
vtkGetVector4Macro
#define vtkGetVector4Macro(name, type)
Definition: vtkSetGet.h:341
vtkImageMapToColors::SetOutputFormatToRGBA
void SetOutputFormatToRGBA()
Definition: vtkImageMapToColors.h:60