VTK  9.0.1
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 =========================================================================*/
40 #ifndef vtkTextureMapToPlane_h
41 #define vtkTextureMapToPlane_h
42 
43 #include "vtkDataSetAlgorithm.h"
44 #include "vtkFiltersTextureModule.h" // For export macro
45 
46 class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToPlane : public vtkDataSetAlgorithm
47 {
48 public:
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
55  static vtkTextureMapToPlane* New();
56 
58 
62  vtkSetVector3Macro(Origin, double);
63  vtkGetVectorMacro(Origin, double, 3);
65 
67 
70  vtkSetVector3Macro(Point1, double);
71  vtkGetVectorMacro(Point1, double, 3);
73 
75 
78  vtkSetVector3Macro(Point2, double);
79  vtkGetVectorMacro(Point2, double, 3);
81 
83 
88  vtkSetVector3Macro(Normal, double);
89  vtkGetVectorMacro(Normal, double, 3);
91 
93 
96  vtkSetVector2Macro(SRange, double);
97  vtkGetVectorMacro(SRange, double, 2);
99 
101 
104  vtkSetVector2Macro(TRange, double);
105  vtkGetVectorMacro(TRange, double, 2);
107 
109 
112  vtkSetMacro(AutomaticPlaneGeneration, vtkTypeBool);
113  vtkGetMacro(AutomaticPlaneGeneration, vtkTypeBool);
114  vtkBooleanMacro(AutomaticPlaneGeneration, vtkTypeBool);
116 
117 protected:
119  ~vtkTextureMapToPlane() override {}
120 
122  void ComputeNormal(vtkDataSet* output);
123 
124  double Origin[3];
125  double Point1[3];
126  double Point2[3];
127  double Normal[3];
128  double SRange[2];
129  double TRange[2];
131 
132 private:
134  void operator=(const vtkTextureMapToPlane&) = delete;
135 };
136 
137 #endif
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkX3D::Normal
@ Normal
Definition: vtkX3D.h:51
vtkDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition: vtkDataSetAlgorithm.h:176
vtkTextureMapToPlane::~vtkTextureMapToPlane
~vtkTextureMapToPlane() override
Definition: vtkTextureMapToPlane.h:119
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:48
vtkTextureMapToPlane
generate texture coordinates by mapping points to plane
Definition: vtkTextureMapToPlane.h:46
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkDataSetAlgorithm::New
static vtkDataSetAlgorithm * New()
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkTextureMapToPlane::AutomaticPlaneGeneration
vtkTypeBool AutomaticPlaneGeneration
Definition: vtkTextureMapToPlane.h:130
vtkDataSetAlgorithm.h
vtkDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69