VTK
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 "vtkFiltersTextureModule.h" // For export macro
39 #include "vtkDataSetAlgorithm.h"
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
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition: vtkDataSetAlgorithm.h:180
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:48
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkDataSetAlgorithm::New
static vtkDataSetAlgorithm * New()
vtkTransformTextureCoords::FlipT
vtkTypeBool FlipT
Definition: vtkTransformTextureCoords.h:132
vtkTransformTextureCoords::FlipS
vtkTypeBool FlipS
Definition: vtkTransformTextureCoords.h:131
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkDataSetAlgorithm.h
vtkTransformTextureCoords::FlipR
vtkTypeBool FlipR
Definition: vtkTransformTextureCoords.h:130
vtkDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTransformTextureCoords::~vtkTransformTextureCoords
~vtkTransformTextureCoords() override
Definition: vtkTransformTextureCoords.h:123
vtkTransformTextureCoords
transform (scale, rotate, translate) texture coordinates
Definition: vtkTransformTextureCoords.h:41
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69