VTK: Imaging/Hybrid/vtkTriangularTexture.h Source File

| VTK 9.3.1

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
28 VTK_ABI_NAMESPACE_BEGIN
29 class VTKIMAGINGHYBRID_EXPORT vtkTriangularTexture : public vtkImageAlgorithm
30 {
31 public:
32 vtkTypeMacro(vtkTriangularTexture, vtkImageAlgorithm);
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
39 static vtkTriangularTexture* New();
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
76 protected:
77 vtkTriangularTexture();
78 ~vtkTriangularTexture() override = default;
79
80 int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
81 void ExecuteDataWithInformation(vtkDataObject* data, vtkInformation* outInfo) override;
82
83 int XSize;
84 int YSize;
85 double ScaleFactor;
86
87 int TexturePattern;
88
89 private:
90 vtkTriangularTexture(const vtkTriangularTexture&) = delete;
91 void operator=(const vtkTriangularTexture&) = delete;
92 };
93
94 VTK_ABI_NAMESPACE_END
95 #endif
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:39
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkTriangularTexture
generate 2D triangular texture map
Definition: vtkTriangularTexture.h:30
vtkTriangularTexture::TexturePattern
int TexturePattern
Definition: vtkTriangularTexture.h:87
vtkTriangularTexture::vtkTriangularTexture
vtkTriangularTexture()
vtkTriangularTexture::ScaleFactor
double ScaleFactor
Definition: vtkTriangularTexture.h:85
vtkTriangularTexture::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkTriangularTexture::~vtkTriangularTexture
~vtkTriangularTexture() override=default
vtkTriangularTexture::ExecuteDataWithInformation
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
vtkTriangularTexture::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTriangularTexture::XSize
int XSize
Definition: vtkTriangularTexture.h:83
vtkTriangularTexture::New
static vtkTriangularTexture * New()
Instantiate object with XSize and YSize = 64; the texture pattern =1 (opaque at centroid); and the sc...
vtkTriangularTexture::YSize
int YSize
Definition: vtkTriangularTexture.h:84
vtkX3D::data
@ data
Definition: vtkX3D.h:315
vtkImageAlgorithm.h