VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkImplicitTextureCoords.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImplicitTextureCoords.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 =========================================================================*/
51 #ifndef __vtkImplicitTextureCoords_h
52 #define __vtkImplicitTextureCoords_h
53 
54 #include "vtkFiltersTextureModule.h" // For export macro
55 #include "vtkDataSetAlgorithm.h"
56 
57 class vtkImplicitFunction;
58 
59 class VTKFILTERSTEXTURE_EXPORT vtkImplicitTextureCoords : public vtkDataSetAlgorithm
60 {
61 public:
62  vtkTypeMacro(vtkImplicitTextureCoords,vtkDataSetAlgorithm);
63  void PrintSelf(ostream& os, vtkIndent indent);
64 
67  static vtkImplicitTextureCoords *New();
68 
70 
71  virtual void SetRFunction(vtkImplicitFunction*);
72  vtkGetObjectMacro(RFunction,vtkImplicitFunction);
74 
76 
77  virtual void SetSFunction(vtkImplicitFunction*);
78  vtkGetObjectMacro(SFunction,vtkImplicitFunction);
80 
82 
83  virtual void SetTFunction(vtkImplicitFunction*);
84  vtkGetObjectMacro(TFunction,vtkImplicitFunction);
86 
88 
90  vtkSetMacro(FlipTexture,int);
91  vtkGetMacro(FlipTexture,int);
92  vtkBooleanMacro(FlipTexture,int);
94 
95 protected:
98 
99  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
100 
101  vtkImplicitFunction *RFunction;
102  vtkImplicitFunction *SFunction;
103  vtkImplicitFunction *TFunction;
105 private:
106  vtkImplicitTextureCoords(const vtkImplicitTextureCoords&); // Not implemented.
107  void operator=(const vtkImplicitTextureCoords&); // Not implemented.
108 };
109 
110 #endif
111 
112 
generate 1D, 2D, or 3D texture coordinates based on implicit function(s)