VTK  9.4.20241227
vtkTriangularTexture.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
22#ifndef vtkTriangularTexture_h
23#define vtkTriangularTexture_h
24
25#include "vtkImageAlgorithm.h"
26#include "vtkImagingHybridModule.h" // For export macro
27
28VTK_ABI_NAMESPACE_BEGIN
29class VTKIMAGINGHYBRID_EXPORT vtkTriangularTexture : public vtkImageAlgorithm
30{
31public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
40
42
45 vtkSetMacro(ScaleFactor, double);
46 vtkGetMacro(ScaleFactor, double);
48
50
53 vtkSetMacro(XSize, int);
54 vtkGetMacro(XSize, int);
56
58
61 vtkSetMacro(YSize, int);
62 vtkGetMacro(YSize, int);
64
66
72 vtkSetClampMacro(TexturePattern, int, 1, 3);
73 vtkGetMacro(TexturePattern, int);
75
76protected:
78 ~vtkTriangularTexture() override = default;
79
82
83 int XSize;
84 int YSize;
86
88
89private:
91 void operator=(const vtkTriangularTexture&) = delete;
92};
93
94VTK_ABI_NAMESPACE_END
95#endif
general representation of visualization data
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
generate 2D triangular texture map
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
static vtkTriangularTexture * New()
Instantiate object with XSize and YSize = 64; the texture pattern =1 (opaque at centroid); and the sc...
~vtkTriangularTexture() override=default
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.