VTK  9.4.20250103
vtkScalarsToTextureFilter.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
19#ifndef vtkScalarsToTextureFilter_h
20#define vtkScalarsToTextureFilter_h
21
22#include "vtkFiltersTextureModule.h" // For export macro
24#include "vtkSmartPointer.h" // For smart pointer
25
26VTK_ABI_NAMESPACE_BEGIN
27class vtkImageData;
28class vtkPolyData;
30
31class VTKFILTERSTEXTURE_EXPORT vtkScalarsToTextureFilter : public vtkPolyDataAlgorithm
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
48
50
54 vtkGetMacro(UseTransferFunction, bool);
55 vtkSetMacro(UseTransferFunction, bool);
56 vtkBooleanMacro(UseTransferFunction, bool);
58
60
64 vtkSetVector2Macro(TextureDimensions, int);
65 vtkGetVector2Macro(TextureDimensions, int);
67
68protected:
70 ~vtkScalarsToTextureFilter() override = default;
71
72 int FillOutputPortInformation(int port, vtkInformation* info) override;
73 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
74 vtkInformationVector* outputVector) override;
76 vtkInformationVector* outputVector) override;
77
78private:
79 void operator=(const vtkScalarsToTextureFilter&) = delete;
81
83 int TextureDimensions[2];
84 bool UseTransferFunction = true;
85};
86VTK_ABI_NAMESPACE_END
87#endif
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Superclass for mapping scalar values to colors.
generate texture coordinates and a texture image based on a scalar field
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetTransferFunction(vtkScalarsToColors *stc)
Set/Get a color transfer function.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
static vtkScalarsToTextureFilter * New()
~vtkScalarsToTextureFilter() override=default
vtkScalarsToColors * GetTransferFunction()
Set/Get a color transfer function.
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Hold a reference to a vtkObjectBase instance.