VTK  9.3.0
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
40#ifndef vtkTextureMapToPlane_h
41#define vtkTextureMapToPlane_h
42
43#include "vtkDataSetAlgorithm.h"
44#include "vtkFiltersTextureModule.h" // For export macro
45
46VTK_ABI_NAMESPACE_BEGIN
47class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToPlane : public vtkDataSetAlgorithm
48{
49public:
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
57
59
63 vtkSetVector3Macro(Origin, double);
64 vtkGetVectorMacro(Origin, double, 3);
66
68
71 vtkSetVector3Macro(Point1, double);
72 vtkGetVectorMacro(Point1, double, 3);
74
76
79 vtkSetVector3Macro(Point2, double);
80 vtkGetVectorMacro(Point2, double, 3);
82
84
89 vtkSetVector3Macro(Normal, double);
90 vtkGetVectorMacro(Normal, double, 3);
92
94
97 vtkSetVector2Macro(SRange, double);
98 vtkGetVectorMacro(SRange, double, 2);
100
102
105 vtkSetVector2Macro(TRange, double);
106 vtkGetVectorMacro(TRange, double, 2);
108
110
113 vtkSetMacro(AutomaticPlaneGeneration, vtkTypeBool);
114 vtkGetMacro(AutomaticPlaneGeneration, vtkTypeBool);
115 vtkBooleanMacro(AutomaticPlaneGeneration, vtkTypeBool);
117
118protected:
120 ~vtkTextureMapToPlane() override = default;
121
124
125 double Origin[3];
126 double Point1[3];
127 double Point2[3];
128 double Normal[3];
129 double SRange[2];
130 double TRange[2];
132
133private:
135 void operator=(const vtkTextureMapToPlane&) = delete;
136};
137
138VTK_ABI_NAMESPACE_END
139#endif
Superclass for algorithms that produce output of the same type as input.
abstract class to specify dataset behavior
Definition vtkDataSet.h:62
a simple class to control print indentation
Definition vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
generate texture coordinates by mapping points to plane
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.
int vtkTypeBool
Definition vtkABI.h:64