VTK  9.2.6
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 =========================================================================*/
72 #ifndef vtkTextureMapToPlane_h
73 #define vtkTextureMapToPlane_h
74 
75 #include "vtkDataSetAlgorithm.h"
76 #include "vtkFiltersTextureModule.h" // For export macro
77 
78 class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToPlane : public vtkDataSetAlgorithm
79 {
80 public:
82  void PrintSelf(ostream& os, vtkIndent indent) override;
83 
88 
90 
94  vtkSetVector3Macro(Origin, double);
95  vtkGetVectorMacro(Origin, double, 3);
97 
99 
102  vtkSetVector3Macro(Point1, double);
103  vtkGetVectorMacro(Point1, double, 3);
105 
107 
110  vtkSetVector3Macro(Point2, double);
111  vtkGetVectorMacro(Point2, double, 3);
113 
115 
120  vtkSetVector3Macro(Normal, double);
121  vtkGetVectorMacro(Normal, double, 3);
123 
125 
128  vtkSetVector2Macro(SRange, double);
129  vtkGetVectorMacro(SRange, double, 2);
131 
133 
136  vtkSetVector2Macro(TRange, double);
137  vtkGetVectorMacro(TRange, double, 2);
139 
141 
144  vtkSetMacro(AutomaticPlaneGeneration, vtkTypeBool);
145  vtkGetMacro(AutomaticPlaneGeneration, vtkTypeBool);
146  vtkBooleanMacro(AutomaticPlaneGeneration, vtkTypeBool);
148 
149 protected:
151  ~vtkTextureMapToPlane() override = default;
152 
154  void ComputeNormal(vtkDataSet* output);
155 
156  double Origin[3];
157  double Point1[3];
158  double Point2[3];
159  double Normal[3];
160  double SRange[2];
161  double TRange[2];
163 
164 private:
166  void operator=(const vtkTextureMapToPlane&) = delete;
167 };
168 
169 #endif
Superclass for algorithms that produce output of the same type as input.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:172
a simple class to control print indentation
Definition: vtkIndent.h:119
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