VTK  9.0.1
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 
37 class VTKIMAGINGHYBRID_EXPORT vtkTriangularTexture : public vtkImageAlgorithm
38 {
39 public:
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 
84 protected:
86  ~vtkTriangularTexture() override {}
87 
90 
91  int XSize;
92  int YSize;
93  double ScaleFactor;
94 
96 
97 private:
99  void operator=(const vtkTriangularTexture&) = delete;
100 };
101 
102 #endif
vtkTriangularTexture::TexturePattern
int TexturePattern
Definition: vtkTriangularTexture.h:95
vtkX3D::data
@ data
Definition: vtkX3D.h:321
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:38
vtkTriangularTexture::New
static vtkTriangularTexture * New()
Instantiate object with XSize and YSize = 64; the texture pattern =1 (opaque at centroid); and the sc...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkTriangularTexture::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:65
vtkTriangularTexture::~vtkTriangularTexture
~vtkTriangularTexture() override
Definition: vtkTriangularTexture.h:86
vtkTriangularTexture::YSize
int YSize
Definition: vtkTriangularTexture.h:92
vtkTriangularTexture
generate 2D triangular texture map
Definition: vtkTriangularTexture.h:38
vtkTriangularTexture::ScaleFactor
double ScaleFactor
Definition: vtkTriangularTexture.h:93
vtkTriangularTexture::ExecuteDataWithInformation
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:60
vtkTriangularTexture::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTriangularTexture::vtkTriangularTexture
vtkTriangularTexture()
vtkTriangularTexture::XSize
int XSize
Definition: vtkTriangularTexture.h:91