VTK  9.3.1
vtkTransformTextureCoords.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
26 #ifndef vtkTransformTextureCoords_h
27 #define vtkTransformTextureCoords_h
28 
29 #include "vtkDataSetAlgorithm.h"
30 #include "vtkFiltersTextureModule.h" // For export macro
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class VTKFILTERSTEXTURE_EXPORT vtkTransformTextureCoords : public vtkDataSetAlgorithm
34 {
35 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
44 
46 
50  vtkSetVector3Macro(Position, double);
51  vtkGetVectorMacro(Position, double, 3);
53 
55 
59  void AddPosition(double deltaR, double deltaS, double deltaT);
60  void AddPosition(double deltaPosition[3]);
62 
64 
68  vtkSetVector3Macro(Scale, double);
69  vtkGetVectorMacro(Scale, double, 3);
71 
73 
79  vtkSetVector3Macro(Origin, double);
80  vtkGetVectorMacro(Origin, double, 3);
82 
84 
88  vtkSetMacro(FlipR, vtkTypeBool);
89  vtkGetMacro(FlipR, vtkTypeBool);
90  vtkBooleanMacro(FlipR, vtkTypeBool);
92 
94 
98  vtkSetMacro(FlipS, vtkTypeBool);
99  vtkGetMacro(FlipS, vtkTypeBool);
100  vtkBooleanMacro(FlipS, vtkTypeBool);
102 
104 
108  vtkSetMacro(FlipT, vtkTypeBool);
109  vtkGetMacro(FlipT, vtkTypeBool);
110  vtkBooleanMacro(FlipT, vtkTypeBool);
112 
113 protected:
115  ~vtkTransformTextureCoords() override = default;
116 
118 
119  double Origin[3]; // point around which map rotates
120  double Position[3]; // controls translation of map
121  double Scale[3]; // scales the texture map
122  vtkTypeBool FlipR; // boolean indicates whether to flip texture around r-axis
123  vtkTypeBool FlipS; // boolean indicates whether to flip texture around s-axis
124  vtkTypeBool FlipT; // boolean indicates whether to flip texture around t-axis
125 private:
127  void operator=(const vtkTransformTextureCoords&) = delete;
128 };
129 
130 VTK_ABI_NAMESPACE_END
131 #endif
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:64
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:28
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()