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 =========================================================================*/
46 #ifndef vtkTextureMapToPlane_h
47 #define vtkTextureMapToPlane_h
48 
49 #include "vtkFiltersTextureModule.h" // For export macro
50 #include "vtkDataSetAlgorithm.h"
51 
52 class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToPlane : public vtkDataSetAlgorithm
53 {
54 public:
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
61  static vtkTextureMapToPlane *New();
62 
64 
68  vtkSetVector3Macro(Origin,double);
69  vtkGetVectorMacro(Origin,double,3);
71 
73 
76  vtkSetVector3Macro(Point1,double);
77  vtkGetVectorMacro(Point1,double,3);
79 
81 
84  vtkSetVector3Macro(Point2,double);
85  vtkGetVectorMacro(Point2,double,3);
87 
89 
94  vtkSetVector3Macro(Normal,double);
95  vtkGetVectorMacro(Normal,double,3);
97 
99 
102  vtkSetVector2Macro(SRange,double);
103  vtkGetVectorMacro(SRange,double,2);
105 
107 
110  vtkSetVector2Macro(TRange,double);
111  vtkGetVectorMacro(TRange,double,2);
113 
115 
118  vtkSetMacro(AutomaticPlaneGeneration,int);
119  vtkGetMacro(AutomaticPlaneGeneration,int);
120  vtkBooleanMacro(AutomaticPlaneGeneration,int);
122 
123 protected:
126 
128  void ComputeNormal(vtkDataSet *output);
129 
130  double Origin[3];
131  double Point1[3];
132  double Point2[3];
133  double Normal[3];
134  double SRange[2];
135  double TRange[2];
137 
138 private:
139  vtkTextureMapToPlane(const vtkTextureMapToPlane&) VTK_DELETE_FUNCTION;
140  void operator=(const vtkTextureMapToPlane&) VTK_DELETE_FUNCTION;
141 };
142 
143 #endif
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkX3D::Normal
Definition: vtkX3D.h:45
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:183
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:51
vtkTextureMapToPlane
generate texture coordinates by mapping points to plane
Definition: vtkTextureMapToPlane.h:52
vtkTextureMapToPlane::AutomaticPlaneGeneration
int AutomaticPlaneGeneration
Definition: vtkTextureMapToPlane.h:136
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkDataSetAlgorithm::New
static vtkDataSetAlgorithm * New()
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkDataSetAlgorithm.h
vtkDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTextureMapToPlane::~vtkTextureMapToPlane
~vtkTextureMapToPlane()
Definition: vtkTextureMapToPlane.h:125