VTK  9.0.3
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 =========================================================================*/
35 #ifndef vtkTransformTextureCoords_h
36 #define vtkTransformTextureCoords_h
37 
38 #include "vtkDataSetAlgorithm.h"
39 #include "vtkFiltersTextureModule.h" // For export macro
40 
41 class VTKFILTERSTEXTURE_EXPORT vtkTransformTextureCoords : public vtkDataSetAlgorithm
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
52 
54 
58  vtkSetVector3Macro(Position, double);
59  vtkGetVectorMacro(Position, double, 3);
61 
63 
67  void AddPosition(double deltaR, double deltaS, double deltaT);
68  void AddPosition(double deltaPosition[3]);
70 
72 
76  vtkSetVector3Macro(Scale, double);
77  vtkGetVectorMacro(Scale, double, 3);
79 
81 
87  vtkSetVector3Macro(Origin, double);
88  vtkGetVectorMacro(Origin, double, 3);
90 
92 
96  vtkSetMacro(FlipR, vtkTypeBool);
97  vtkGetMacro(FlipR, vtkTypeBool);
98  vtkBooleanMacro(FlipR, vtkTypeBool);
100 
102 
106  vtkSetMacro(FlipS, vtkTypeBool);
107  vtkGetMacro(FlipS, vtkTypeBool);
108  vtkBooleanMacro(FlipS, vtkTypeBool);
110 
112 
116  vtkSetMacro(FlipT, vtkTypeBool);
117  vtkGetMacro(FlipT, vtkTypeBool);
118  vtkBooleanMacro(FlipT, vtkTypeBool);
120 
121 protected:
124 
126 
127  double Origin[3]; // point around which map rotates
128  double Position[3]; // controls translation of map
129  double Scale[3]; // scales the texture map
130  vtkTypeBool FlipR; // boolean indicates whether to flip texture around r-axis
131  vtkTypeBool FlipS; // boolean indicates whether to flip texture around s-axis
132  vtkTypeBool FlipT; // boolean indicates whether to flip texture around t-axis
133 private:
135  void operator=(const vtkTransformTextureCoords&) = delete;
136 };
137 
138 #endif
Superclass for algorithms that produce output of the same type as input.
a simple class to control print indentation
Definition: vtkIndent.h:34
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.
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])
int vtkTypeBool
Definition: vtkABI.h:69