VTK
vtkLinearExtrusionFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLinearExtrusionFilter.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 =========================================================================*/
56 #ifndef vtkLinearExtrusionFilter_h
57 #define vtkLinearExtrusionFilter_h
58 
59 #include "vtkFiltersModelingModule.h" // For export macro
60 #include "vtkPolyDataAlgorithm.h"
61 
62 class vtkDataArray;
63 
64 #define VTK_VECTOR_EXTRUSION 1
65 #define VTK_NORMAL_EXTRUSION 2
66 #define VTK_POINT_EXTRUSION 3
67 
69 {
70 public:
72  void PrintSelf(ostream& os, vtkIndent indent);
73 
76  static vtkLinearExtrusionFilter *New();
77 
79 
80  vtkSetClampMacro(ExtrusionType,int,VTK_VECTOR_EXTRUSION,VTK_POINT_EXTRUSION);
81  vtkGetMacro(ExtrusionType,int);
83  {this->SetExtrusionType(VTK_VECTOR_EXTRUSION);};
85  {this->SetExtrusionType(VTK_NORMAL_EXTRUSION);};
87  {this->SetExtrusionType(VTK_POINT_EXTRUSION);};
89 
91 
92  vtkSetMacro(Capping,int);
93  vtkGetMacro(Capping,int);
94  vtkBooleanMacro(Capping,int);
96 
98 
99  vtkSetMacro(ScaleFactor,double);
100  vtkGetMacro(ScaleFactor,double);
102 
104 
106  vtkSetVector3Macro(Vector,double);
107  vtkGetVectorMacro(Vector,double,3);
109 
111 
113  vtkSetVector3Macro(ExtrusionPoint,double);
114  vtkGetVectorMacro(ExtrusionPoint,double,3);
116 
117 protected:
120 
123  int Capping;
124  double ScaleFactor;
125  double Vector[3];
126  double ExtrusionPoint[3];
127 
128  //BTX
129  void (vtkLinearExtrusionFilter::*ExtrudePoint)(double x[3], vtkIdType id,
130  vtkDataArray *normals);
131  void ViaNormal(double x[3], vtkIdType id, vtkDataArray *normals);
132  void ViaVector(double x[3], vtkIdType id, vtkDataArray *normals=0);
133  void ViaPoint(double x[3], vtkIdType id, vtkDataArray *normals=0);
134  //ETX
135 
136 private:
137  vtkLinearExtrusionFilter(const vtkLinearExtrusionFilter&); // Not implemented.
138  void operator=(const vtkLinearExtrusionFilter&); // Not implemented.
139 };
140 
141 #endif
#define VTK_POINT_EXTRUSION
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKFILTERSMODELING_EXPORT
int vtkIdType
Definition: vtkType.h:275
#define VTK_VECTOR_EXTRUSION
#define VTK_NORMAL_EXTRUSION
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
sweep polygonal data creating a "skirt" from free edges and lines, and lines from vertices ...
Store zero or more vtkInformation instances.