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 =========================================================================*/
35 #ifndef vtkTransformTextureCoords_h
36 #define vtkTransformTextureCoords_h
37 
38 #include "vtkFiltersTextureModule.h" // For export macro
39 #include "vtkDataSetAlgorithm.h"
40 
41 class VTKFILTERSTEXTURE_EXPORT vtkTransformTextureCoords : public vtkDataSetAlgorithm
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
46 
52 
54 
58  vtkSetVector3Macro(Position,double);
59  vtkGetVectorMacro(Position,double,3);
61 
63 
67  void AddPosition(double deltaR, double deltaS, double deltaT);
68  void AddPosition(double deltaPosition[3]);
70 
72 
76  vtkSetVector3Macro(Scale,double);
77  vtkGetVectorMacro(Scale,double,3);
79 
81 
87  vtkSetVector3Macro(Origin,double);
88  vtkGetVectorMacro(Origin,double,3);
90 
92 
96  vtkSetMacro(FlipR,int);
97  vtkGetMacro(FlipR,int);
98  vtkBooleanMacro(FlipR,int);
100 
102 
106  vtkSetMacro(FlipS,int);
107  vtkGetMacro(FlipS,int);
108  vtkBooleanMacro(FlipS,int);
110 
112 
116  vtkSetMacro(FlipT,int);
117  vtkGetMacro(FlipT,int);
118  vtkBooleanMacro(FlipT,int);
120 
121 protected:
123  ~vtkTransformTextureCoords() VTK_OVERRIDE {}
124 
126 
127  double Origin[3]; //point around which map rotates
128  double Position[3]; //controls translation of map
129  double Scale[3]; //scales the texture map
130  int FlipR; //boolean indicates whether to flip texture around r-axis
131  int FlipS; //boolean indicates whether to flip texture around s-axis
132  int FlipT; //boolean indicates whether to flip texture around t-axis
133 private:
134  vtkTransformTextureCoords(const vtkTransformTextureCoords&) VTK_DELETE_FUNCTION;
135  void operator=(const vtkTransformTextureCoords&) VTK_DELETE_FUNCTION;
136 };
137 
138 #endif
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
transform (scale, rotate, translate) texture coordinates
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkDataSetAlgorithm * New()