VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
43 class VTKIMAGINGCORE_EXPORT vtkImageMapToColors : public vtkThreadedImageAlgorithm
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 
84 protected:
87 
88  virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *);
89 
90  void ThreadedRequestData(vtkInformation *request,
91  vtkInformationVector **inputVector,
92  vtkInformationVector *outputVector,
93  vtkImageData ***inData, vtkImageData **outData,
94  int extent[6], int id);
95 
96  virtual int RequestData(vtkInformation *request,
97  vtkInformationVector **inputVector,
98  vtkInformationVector *outputVector);
99 
100  vtkScalarsToColors *LookupTable;
102 
105 
107 private:
108  vtkImageMapToColors(const vtkImageMapToColors&); // Not implemented.
109  void operator=(const vtkImageMapToColors&); // Not implemented.
110 };
111 
112 #endif
113 
114 
115 
116 
117 
118 
119 
vtkScalarsToColors * LookupTable
void PrintSelf(ostream &os, vtkIndent indent)
Generic filter that has one input..
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
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)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkAlgorithm * New()