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 
39 
40 class vtkScalarsToColors;
41 
43 {
44 public:
45  static vtkImageMapToColors *New();
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
51  virtual void SetLookupTable(vtkScalarsToColors*);
52  vtkGetObjectMacro(LookupTable,vtkScalarsToColors);
54 
56 
57  vtkSetMacro(OutputFormat,int);
58  vtkGetMacro(OutputFormat,int);
59  void SetOutputFormatToRGBA() { this->OutputFormat = VTK_RGBA; };
60  void SetOutputFormatToRGB() { this->OutputFormat = VTK_RGB; };
61  void SetOutputFormatToLuminanceAlpha() { this->OutputFormat = VTK_LUMINANCE_ALPHA; };
62  void SetOutputFormatToLuminance() { this->OutputFormat = VTK_LUMINANCE; };
64 
66 
67  vtkSetMacro(ActiveComponent,int);
68  vtkGetMacro(ActiveComponent,int);
70 
72 
75  vtkSetMacro(PassAlphaToOutput,int);
76  vtkBooleanMacro(PassAlphaToOutput,int);
77  vtkGetMacro(PassAlphaToOutput,int);
79 
81  virtual unsigned long GetMTime();
82 
83 protected:
86 
88 
89  void ThreadedRequestData(vtkInformation *request,
90  vtkInformationVector **inputVector,
91  vtkInformationVector *outputVector,
92  vtkImageData ***inData, vtkImageData **outData,
93  int extent[6], int id);
94 
95  virtual int RequestData(vtkInformation *request,
96  vtkInformationVector **inputVector,
97  vtkInformationVector *outputVector);
98 
101 
104 
106 private:
107  vtkImageMapToColors(const vtkImageMapToColors&); // Not implemented.
108  void operator=(const vtkImageMapToColors&); // Not implemented.
109 };
110 
111 #endif
112 
113 
114 
115 
116 
117 
118