VTK
vtkQuadRotationalExtrusionFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: Visualization Toolkit
4Module: vtkQuadRotationalExtrusionFilter.h
5
6Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7All rights reserved.
8See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10This software is distributed WITHOUT ANY WARRANTY; without even
11the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
65#ifndef vtkQuadRotationalExtrusionFilter_h
66#define vtkQuadRotationalExtrusionFilter_h
67
68#include "vtkFiltersModelingModule.h" // For export macro
70#include <map> // STL vector need for per block angles
71
72class vtkPoints;
73class vtkPointData;
74
76{
77 public:
79 void PrintSelf(ostream& os, vtkIndent indent);
80
87
89 {
90 USE_X = 0,
91 USE_Y = 1,
92 USE_Z = 2
93 };
94
96
99 vtkSetClampMacro(Axis, int, 0, 2);
100 vtkGetMacro(Axis, int);
101 void SetAxisToX() { this->SetAxis(USE_X); };
102 void SetAxisToY() { this->SetAxis(USE_Y); };
103 void SetAxisToZ() { this->SetAxis(USE_Z); };
105
107
111 vtkSetClampMacro(Resolution,int,1,VTK_INT_MAX);
112 vtkGetMacro(Resolution,int);
114
116
119 vtkSetMacro(Capping,int);
120 vtkGetMacro(Capping,int);
121 vtkBooleanMacro(Capping,int);
123
125
128 vtkSetMacro(DefaultAngle,double);
129 vtkGetMacro(DefaultAngle,double);
131
133
137 void AddPerBlockAngle(vtkIdType blockId, double angle);
139
141
144 vtkSetMacro(Translation,double);
145 vtkGetMacro(Translation,double);
147
149
152 vtkSetMacro(DeltaRadius,double);
153 vtkGetMacro(DeltaRadius,double);
155
156 protected:
159
164
165 int RotateAroundAxis( double,
166 vtkIdType,
167 vtkPoints*,
168 vtkPoints*,
170 vtkPointData* );
171 int Axis;
177
178 std::map<vtkIdType,double> PerBlockAngles;
179
180 private:
182 void operator=(const vtkQuadRotationalExtrusionFilter&) VTK_DELETE_FUNCTION;
183};
184
185#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
represent and manipulate point attribute data
Definition: vtkPointData.h:38
represent and manipulate 3D points
Definition: vtkPoints.h:40
sweep polygonal data creating "skirt" from free edges and lines, and lines from vertices
void AddPerBlockAngle(vtkIdType blockId, double angle)
void RemoveAllPerBlockAngles()
Set/Get angles of rotation for each block in a composite data set.
int RotateAroundAxis(double, vtkIdType, vtkPoints *, vtkPoints *, vtkPointData *, vtkPointData *)
int FillInputPortInformation(int, vtkInformation *)
Fill the input port information objects for this algorithm.
static vtkQuadRotationalExtrusionFilter * New()
Create object with capping on, angle of 360 degrees, resolution = 12, and no translation along z-axis...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int vtkIdType
Definition: vtkType.h:287
#define VTK_INT_MAX
Definition: vtkType.h:153