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 =========================================================================*/
41 #ifndef vtkTransformTextureCoords_h
42 #define vtkTransformTextureCoords_h
43 
44 #include "vtkFiltersTextureModule.h" // For export macro
45 #include "vtkDataSetAlgorithm.h"
46 
47 class VTKFILTERSTEXTURE_EXPORT vtkTransformTextureCoords : public vtkDataSetAlgorithm
48 {
49 public:
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
58 
60 
64  vtkSetVector3Macro(Position,double);
65  vtkGetVectorMacro(Position,double,3);
67 
69 
73  void AddPosition(double deltaR, double deltaS, double deltaT);
74  void AddPosition(double deltaPosition[3]);
76 
78 
82  vtkSetVector3Macro(Scale,double);
83  vtkGetVectorMacro(Scale,double,3);
85 
87 
93  vtkSetVector3Macro(Origin,double);
94  vtkGetVectorMacro(Origin,double,3);
96 
98 
102  vtkSetMacro(FlipR,int);
103  vtkGetMacro(FlipR,int);
104  vtkBooleanMacro(FlipR,int);
106 
108 
112  vtkSetMacro(FlipS,int);
113  vtkGetMacro(FlipS,int);
114  vtkBooleanMacro(FlipS,int);
116 
118 
122  vtkSetMacro(FlipT,int);
123  vtkGetMacro(FlipT,int);
124  vtkBooleanMacro(FlipT,int);
126 
127 protected:
130 
132 
133  double Origin[3]; //point around which map rotates
134  double Position[3]; //controls translation of map
135  double Scale[3]; //scales the texture map
136  int FlipR; //boolean indicates whether to flip texture around r-axis
137  int FlipS; //boolean indicates whether to flip texture around s-axis
138  int FlipT; //boolean indicates whether to flip texture around t-axis
139 private:
140  vtkTransformTextureCoords(const vtkTransformTextureCoords&) VTK_DELETE_FUNCTION;
141  void operator=(const vtkTransformTextureCoords&) VTK_DELETE_FUNCTION;
142 };
143 
144 #endif
vtkTransformTextureCoords::New
static vtkTransformTextureCoords * New()
Create instance with Origin (0.5,0.5,0.5); Position (0,0,0); and Scale set to (1,1,...
vtkTransformTextureCoords::~vtkTransformTextureCoords
~vtkTransformTextureCoords()
Definition: vtkTransformTextureCoords.h:129
vtkTransformTextureCoords::FlipR
int FlipR
Definition: vtkTransformTextureCoords.h:136
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkTransformTextureCoords::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkTransformTextureCoords::vtkTransformTextureCoords
vtkTransformTextureCoords()
vtkTransformTextureCoords::FlipT
int FlipT
Definition: vtkTransformTextureCoords.h:138
vtkTransformTextureCoords::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:52
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkDataSetAlgorithm.h
vtkTransformTextureCoords::FlipS
int FlipS
Definition: vtkTransformTextureCoords.h:137
vtkTransformTextureCoords::AddPosition
void AddPosition(double deltaR, double deltaS, double deltaT)
Incrementally change the position of the texture map (i.e., does a translate or shift of the texture ...
vtkTransformTextureCoords
transform (scale, rotate, translate) texture coordinates
Definition: vtkTransformTextureCoords.h:48
vtkTransformTextureCoords::AddPosition
void AddPosition(double deltaPosition[3])