VTK  9.2.5
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 =========================================================================*/
34 #ifndef vtkTriangularTexture_h
35 #define vtkTriangularTexture_h
36 
37 #include "vtkImageAlgorithm.h"
38 #include "vtkImagingHybridModule.h" // For export macro
39 
40 class VTKIMAGINGHYBRID_EXPORT vtkTriangularTexture : public vtkImageAlgorithm
41 {
42 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
51 
53 
56  vtkSetMacro(ScaleFactor, double);
57  vtkGetMacro(ScaleFactor, double);
59 
61 
64  vtkSetMacro(XSize, int);
65  vtkGetMacro(XSize, int);
67 
69 
72  vtkSetMacro(YSize, int);
73  vtkGetMacro(YSize, int);
75 
77 
83  vtkSetClampMacro(TexturePattern, int, 1, 3);
84  vtkGetMacro(TexturePattern, int);
86 
87 protected:
89  ~vtkTriangularTexture() override = default;
90 
93 
94  int XSize;
95  int YSize;
96  double ScaleFactor;
97 
99 
100 private:
102  void operator=(const vtkTriangularTexture&) = delete;
103 };
104 
105 #endif
general representation of visualization data
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:119
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...
~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.
static vtkTriangularTexture * New()
Instantiate object with XSize and YSize = 64; the texture pattern =1 (opaque at centroid); and the sc...
@ data
Definition: vtkX3D.h:321