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 "vtkDataSetAlgorithm.h"
49 
51 {
52 public:
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
58  static vtkTextureMapToPlane *New();
59 
61 
63  vtkSetVector3Macro(Origin,double);
64  vtkGetVectorMacro(Origin,double,3);
66 
68 
69  vtkSetVector3Macro(Point1,double);
70  vtkGetVectorMacro(Point1,double,3);
72 
74 
75  vtkSetVector3Macro(Point2,double);
76  vtkGetVectorMacro(Point2,double,3);
78 
80 
83  vtkSetVector3Macro(Normal,double);
84  vtkGetVectorMacro(Normal,double,3);
86 
88 
89  vtkSetVector2Macro(SRange,double);
90  vtkGetVectorMacro(SRange,double,2);
92 
94 
95  vtkSetVector2Macro(TRange,double);
96  vtkGetVectorMacro(TRange,double,2);
98 
100 
101  vtkSetMacro(AutomaticPlaneGeneration,int);
102  vtkGetMacro(AutomaticPlaneGeneration,int);
103  vtkBooleanMacro(AutomaticPlaneGeneration,int);
105 
106 protected:
109 
111  void ComputeNormal(vtkDataSet *output);
112 
113  double Origin[3];
114  double Point1[3];
115  double Point2[3];
116  double Normal[3];
117  double SRange[2];
118  double TRange[2];
120 
121 private:
122  vtkTextureMapToPlane(const vtkTextureMapToPlane&); // Not implemented.
123  void operator=(const vtkTextureMapToPlane&); // Not implemented.
124 };
125 
126 #endif
#define VTK_GRAPHICS_EXPORT
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
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