VTK  9.2.6
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 =========================================================================*/
38 #ifndef vtkTransformTextureCoords_h
39 #define vtkTransformTextureCoords_h
40 
41 #include "vtkDataSetAlgorithm.h"
42 #include "vtkFiltersTextureModule.h" // For export macro
43 
44 class VTKFILTERSTEXTURE_EXPORT vtkTransformTextureCoords : public vtkDataSetAlgorithm
45 {
46 public:
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
55 
57 
61  vtkSetVector3Macro(Position, double);
62  vtkGetVectorMacro(Position, double, 3);
64 
66 
70  void AddPosition(double deltaR, double deltaS, double deltaT);
71  void AddPosition(double deltaPosition[3]);
73 
75 
79  vtkSetVector3Macro(Scale, double);
80  vtkGetVectorMacro(Scale, double, 3);
82 
84 
90  vtkSetVector3Macro(Origin, double);
91  vtkGetVectorMacro(Origin, double, 3);
93 
95 
99  vtkSetMacro(FlipR, vtkTypeBool);
100  vtkGetMacro(FlipR, vtkTypeBool);
101  vtkBooleanMacro(FlipR, vtkTypeBool);
103 
105 
109  vtkSetMacro(FlipS, vtkTypeBool);
110  vtkGetMacro(FlipS, vtkTypeBool);
111  vtkBooleanMacro(FlipS, vtkTypeBool);
113 
115 
119  vtkSetMacro(FlipT, vtkTypeBool);
120  vtkGetMacro(FlipT, vtkTypeBool);
121  vtkBooleanMacro(FlipT, vtkTypeBool);
123 
124 protected:
126  ~vtkTransformTextureCoords() override = default;
127 
129 
130  double Origin[3]; // point around which map rotates
131  double Position[3]; // controls translation of map
132  double Scale[3]; // scales the texture map
133  vtkTypeBool FlipR; // boolean indicates whether to flip texture around r-axis
134  vtkTypeBool FlipS; // boolean indicates whether to flip texture around s-axis
135  vtkTypeBool FlipT; // boolean indicates whether to flip texture around t-axis
136 private:
138  void operator=(const vtkTransformTextureCoords&) = delete;
139 };
140 
141 #endif
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:69
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:39
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
transform (scale, rotate, translate) texture coordinates
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()