VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
33 #ifndef __vtkTriangularTexture_h
34 #define __vtkTriangularTexture_h
35 
36 #include "vtkImagingHybridModule.h" // For export macro
37 #include "vtkImageAlgorithm.h"
38 
39 class VTKIMAGINGHYBRID_EXPORT vtkTriangularTexture : public vtkImageAlgorithm
40 {
41 public:
42  vtkTypeMacro(vtkTriangularTexture,vtkImageAlgorithm);
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
47  static vtkTriangularTexture *New();
48 
50 
51  vtkSetMacro(ScaleFactor,double);
52  vtkGetMacro(ScaleFactor,double);
54 
56 
57  vtkSetMacro(XSize,int);
58  vtkGetMacro(XSize,int);
60 
62 
63  vtkSetMacro(YSize,int);
64  vtkGetMacro(YSize,int);
66 
68 
70  vtkSetClampMacro(TexturePattern,int,1,3);
71  vtkGetMacro(TexturePattern,int);
73 
74 protected:
77 
78  virtual int RequestInformation (vtkInformation *, vtkInformationVector**, vtkInformationVector *);
79  virtual void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo);
80 
81  int XSize;
82  int YSize;
83  double ScaleFactor;
84 
86 private:
87  vtkTriangularTexture(const vtkTriangularTexture&); // Not implemented.
88  void operator=(const vtkTriangularTexture&); // Not implemented.
89 };
90 
91 #endif
92 
93 
generate 2D triangular texture map