VTK
vtkQuadRotationalExtrusionFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkQuadRotationalExtrusionFilter.h,v $
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 =========================================================================*/
64 #ifndef __vtkQuadRotationalExtrusionFilter_h
65 #define __vtkQuadRotationalExtrusionFilter_h
66 
68 #include <vtksys/stl/map> // STL vector need for per block angles
69 
70 class vtkPoints;
71 class vtkPointData;
72 
74 {
75  public:
77  void PrintSelf(ostream& os, vtkIndent indent);
78 
82 
83 //BTX
85  {
86  USE_X = 0,
87  USE_Y = 1,
88  USE_Z = 2
89  };
90 //ETX
91 
93 
94  vtkSetClampMacro(Axis, int, 0, 2);
95  vtkGetMacro(Axis, int);
96  void SetAxisToX() { this->SetAxis(USE_X); };
97  void SetAxisToY() { this->SetAxis(USE_Y); };
98  void SetAxisToZ() { this->SetAxis(USE_Z); };
100 
102 
104  vtkSetClampMacro(Resolution,int,1,VTK_LARGE_INTEGER);
105  vtkGetMacro(Resolution,int);
107 
109 
110  vtkSetMacro(Capping,int);
111  vtkGetMacro(Capping,int);
112  vtkBooleanMacro(Capping,int);
114 
116 
117  vtkSetMacro(DefaultAngle,double);
118  vtkGetMacro(DefaultAngle,double);
120 
122 
123  void RemoveAllPerBlockAngles();
124  void AddPerBlockAngle(vtkIdType blockId, double angle);
126 
128 
129  vtkSetMacro(Translation,double);
130  vtkGetMacro(Translation,double);
132 
134 
135  vtkSetMacro(DeltaRadius,double);
136  vtkGetMacro(DeltaRadius,double);
138 
139  protected:
142 
147 
148  int RotateAroundAxis( double,
149  vtkIdType,
150  vtkPoints*,
151  vtkPoints*,
152  vtkPointData*,
153  vtkPointData* );
154  int Axis;
156  int Capping;
157  double DefaultAngle;
158  double Translation;
159  double DeltaRadius;
160 
161 //BTX
162  vtksys_stl::map<vtkIdType,double> PerBlockAngles;
163 //ETX
164 
165  private:
167  void operator=(const vtkQuadRotationalExtrusionFilter&); // Not implemented.
168 };
169 
170 #endif