VTK  9.1.0
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=========================================================================*/
28#ifndef vtkScalarsToTextureFilter_h
29#define vtkScalarsToTextureFilter_h
30
31#include "vtkFiltersTextureModule.h" // For export macro
33#include "vtkSmartPointer.h" // For smart pointer
34
35class vtkImageData;
36class vtkPolyData;
38
39class VTKFILTERSTEXTURE_EXPORT vtkScalarsToTextureFilter : public vtkPolyDataAlgorithm
40{
41public:
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
47
56
58
62 vtkGetMacro(UseTransferFunction, bool);
63 vtkSetMacro(UseTransferFunction, bool);
64 vtkBooleanMacro(UseTransferFunction, bool);
66
68
72 vtkSetVector2Macro(TextureDimensions, int);
73 vtkGetVector2Macro(TextureDimensions, int);
75
76protected:
78 ~vtkScalarsToTextureFilter() override = default;
79
80 int FillOutputPortInformation(int port, vtkInformation* info) override;
81 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
82 vtkInformationVector* outputVector) override;
84 vtkInformationVector* outputVector) override;
85
86private:
87 void operator=(const vtkScalarsToTextureFilter&) = delete;
89
91 int TextureDimensions[2];
92 bool UseTransferFunction = true;
93};
94#endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
a simple class to control print indentation
Definition: vtkIndent.h:113
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
Definition: vtkPolyData.h:195
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.