VTK
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 "vtkImagingHybridModule.h" // For export macro
35 #include "vtkImageAlgorithm.h"
36 
37 class VTKIMAGINGHYBRID_EXPORT vtkTriangularTexture : public vtkImageAlgorithm
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
42 
47  static vtkTriangularTexture *New();
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() VTK_OVERRIDE {}
87 
89  void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) VTK_OVERRIDE;
90 
91  int XSize;
92  int YSize;
93  double ScaleFactor;
94 
95  int TexturePattern;
96 private:
97  vtkTriangularTexture(const vtkTriangularTexture&) VTK_DELETE_FUNCTION;
98  void operator=(const vtkTriangularTexture&) VTK_DELETE_FUNCTION;
99 };
100 
101 #endif
102 
103 
Store vtkAlgorithm input/output information.
generate 2D triangular texture map
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
general representation of visualization data
Definition: vtkDataObject.h:58