VTK  9.3.20240418
vtkTextureMapToPlane.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
60 #ifndef vtkTextureMapToPlane_h
61 #define vtkTextureMapToPlane_h
62 
63 #include "vtkDataSetAlgorithm.h"
64 #include "vtkFiltersTextureModule.h" // For export macro
65 
66 VTK_ABI_NAMESPACE_BEGIN
67 class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToPlane : public vtkDataSetAlgorithm
68 {
69 public:
71  void PrintSelf(ostream& os, vtkIndent indent) override;
72 
77 
79 
83  vtkSetVector3Macro(Origin, double);
84  vtkGetVectorMacro(Origin, double, 3);
86 
88 
91  vtkSetVector3Macro(Point1, double);
92  vtkGetVectorMacro(Point1, double, 3);
94 
96 
99  vtkSetVector3Macro(Point2, double);
100  vtkGetVectorMacro(Point2, double, 3);
102 
104 
109  vtkSetVector3Macro(Normal, double);
110  vtkGetVectorMacro(Normal, double, 3);
112 
114 
117  vtkSetVector2Macro(SRange, double);
118  vtkGetVectorMacro(SRange, double, 2);
120 
122 
125  vtkSetVector2Macro(TRange, double);
126  vtkGetVectorMacro(TRange, double, 2);
128 
130 
133  vtkSetMacro(AutomaticPlaneGeneration, vtkTypeBool);
134  vtkGetMacro(AutomaticPlaneGeneration, vtkTypeBool);
135  vtkBooleanMacro(AutomaticPlaneGeneration, vtkTypeBool);
137 
138 protected:
140  ~vtkTextureMapToPlane() override = default;
141 
143  void ComputeNormal(vtkDataSet* output);
144 
145  double Origin[3];
146  double Point1[3];
147  double Point2[3];
148  double Normal[3];
149  double SRange[2];
150  double TRange[2];
152 
153 private:
155  void operator=(const vtkTextureMapToPlane&) = delete;
156 };
157 
158 VTK_ABI_NAMESPACE_END
159 #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:108
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:45
int vtkTypeBool
Definition: vtkABI.h:64