VTK  9.3.1
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
31 #ifndef vtkTextureMapToPlane_h
32 #define vtkTextureMapToPlane_h
33 
34 #include "vtkDataSetAlgorithm.h"
35 #include "vtkFiltersTextureModule.h" // For export macro
36 
37 VTK_ABI_NAMESPACE_BEGIN
38 class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToPlane : public vtkDataSetAlgorithm
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
47  static vtkTextureMapToPlane* New();
48 
50 
54  vtkSetVector3Macro(Origin, double);
55  vtkGetVectorMacro(Origin, double, 3);
57 
59 
62  vtkSetVector3Macro(Point1, double);
63  vtkGetVectorMacro(Point1, double, 3);
65 
67 
70  vtkSetVector3Macro(Point2, double);
71  vtkGetVectorMacro(Point2, double, 3);
73 
75 
80  vtkSetVector3Macro(Normal, double);
81  vtkGetVectorMacro(Normal, double, 3);
83 
85 
88  vtkSetVector2Macro(SRange, double);
89  vtkGetVectorMacro(SRange, double, 2);
91 
93 
96  vtkSetVector2Macro(TRange, double);
97  vtkGetVectorMacro(TRange, double, 2);
99 
101 
104  vtkSetMacro(AutomaticPlaneGeneration, vtkTypeBool);
105  vtkGetMacro(AutomaticPlaneGeneration, vtkTypeBool);
106  vtkBooleanMacro(AutomaticPlaneGeneration, vtkTypeBool);
108 
109 protected:
111  ~vtkTextureMapToPlane() override = default;
112 
114  void ComputeNormal(vtkDataSet* output);
115 
116  double Origin[3];
117  double Point1[3];
118  double Point2[3];
119  double Normal[3];
120  double SRange[2];
121  double TRange[2];
123 
124 private:
126  void operator=(const vtkTextureMapToPlane&) = delete;
127 };
128 
129 VTK_ABI_NAMESPACE_END
130 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
int vtkTypeBool
Definition: vtkABI.h:64
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkTypeBool AutomaticPlaneGeneration
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()
generate texture coordinates by mapping points to plane