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 
44 {
45 public:
46  static vtkImageMapToColors *New();
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
52  virtual void SetLookupTable(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 
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 
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 
#define VTK_LUMINANCE_ALPHA
Store vtkAlgorithm input/output information.
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:83
vtkScalarsToColors * LookupTable
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
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 vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:222
#define VTK_RGBA
#define VTK_RGB
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
#define vtkBooleanMacro(name, type)
Definition: vtkSetGet.h:234
#define vtkSetMacro(name, type)
Definition: vtkSetGet.h:69