VTK  9.3.0
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
35 #ifndef vtkTransformTextureCoords_h
36 #define vtkTransformTextureCoords_h
37 
38 #include "vtkDataSetAlgorithm.h"
39 #include "vtkFiltersTextureModule.h" // For export macro
40 
41 VTK_ABI_NAMESPACE_BEGIN
42 class VTKFILTERSTEXTURE_EXPORT vtkTransformTextureCoords : public vtkDataSetAlgorithm
43 {
44 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
53 
55 
59  vtkSetVector3Macro(Position, double);
60  vtkGetVectorMacro(Position, double, 3);
62 
64 
68  void AddPosition(double deltaR, double deltaS, double deltaT);
69  void AddPosition(double deltaPosition[3]);
71 
73 
77  vtkSetVector3Macro(Scale, double);
78  vtkGetVectorMacro(Scale, double, 3);
80 
82 
88  vtkSetVector3Macro(Origin, double);
89  vtkGetVectorMacro(Origin, double, 3);
91 
93 
97  vtkSetMacro(FlipR, vtkTypeBool);
98  vtkGetMacro(FlipR, vtkTypeBool);
99  vtkBooleanMacro(FlipR, vtkTypeBool);
101 
103 
107  vtkSetMacro(FlipS, vtkTypeBool);
108  vtkGetMacro(FlipS, vtkTypeBool);
109  vtkBooleanMacro(FlipS, vtkTypeBool);
111 
113 
117  vtkSetMacro(FlipT, vtkTypeBool);
118  vtkGetMacro(FlipT, vtkTypeBool);
119  vtkBooleanMacro(FlipT, vtkTypeBool);
121 
122 protected:
124  ~vtkTransformTextureCoords() override = default;
125 
127 
128  double Origin[3]; // point around which map rotates
129  double Position[3]; // controls translation of map
130  double Scale[3]; // scales the texture map
131  vtkTypeBool FlipR; // boolean indicates whether to flip texture around r-axis
132  vtkTypeBool FlipS; // boolean indicates whether to flip texture around s-axis
133  vtkTypeBool FlipT; // boolean indicates whether to flip texture around t-axis
134 private:
136  void operator=(const vtkTransformTextureCoords&) = delete;
137 };
138 
139 VTK_ABI_NAMESPACE_END
140 #endif
Superclass for algorithms that produce output of the same type as input.
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
transform (scale, rotate, translate) texture coordinates
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkTransformTextureCoords() override=default
static vtkTransformTextureCoords * New()
Create instance with Origin (0.5,0.5,0.5); Position (0,0,0); and Scale set to (1,1,...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
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 ...
void AddPosition(double deltaPosition[3])
Incrementally change the position of the texture map (i.e., does a translate or shift of the texture ...
int vtkTypeBool
Definition: vtkABI.h:64