VTK  9.5.20251213
vtkImageResliceToColors.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
21
22#ifndef vtkImageResliceToColors_h
23#define vtkImageResliceToColors_h
24
25#include "vtkImageReslice.h"
26#include "vtkImagingCoreModule.h" // For export macro
27#include "vtkWrappingHints.h"
28
29VTK_ABI_NAMESPACE_BEGIN
31
32class VTKIMAGINGCORE_EXPORT VTK_MARSHALAUTO vtkImageResliceToColors : public vtkImageReslice
33{
34public:
37
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
49 virtual void SetLookupTable(vtkScalarsToColors* table);
50 vtkGetObjectMacro(LookupTable, vtkScalarsToColors);
52
54
57 vtkSetClampMacro(OutputFormat, int, VTK_LUMINANCE, VTK_RGBA);
58 vtkGetMacro(OutputFormat, int);
64
70 void SetBypass(vtkTypeBool bypass);
71 void BypassOn() { this->SetBypass(1); }
72 void BypassOff() { this->SetBypass(0); }
73 int GetBypass() { return this->Bypass; }
74
80
81protected:
84
89
90 int ConvertScalarInfo(int& scalarType, int& numComponents) override;
91
92 void ConvertScalars(void* inPtr, void* outPtr, int inputType, int inputNumComponents, int count,
93 int idX, int idY, int idZ, int threadId) override;
94
95private:
97 void operator=(const vtkImageResliceToColors&) = delete;
98};
99
100VTK_ABI_NAMESPACE_END
101#endif
vtkScalarsToColors * DefaultLookupTable
vtkMTimeType GetMTime() override
When determining the modified time of the filter, this checks the modified time of the transform and ...
void SetOutputFormatToRGB()
Set the output format, the default is RGBA.
static vtkImageResliceToColors * New()
int ConvertScalarInfo(int &scalarType, int &numComponents) override
This should be overridden by derived classes that operate on the interpolated data before it is place...
vtkScalarsToColors * LookupTable
virtual void SetLookupTable(vtkScalarsToColors *table)
Set a lookup table to apply to the data.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetOutputFormatToLuminanceAlpha()
Set the output format, the default is RGBA.
void SetOutputFormatToLuminance()
Set the output format, the default is RGBA.
void SetOutputFormatToRGBA()
Set the output format, the default is RGBA.
void SetBypass(vtkTypeBool bypass)
Bypass the color mapping operation and output the scalar values directly.
void ConvertScalars(void *inPtr, void *outPtr, int inputType, int inputNumComponents, int count, int idX, int idY, int idZ, int threadId) override
This should be overridden by derived classes that operate on the interpolated data before it is place...
~vtkImageResliceToColors() override
a simple class to control print indentation
Definition vtkIndent.h:108
Superclass for mapping scalar values to colors.
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_LUMINANCE_ALPHA
#define VTK_RGBA
#define VTK_RGB
#define VTK_LUMINANCE
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:322
#define VTK_MARSHALAUTO