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:
46  static vtkImageMapToColors *New();
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
52  virtual void SetLookupTable(vtkScalarsToColors*);
53  vtkGetObjectMacro(LookupTable,vtkScalarsToColors);
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 
96  void ThreadedRequestData(vtkInformation *request,
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 
#define VTK_LUMINANCE_ALPHA
Store vtkAlgorithm input/output information.
vtkScalarsToColors * LookupTable
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_LUMINANCE
Superclass for mapping scalar values to colors.
Generic filter that has one input..
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKIMAGINGCORE_EXPORT
map the input image through a lookup table
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
#define VTK_RGBA
#define VTK_RGB
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()