VTK
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 =========================================================================*/
43 #ifndef vtkTextureMapToPlane_h
44 #define vtkTextureMapToPlane_h
45 
46 #include "vtkFiltersTextureModule.h" // For export macro
47 #include "vtkDataSetAlgorithm.h"
48 
49 class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToPlane : public vtkDataSetAlgorithm
50 {
51 public:
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
58  static vtkTextureMapToPlane *New();
59 
61 
65  vtkSetVector3Macro(Origin,double);
66  vtkGetVectorMacro(Origin,double,3);
68 
70 
73  vtkSetVector3Macro(Point1,double);
74  vtkGetVectorMacro(Point1,double,3);
76 
78 
81  vtkSetVector3Macro(Point2,double);
82  vtkGetVectorMacro(Point2,double,3);
84 
86 
91  vtkSetVector3Macro(Normal,double);
92  vtkGetVectorMacro(Normal,double,3);
94 
96 
99  vtkSetVector2Macro(SRange,double);
100  vtkGetVectorMacro(SRange,double,2);
102 
104 
107  vtkSetVector2Macro(TRange,double);
108  vtkGetVectorMacro(TRange,double,2);
110 
112 
115  vtkSetMacro(AutomaticPlaneGeneration,vtkTypeBool);
116  vtkGetMacro(AutomaticPlaneGeneration,vtkTypeBool);
117  vtkBooleanMacro(AutomaticPlaneGeneration,vtkTypeBool);
119 
120 protected:
122  ~vtkTextureMapToPlane() override {}
123 
125  void ComputeNormal(vtkDataSet *output);
126 
127  double Origin[3];
128  double Point1[3];
129  double Point2[3];
130  double Normal[3];
131  double SRange[2];
132  double TRange[2];
134 
135 private:
137  void operator=(const vtkTextureMapToPlane&) = delete;
138 };
139 
140 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
int vtkTypeBool
Definition: vtkABI.h:69
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:39
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