VTK  9.2.5
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 =========================================================================*/
57 #ifndef vtkTransformTextureCoords_h
58 #define vtkTransformTextureCoords_h
59 
60 #include "vtkDataSetAlgorithm.h"
61 #include "vtkFiltersTextureModule.h" // For export macro
62 
63 class VTKFILTERSTEXTURE_EXPORT vtkTransformTextureCoords : public vtkDataSetAlgorithm
64 {
65 public:
67  void PrintSelf(ostream& os, vtkIndent indent) override;
68 
74 
76 
80  vtkSetVector3Macro(Position, double);
81  vtkGetVectorMacro(Position, double, 3);
83 
85 
89  void AddPosition(double deltaR, double deltaS, double deltaT);
90  void AddPosition(double deltaPosition[3]);
92 
94 
98  vtkSetVector3Macro(Scale, double);
99  vtkGetVectorMacro(Scale, double, 3);
101 
103 
109  vtkSetVector3Macro(Origin, double);
110  vtkGetVectorMacro(Origin, double, 3);
112 
114 
118  vtkSetMacro(FlipR, vtkTypeBool);
119  vtkGetMacro(FlipR, vtkTypeBool);
120  vtkBooleanMacro(FlipR, vtkTypeBool);
122 
124 
128  vtkSetMacro(FlipS, vtkTypeBool);
129  vtkGetMacro(FlipS, vtkTypeBool);
130  vtkBooleanMacro(FlipS, vtkTypeBool);
132 
134 
138  vtkSetMacro(FlipT, vtkTypeBool);
139  vtkGetMacro(FlipT, vtkTypeBool);
140  vtkBooleanMacro(FlipT, vtkTypeBool);
142 
143 protected:
145  ~vtkTransformTextureCoords() override = default;
146 
148 
149  double Origin[3]; // point around which map rotates
150  double Position[3]; // controls translation of map
151  double Scale[3]; // scales the texture map
152  vtkTypeBool FlipR; // boolean indicates whether to flip texture around r-axis
153  vtkTypeBool FlipS; // boolean indicates whether to flip texture around s-axis
154  vtkTypeBool FlipT; // boolean indicates whether to flip texture around t-axis
155 private:
157  void operator=(const vtkTransformTextureCoords&) = delete;
158 };
159 
160 #endif
Superclass for algorithms that produce output of the same type as input.
a simple class to control print indentation
Definition: vtkIndent.h:119
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:69