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=========================================================================*/
49#ifndef vtkTextureMapToPlane_h
50#define vtkTextureMapToPlane_h
51
52#include "vtkDataSetAlgorithm.h"
53#include "vtkFiltersTextureModule.h" // For export macro
54
55class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToPlane : public vtkDataSetAlgorithm
56{
57public:
59 void PrintSelf(ostream& os, vtkIndent indent) override;
60
65
67
71 vtkSetVector3Macro(Origin, double);
72 vtkGetVectorMacro(Origin, double, 3);
74
76
79 vtkSetVector3Macro(Point1, double);
80 vtkGetVectorMacro(Point1, double, 3);
82
84
87 vtkSetVector3Macro(Point2, double);
88 vtkGetVectorMacro(Point2, double, 3);
90
92
97 vtkSetVector3Macro(Normal, double);
98 vtkGetVectorMacro(Normal, double, 3);
100
102
105 vtkSetVector2Macro(SRange, double);
106 vtkGetVectorMacro(SRange, double, 2);
108
110
113 vtkSetVector2Macro(TRange, double);
114 vtkGetVectorMacro(TRange, double, 2);
116
118
121 vtkSetMacro(AutomaticPlaneGeneration, vtkTypeBool);
122 vtkGetMacro(AutomaticPlaneGeneration, vtkTypeBool);
123 vtkBooleanMacro(AutomaticPlaneGeneration, vtkTypeBool);
125
126protected:
128 ~vtkTextureMapToPlane() override = default;
129
132
133 double Origin[3];
134 double Point1[3];
135 double Point2[3];
136 double Normal[3];
137 double SRange[2];
138 double TRange[2];
140
141private:
143 void operator=(const vtkTextureMapToPlane&) = delete;
144};
145
146#endif
Superclass for algorithms that produce output of the same type as input.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:66
a simple class to control print indentation
Definition: vtkIndent.h:43
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