VTK
vtkImageResliceToColors.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageResliceToColors.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 =========================================================================*/
33 #ifndef __vtkImageResliceToColors_h
34 #define __vtkImageResliceToColors_h
35 
36 
37 #include "vtkImageReslice.h"
38 
39 class vtkScalarsToColors;
40 
42 {
43 public:
44  static vtkImageResliceToColors *New();
46 
47  virtual void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
55  virtual void SetLookupTable(vtkScalarsToColors *table);
56  vtkGetObjectMacro(LookupTable,vtkScalarsToColors);
58 
60 
61  vtkSetClampMacro(OutputFormat,int,VTK_LUMINANCE,VTK_RGBA);
62  vtkGetMacro(OutputFormat,int);
64  this->OutputFormat = VTK_RGBA; };
66  this->OutputFormat = VTK_RGB; };
68  this->OutputFormat = VTK_LUMINANCE_ALPHA; };
70  this->OutputFormat = VTK_LUMINANCE; };
72 
74 
77  void SetBypass(int bypass);
78  void BypassOn() { this->SetBypass(1); }
79  void BypassOff() { this->SetBypass(0); }
80  int GetBypass() { return this->Bypass; }
82 
85  unsigned long int GetMTime();
86 
87 protected:
90 
94  int Bypass;
95 
96  int ConvertScalarInfo(int &scalarType, int &numComponents);
97 
98  void ConvertScalars(void *inPtr, void *outPtr, int inputType,
99  int inputNumComponents, int count,
100  int idX, int idY, int idZ, int threadId);
101 
102 private:
103  vtkImageResliceToColors(const vtkImageResliceToColors&); // Not implemented.
104  void operator=(const vtkImageResliceToColors&); // Not implemented.
105 };
106 
107 #endif