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 "vtkDataSetAlgorithm.h"
44 
46 {
47 public:
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
55 
57 
59  vtkSetVector3Macro(Position,double);
60  vtkGetVectorMacro(Position,double,3);
62 
64 
66  void AddPosition(double deltaR, double deltaS, double deltaT);
67  void AddPosition(double deltaPosition[3]);
69 
71 
73  vtkSetVector3Macro(Scale,double);
74  vtkGetVectorMacro(Scale,double,3);
76 
78 
82  vtkSetVector3Macro(Origin,double);
83  vtkGetVectorMacro(Origin,double,3);
85 
87 
89  vtkSetMacro(FlipR,int);
90  vtkGetMacro(FlipR,int);
91  vtkBooleanMacro(FlipR,int);
93 
95 
97  vtkSetMacro(FlipS,int);
98  vtkGetMacro(FlipS,int);
99  vtkBooleanMacro(FlipS,int);
101 
103 
105  vtkSetMacro(FlipT,int);
106  vtkGetMacro(FlipT,int);
107  vtkBooleanMacro(FlipT,int);
109 
110 protected:
113 
115 
116  double Origin[3]; //point around which map rotates
117  double Position[3]; //controls translation of map
118  double Scale[3]; //scales the texture map
119  int FlipR; //boolean indicates whether to flip texture around r-axis
120  int FlipS; //boolean indicates whether to flip texture around s-axis
121  int FlipT; //boolean indicates whether to flip texture around t-axis
122 private:
123  vtkTransformTextureCoords(const vtkTransformTextureCoords&); // Not implemented.
124  void operator=(const vtkTransformTextureCoords&); // Not implemented.
125 };
126 
127 #endif
#define VTK_GRAPHICS_EXPORT
Store vtkAlgorithm input/output information.
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
transform (scale, rotate, translate) texture coordinates
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()