VTK
vtkTransformTextureCoords.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTransformTextureCoords.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 =========================================================================*/
40 #ifndef vtkTransformTextureCoords_h
41 #define vtkTransformTextureCoords_h
42 
43 #include "vtkFiltersTextureModule.h" // For export macro
44 #include "vtkDataSetAlgorithm.h"
45 
47 {
48 public:
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
56 
58 
60  vtkSetVector3Macro(Position,double);
61  vtkGetVectorMacro(Position,double,3);
63 
65 
67  void AddPosition(double deltaR, double deltaS, double deltaT);
68  void AddPosition(double deltaPosition[3]);
70 
72 
74  vtkSetVector3Macro(Scale,double);
75  vtkGetVectorMacro(Scale,double,3);
77 
79 
83  vtkSetVector3Macro(Origin,double);
84  vtkGetVectorMacro(Origin,double,3);
86 
88 
90  vtkSetMacro(FlipR,int);
91  vtkGetMacro(FlipR,int);
92  vtkBooleanMacro(FlipR,int);
94 
96 
98  vtkSetMacro(FlipS,int);
99  vtkGetMacro(FlipS,int);
100  vtkBooleanMacro(FlipS,int);
102 
104 
106  vtkSetMacro(FlipT,int);
107  vtkGetMacro(FlipT,int);
108  vtkBooleanMacro(FlipT,int);
110 
111 protected:
114 
116 
117  double Origin[3]; //point around which map rotates
118  double Position[3]; //controls translation of map
119  double Scale[3]; //scales the texture map
120  int FlipR; //boolean indicates whether to flip texture around r-axis
121  int FlipS; //boolean indicates whether to flip texture around s-axis
122  int FlipT; //boolean indicates whether to flip texture around t-axis
123 private:
124  vtkTransformTextureCoords(const vtkTransformTextureCoords&); // Not implemented.
125  void operator=(const vtkTransformTextureCoords&); // Not implemented.
126 };
127 
128 #endif
Store vtkAlgorithm input/output information.
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
transform (scale, rotate, translate) texture coordinates
Store zero or more vtkInformation instances.
#define VTKFILTERSTEXTURE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()