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 =========================================================================*/
45 #ifndef vtkTextureMapToPlane_h
46 #define vtkTextureMapToPlane_h
47 
48 #include "vtkFiltersTextureModule.h" // For export macro
49 #include "vtkDataSetAlgorithm.h"
50 
52 {
53 public:
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
59  static vtkTextureMapToPlane *New();
60 
62 
64  vtkSetVector3Macro(Origin,double);
65  vtkGetVectorMacro(Origin,double,3);
67 
69 
70  vtkSetVector3Macro(Point1,double);
71  vtkGetVectorMacro(Point1,double,3);
73 
75 
76  vtkSetVector3Macro(Point2,double);
77  vtkGetVectorMacro(Point2,double,3);
79 
81 
84  vtkSetVector3Macro(Normal,double);
85  vtkGetVectorMacro(Normal,double,3);
87 
89 
90  vtkSetVector2Macro(SRange,double);
91  vtkGetVectorMacro(SRange,double,2);
93 
95 
96  vtkSetVector2Macro(TRange,double);
97  vtkGetVectorMacro(TRange,double,2);
99 
101 
102  vtkSetMacro(AutomaticPlaneGeneration,int);
103  vtkGetMacro(AutomaticPlaneGeneration,int);
104  vtkBooleanMacro(AutomaticPlaneGeneration,int);
106 
107 protected:
110 
112  void ComputeNormal(vtkDataSet *output);
113 
114  double Origin[3];
115  double Point1[3];
116  double Point2[3];
117  double Normal[3];
118  double SRange[2];
119  double TRange[2];
121 
122 private:
123  vtkTextureMapToPlane(const vtkTextureMapToPlane&); // Not implemented.
124  void operator=(const vtkTextureMapToPlane&); // Not implemented.
125 };
126 
127 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
#define VTKFILTERSTEXTURE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()
generate texture coordinates by mapping points to plane