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 "vtkPolyDataAlgorithm.h"
60 
61 class vtkDataArray;
62 
63 #define VTK_VECTOR_EXTRUSION 1
64 #define VTK_NORMAL_EXTRUSION 2
65 #define VTK_POINT_EXTRUSION 3
66 
68 {
69 public:
71  void PrintSelf(ostream& os, vtkIndent indent);
72 
75  static vtkLinearExtrusionFilter *New();
76 
78 
79  vtkSetClampMacro(ExtrusionType,int,VTK_VECTOR_EXTRUSION,VTK_POINT_EXTRUSION);
80  vtkGetMacro(ExtrusionType,int);
82  {this->SetExtrusionType(VTK_VECTOR_EXTRUSION);};
84  {this->SetExtrusionType(VTK_NORMAL_EXTRUSION);};
86  {this->SetExtrusionType(VTK_POINT_EXTRUSION);};
88 
90 
91  vtkSetMacro(Capping,int);
92  vtkGetMacro(Capping,int);
93  vtkBooleanMacro(Capping,int);
95 
97 
98  vtkSetMacro(ScaleFactor,double);
99  vtkGetMacro(ScaleFactor,double);
101 
103 
105  vtkSetVector3Macro(Vector,double);
106  vtkGetVectorMacro(Vector,double,3);
108 
110 
112  vtkSetVector3Macro(ExtrusionPoint,double);
113  vtkGetVectorMacro(ExtrusionPoint,double,3);
115 
116 protected:
119 
122  int Capping;
123  double ScaleFactor;
124  double Vector[3];
125  double ExtrusionPoint[3];
126 
127  //BTX
128  void (vtkLinearExtrusionFilter::*ExtrudePoint)(double x[3], vtkIdType id,
129  vtkDataArray *normals);
130  void ViaNormal(double x[3], vtkIdType id, vtkDataArray *normals);
131  void ViaVector(double x[3], vtkIdType id, vtkDataArray *normals=0);
132  void ViaPoint(double x[3], vtkIdType id, vtkDataArray *normals=0);
133  //ETX
134 
135 private:
136  vtkLinearExtrusionFilter(const vtkLinearExtrusionFilter&); // Not implemented.
137  void operator=(const vtkLinearExtrusionFilter&); // Not implemented.
138 };
139 
140 #endif