VTK  9.1.0
vtkTextureMapToPlane.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTextureMapToPlane.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 =========================================================================*/
69 #ifndef vtkTextureMapToPlane_h
70 #define vtkTextureMapToPlane_h
71 
72 #include "vtkDataSetAlgorithm.h"
73 #include "vtkFiltersTextureModule.h" // For export macro
74 
75 class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToPlane : public vtkDataSetAlgorithm
76 {
77 public:
79  void PrintSelf(ostream& os, vtkIndent indent) override;
80 
85 
87 
91  vtkSetVector3Macro(Origin, double);
92  vtkGetVectorMacro(Origin, double, 3);
94 
96 
99  vtkSetVector3Macro(Point1, double);
100  vtkGetVectorMacro(Point1, double, 3);
102 
104 
107  vtkSetVector3Macro(Point2, double);
108  vtkGetVectorMacro(Point2, double, 3);
110 
112 
117  vtkSetVector3Macro(Normal, double);
118  vtkGetVectorMacro(Normal, double, 3);
120 
122 
125  vtkSetVector2Macro(SRange, double);
126  vtkGetVectorMacro(SRange, double, 2);
128 
130 
133  vtkSetVector2Macro(TRange, double);
134  vtkGetVectorMacro(TRange, double, 2);
136 
138 
141  vtkSetMacro(AutomaticPlaneGeneration, vtkTypeBool);
142  vtkGetMacro(AutomaticPlaneGeneration, vtkTypeBool);
143  vtkBooleanMacro(AutomaticPlaneGeneration, vtkTypeBool);
145 
146 protected:
148  ~vtkTextureMapToPlane() override = default;
149 
151  void ComputeNormal(vtkDataSet* output);
152 
153  double Origin[3];
154  double Point1[3];
155  double Point2[3];
156  double Normal[3];
157  double SRange[2];
158  double TRange[2];
160 
161 private:
163  void operator=(const vtkTextureMapToPlane&) = delete;
164 };
165 
166 #endif
Superclass for algorithms that produce output of the same type as input.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
generate texture coordinates by mapping points to plane
vtkTypeBool AutomaticPlaneGeneration
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkTextureMapToPlane * New()
Construct with s,t range=(0,1) and automatic plane generation turned on.
void ComputeNormal(vtkDataSet *output)
~vtkTextureMapToPlane() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
@ Normal
Definition: vtkX3D.h:51
int vtkTypeBool
Definition: vtkABI.h:69