VTK  9.1.0
vtkTriangularTexture.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkTriangularTexture.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 vtkTriangularTexture_h
32#define vtkTriangularTexture_h
33
34#include "vtkImageAlgorithm.h"
35#include "vtkImagingHybridModule.h" // For export macro
36
37class VTKIMAGINGHYBRID_EXPORT vtkTriangularTexture : public vtkImageAlgorithm
38{
39public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
48
50
53 vtkSetMacro(ScaleFactor, double);
54 vtkGetMacro(ScaleFactor, double);
56
58
61 vtkSetMacro(XSize, int);
62 vtkGetMacro(XSize, int);
64
66
69 vtkSetMacro(YSize, int);
70 vtkGetMacro(YSize, int);
72
74
80 vtkSetClampMacro(TexturePattern, int, 1, 3);
81 vtkGetMacro(TexturePattern, int);
83
84protected:
86 ~vtkTriangularTexture() override = default;
87
90
91 int XSize;
92 int YSize;
94
96
97private:
99 void operator=(const vtkTriangularTexture&) = delete;
100};
101
102#endif
general representation of visualization data
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:113
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.
@ data
Definition: vtkX3D.h:321