VTK  9.2.6
vtkScalarsToTextureFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkScalarsToTextureFilter.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=========================================================================*/
31#ifndef vtkScalarsToTextureFilter_h
32#define vtkScalarsToTextureFilter_h
33
34#include "vtkFiltersTextureModule.h" // For export macro
36#include "vtkSmartPointer.h" // For smart pointer
37
38class vtkImageData;
39class vtkPolyData;
41
42class VTKFILTERSTEXTURE_EXPORT vtkScalarsToTextureFilter : public vtkPolyDataAlgorithm
43{
44public:
47 void PrintSelf(ostream& os, vtkIndent indent) override;
48
50
59
61
65 vtkGetMacro(UseTransferFunction, bool);
66 vtkSetMacro(UseTransferFunction, bool);
67 vtkBooleanMacro(UseTransferFunction, bool);
69
71
75 vtkSetVector2Macro(TextureDimensions, int);
76 vtkGetVector2Macro(TextureDimensions, int);
78
79protected:
81 ~vtkScalarsToTextureFilter() override = default;
82
83 int FillOutputPortInformation(int port, vtkInformation* info) override;
84 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
85 vtkInformationVector* outputVector) override;
87 vtkInformationVector* outputVector) override;
88
89private:
90 void operator=(const vtkScalarsToTextureFilter&) = delete;
92
94 int TextureDimensions[2];
95 bool UseTransferFunction = true;
96};
97#endif
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:49
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.