VTK  9.3.20240425
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
45#ifndef vtkTransformTextureCoords_h
46#define vtkTransformTextureCoords_h
47
48#include "vtkDataSetAlgorithm.h"
49#include "vtkFiltersTextureModule.h" // For export macro
50
51VTK_ABI_NAMESPACE_BEGIN
52class VTKFILTERSTEXTURE_EXPORT vtkTransformTextureCoords : public vtkDataSetAlgorithm
53{
54public:
56 void PrintSelf(ostream& os, vtkIndent indent) override;
57
63
65
69 vtkSetVector3Macro(Position, double);
70 vtkGetVectorMacro(Position, double, 3);
72
74
78 void AddPosition(double deltaR, double deltaS, double deltaT);
79 void AddPosition(double deltaPosition[3]);
81
83
87 vtkSetVector3Macro(Scale, double);
88 vtkGetVectorMacro(Scale, double, 3);
90
92
98 vtkSetVector3Macro(Origin, double);
99 vtkGetVectorMacro(Origin, double, 3);
101
103
107 vtkSetMacro(FlipR, vtkTypeBool);
108 vtkGetMacro(FlipR, vtkTypeBool);
109 vtkBooleanMacro(FlipR, vtkTypeBool);
111
113
117 vtkSetMacro(FlipS, vtkTypeBool);
118 vtkGetMacro(FlipS, vtkTypeBool);
119 vtkBooleanMacro(FlipS, vtkTypeBool);
121
123
127 vtkSetMacro(FlipT, vtkTypeBool);
128 vtkGetMacro(FlipT, vtkTypeBool);
129 vtkBooleanMacro(FlipT, vtkTypeBool);
131
132protected:
134 ~vtkTransformTextureCoords() override = default;
135
137
138 double Origin[3]; // point around which map rotates
139 double Position[3]; // controls translation of map
140 double Scale[3]; // scales the texture map
141 vtkTypeBool FlipR; // boolean indicates whether to flip texture around r-axis
142 vtkTypeBool FlipS; // boolean indicates whether to flip texture around s-axis
143 vtkTypeBool FlipT; // boolean indicates whether to flip texture around t-axis
144private:
146 void operator=(const vtkTransformTextureCoords&) = delete;
147};
148
149VTK_ABI_NAMESPACE_END
150#endif
Superclass for algorithms that produce output of the same type as input.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
transform (scale, rotate, translate) texture coordinates
static vtkTransformTextureCoords * New()
Create instance with Origin (0.5,0.5,0.5); Position (0,0,0); and Scale set to (1,1,...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkTransformTextureCoords() override=default
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