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:
47 
48  virtual void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
59 
61 
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
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkImageReslice.h
vtkImageResliceToColors::BypassOn
void BypassOn()
Definition: vtkImageResliceToColors.h:79
vtkImageResliceToColors::SetLookupTable
virtual void SetLookupTable(vtkScalarsToColors *table)
vtkgl::count
GLuint GLuint GLsizei count
Definition: vtkgl.h:11315
vtkImageResliceToColors::OutputFormat
int OutputFormat
Definition: vtkImageResliceToColors.h:94
vtkImageResliceToColors::SetOutputFormatToRGB
void SetOutputFormatToRGB()
Definition: vtkImageResliceToColors.h:66
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::table
GLenum GLsizei GLenum GLenum const GLvoid * table
Definition: vtkgl.h:11332
vtkImageResliceToColors::ConvertScalarInfo
int ConvertScalarInfo(int &scalarType, int &numComponents)
vtkImageResliceToColors::Bypass
int Bypass
Definition: vtkImageResliceToColors.h:95
VTK_LUMINANCE
#define VTK_LUMINANCE
Definition: vtkSystemIncludes.h:93
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkImageResliceToColors::GetMTime
unsigned long int GetMTime()
VTK_RGB
#define VTK_RGB
Definition: vtkSystemIncludes.h:95
vtkImageResliceToColors::vtkImageResliceToColors
vtkImageResliceToColors()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkImageReslice
Reslices a volume along a new set of axes.
Definition: vtkImageReslice.h:77
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition: vtkScalarsToColors.h:63
vtkImageResliceToColors::BypassOff
void BypassOff()
Definition: vtkImageResliceToColors.h:80
vtkImageResliceToColors::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
VTK_LUMINANCE_ALPHA
#define VTK_LUMINANCE_ALPHA
Definition: vtkSystemIncludes.h:94
vtkImageResliceToColors::SetOutputFormatToRGBA
void SetOutputFormatToRGBA()
Definition: vtkImageResliceToColors.h:64
vtkImageResliceToColors::LookupTable
vtkScalarsToColors * LookupTable
Definition: vtkImageResliceToColors.h:92
vtkImageResliceToColors::SetBypass
void SetBypass(int bypass)
vtkImageResliceToColors::SetOutputFormatToLuminanceAlpha
void SetOutputFormatToLuminanceAlpha()
Definition: vtkImageResliceToColors.h:68
vtkImageResliceToColors
Reslice and produce color scalars.
Definition: vtkImageResliceToColors.h:43
VTK_RGBA
#define VTK_RGBA
Definition: vtkSystemIncludes.h:96
vtkImageResliceToColors::New
static vtkImageResliceToColors * New()
vtkImageResliceToColors::SetOutputFormatToLuminance
void SetOutputFormatToLuminance()
Definition: vtkImageResliceToColors.h:70
vtkImagingCoreModule.h
VTKIMAGINGCORE_EXPORT
#define VTKIMAGINGCORE_EXPORT
Definition: vtkImagingCoreModule.h:15
vtkImageResliceToColors::GetBypass
int GetBypass()
Definition: vtkImageResliceToColors.h:81
vtkImageResliceToColors::ConvertScalars
void ConvertScalars(void *inPtr, void *outPtr, int inputType, int inputNumComponents, int count, int idX, int idY, int idZ, int threadId)
vtkImageResliceToColors::~vtkImageResliceToColors
~vtkImageResliceToColors()
vtkImageResliceToColors::DefaultLookupTable
vtkScalarsToColors * DefaultLookupTable
Definition: vtkImageResliceToColors.h:93