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 "vtkImagingCoreModule.h" // For export macro
38 #include "vtkImageReslice.h"
39 
40 class vtkScalarsToColors;
41 
43 {
44 public:
45  static vtkImageResliceToColors *New();
47 
48  virtual void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
56  virtual void SetLookupTable(vtkScalarsToColors *table);
57  vtkGetObjectMacro(LookupTable,vtkScalarsToColors);
59 
61 
62  vtkSetClampMacro(OutputFormat,int,VTK_LUMINANCE,VTK_RGBA);
63  vtkGetMacro(OutputFormat,int);
65  this->OutputFormat = VTK_RGBA; };
67  this->OutputFormat = VTK_RGB; };
69  this->OutputFormat = VTK_LUMINANCE_ALPHA; };
71  this->OutputFormat = VTK_LUMINANCE; };
73 
75 
78  void SetBypass(int bypass);
79  void BypassOn() { this->SetBypass(1); }
80  void BypassOff() { this->SetBypass(0); }
81  int GetBypass() { return this->Bypass; }
83 
86  unsigned long int GetMTime();
87 
88 protected:
91 
95  int Bypass;
96 
97  int ConvertScalarInfo(int &scalarType, int &numComponents);
98 
99  void ConvertScalars(void *inPtr, void *outPtr, int inputType,
100  int inputNumComponents, int count,
101  int idX, int idY, int idZ, int threadId);
102 
103 private:
104  vtkImageResliceToColors(const vtkImageResliceToColors&); // Not implemented.
105  void operator=(const vtkImageResliceToColors&); // Not implemented.
106 };
107 
108 #endif
#define VTK_LUMINANCE_ALPHA
Reslice and produce color scalars.
virtual void ConvertScalars(void *inPtr, void *outPtr, int inputType, int inputNumComponents, int count, int idX, int idY, int idZ, int threadId)
unsigned long int GetMTime()
static vtkImageReslice * New()
#define VTK_LUMINANCE
Superclass for mapping scalar values to colors.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKIMAGINGCORE_EXPORT
vtkScalarsToColors * LookupTable
Reslices a volume along a new set of axes.
#define VTK_RGBA
#define VTK_RGB
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkScalarsToColors * DefaultLookupTable
virtual int ConvertScalarInfo(int &scalarType, int &numComponents)