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 =========================================================================*/
34 #ifndef vtkImageResliceToColors_h
35 #define vtkImageResliceToColors_h
36 
37 
38 #include "vtkImageReslice.h"
39 #include "vtkImagingCoreModule.h" // For export macro
40 
41 class vtkScalarsToColors;
42 
43 class VTKIMAGINGCORE_EXPORT vtkImageResliceToColors : public vtkImageReslice
44 {
45 public:
46  static vtkImageResliceToColors *New();
48 
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
59  virtual void SetLookupTable(vtkScalarsToColors *table);
60  vtkGetObjectMacro(LookupTable,vtkScalarsToColors);
62 
64 
67  vtkSetClampMacro(OutputFormat,int,VTK_LUMINANCE,VTK_RGBA);
68  vtkGetMacro(OutputFormat,int);
70  this->OutputFormat = VTK_RGBA; };
72  this->OutputFormat = VTK_RGB; };
74  this->OutputFormat = VTK_LUMINANCE_ALPHA; };
76  this->OutputFormat = VTK_LUMINANCE; };
78 
84  void SetBypass(int bypass);
85  void BypassOn() { this->SetBypass(1); }
86  void BypassOff() { this->SetBypass(0); }
87  int GetBypass() { return this->Bypass; }
88 
93  vtkMTimeType GetMTime() override;
94 
95 protected:
97  ~vtkImageResliceToColors() override;
98 
102  int Bypass;
103 
104  int ConvertScalarInfo(int &scalarType, int &numComponents) override;
105 
106  void ConvertScalars(void *inPtr, void *outPtr, int inputType,
107  int inputNumComponents, int count,
108  int idX, int idY, int idZ, int threadId) override;
109 
110 private:
112  void operator=(const vtkImageResliceToColors&) = delete;
113 };
114 
115 #endif
vtkImageReslice.h
vtkImageReslice::GetMTime
vtkMTimeType GetMTime() override
When determining the modified time of the filter, this check the modified time of the transform and m...
vtkImageResliceToColors::BypassOn
void BypassOn()
Definition: vtkImageResliceToColors.h:85
vtkImageResliceToColors::OutputFormat
int OutputFormat
Definition: vtkImageResliceToColors.h:101
vtkImageResliceToColors::SetOutputFormatToRGB
void SetOutputFormatToRGB()
Definition: vtkImageResliceToColors.h:71
vtkImageReslice::New
static vtkImageReslice * New()
vtkImageResliceToColors::Bypass
int Bypass
Definition: vtkImageResliceToColors.h:102
VTK_LUMINANCE
#define VTK_LUMINANCE
Definition: vtkSystemIncludes.h:84
vtkImageReslice::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageReslice::ConvertScalarInfo
virtual int ConvertScalarInfo(int &scalarType, int &numComponents)
This should be overridden by derived classes that operate on the interpolated data before it is place...
vtkImageReslice::ConvertScalars
virtual void ConvertScalars(void *inPtr, void *outPtr, int inputType, int inputNumComponents, int count, int idX, int idY, int idZ, int threadId)
This should be overridden by derived classes that operate on the interpolated data before it is place...
VTK_RGB
#define VTK_RGB
Definition: vtkSystemIncludes.h:86
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
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition: vtkScalarsToColors.h:66
vtkImageResliceToColors::BypassOff
void BypassOff()
Definition: vtkImageResliceToColors.h:86
VTK_LUMINANCE_ALPHA
#define VTK_LUMINANCE_ALPHA
Definition: vtkSystemIncludes.h:85
vtkImageResliceToColors::SetOutputFormatToRGBA
void SetOutputFormatToRGBA()
Definition: vtkImageResliceToColors.h:69
vtkImageResliceToColors::LookupTable
vtkScalarsToColors * LookupTable
Definition: vtkImageResliceToColors.h:99
vtkImageResliceToColors::SetOutputFormatToLuminanceAlpha
void SetOutputFormatToLuminanceAlpha()
Definition: vtkImageResliceToColors.h:73
vtkImageResliceToColors
Reslice and produce color scalars.
Definition: vtkImageResliceToColors.h:43
VTK_RGBA
#define VTK_RGBA
Definition: vtkSystemIncludes.h:87
vtkImageResliceToColors::SetOutputFormatToLuminance
void SetOutputFormatToLuminance()
Definition: vtkImageResliceToColors.h:75
vtkImageResliceToColors::GetBypass
int GetBypass()
Definition: vtkImageResliceToColors.h:87
vtkImageResliceToColors::DefaultLookupTable
vtkScalarsToColors * DefaultLookupTable
Definition: vtkImageResliceToColors.h:100
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:304