Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
vtkRotationalExtrusionFilter Class Reference
sweep polygonal data creating "skirt" from free edges and lines, and lines from vertices.
More...
#include <vtkRotationalExtrusionFilter.h>
Inheritance diagram for vtkRotationalExtrusionFilter:
[legend]Collaboration diagram for vtkRotationalExtrusionFilter:
[legend]List of all members.
Detailed Description
sweep polygonal data creating "skirt" from free edges and lines, and lines from vertices.
-
Date:
-
2000/12/10 20:08:51
-
Revision:
-
1.32
vtkRotationalExtrusionFilter is a modeling filter. It takes polygonal data as input and generates polygonal data on output. The input dataset is swept around the z-axis to create new polygonal primitives. These primitives form a "skirt" or swept surface. For example, sweeping a line results in a cylindrical shell, and sweeping a circle creates a torus.
There are a number of control parameters for this filter. You can control whether the sweep of a 2D object (i.e., polygon or triangle strip) is capped with the generating geometry via the "Capping" instance variable. Also, you can control the angle of rotation, and whether translation along the z-axis is performed along with the rotation. (Translation is useful for creating "springs".) You also can adjust the radius of the generating geometry using the "DeltaRotation" instance variable.
The skirt is generated by locating certain topological features. Free edges (edges of polygons or triangle strips only used by one polygon or triangle strips) generate surfaces. This is true also of lines or polylines. Vertices generate lines.
This filter can be used to model axisymmetric objects like cylinders, bottles, and wine glasses; or translational/rotational symmetric objects like springs or corkscrews.
-
Warning:
-
If the object sweeps 360 degrees, radius does not vary, and the object does not translate, capping is not performed. This is because the cap is unnecessary.
-
Warning:
-
Some polygonal objects have no free edges (e.g., sphere). When swept, this will result in two separate surfaces if capping is on, or no surface if capping is off.
-
See also:
-
vtkLinearExtrusionFilter
-
Examples:
-
vtkRotationalExtrusionFilter (examples)
Definition at line 92 of file vtkRotationalExtrusionFilter.h.
Constructor & Destructor Documentation
vtkRotationalExtrusionFilter::vtkRotationalExtrusionFilter |
( |
|
) |
[protected] |
|
vtkRotationalExtrusionFilter::~vtkRotationalExtrusionFilter |
( |
|
) |
[inline, protected] |
|
vtkRotationalExtrusionFilter::vtkRotationalExtrusionFilter |
( |
const vtkRotationalExtrusionFilter & |
|
) |
[inline, protected] |
|
Member Function Documentation
virtual const char* vtkRotationalExtrusionFilter::GetClassName |
( |
|
) |
[virtual] |
|
int vtkRotationalExtrusionFilter::IsTypeOf |
( |
const char * |
type |
) |
[static] |
|
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataToPolyDataFilter. |
virtual int vtkRotationalExtrusionFilter::IsA |
( |
const char * |
type |
) |
[virtual] |
|
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataToPolyDataFilter. |
vtkRotationalExtrusionFilter* vtkRotationalExtrusionFilter::SafeDownCast |
( |
vtkObject * |
o |
) |
[static] |
|
void vtkRotationalExtrusionFilter::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
[virtual] |
|
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkSource. |
vtkRotationalExtrusionFilter* vtkRotationalExtrusionFilter::New |
( |
|
) |
[static] |
|
|
Create object with capping on, angle of 360 degrees, resolution = 12, and no translation along z-axis. vector (0,0,1), and point (0,0,0).
Reimplemented from vtkPolyDataSource. |
virtual void vtkRotationalExtrusionFilter::SetResolution |
( |
int |
|
) |
[virtual] |
|
|
Set/Get resolution of sweep operation. Resolution controls the number of intermediate node points. |
virtual int vtkRotationalExtrusionFilter::GetResolution |
( |
|
) |
[virtual] |
|
virtual void vtkRotationalExtrusionFilter::SetCapping |
( |
int |
|
) |
[virtual] |
|
|
Turn on/off the capping of the skirt. |
virtual int vtkRotationalExtrusionFilter::GetCapping |
( |
|
) |
[virtual] |
|
virtual void vtkRotationalExtrusionFilter::CappingOn |
( |
|
) |
[virtual] |
|
virtual void vtkRotationalExtrusionFilter::CappingOff |
( |
|
) |
[virtual] |
|
virtual void vtkRotationalExtrusionFilter::SetAngle |
( |
float |
|
) |
[virtual] |
|
|
Set/Get angle of rotation. |
virtual float vtkRotationalExtrusionFilter::GetAngle |
( |
|
) |
[virtual] |
|
virtual void vtkRotationalExtrusionFilter::SetTranslation |
( |
float |
|
) |
[virtual] |
|
|
Set/Get total amount of translation along the z-axis. |
virtual float vtkRotationalExtrusionFilter::GetTranslation |
( |
|
) |
[virtual] |
|
virtual void vtkRotationalExtrusionFilter::SetDeltaRadius |
( |
float |
|
) |
[virtual] |
|
|
Set/Get change in radius during sweep process. |
virtual float vtkRotationalExtrusionFilter::GetDeltaRadius |
( |
|
) |
[virtual] |
|
void vtkRotationalExtrusionFilter::operator= |
( |
const vtkRotationalExtrusionFilter & |
|
) |
[inline, protected] |
|
void vtkRotationalExtrusionFilter::Execute |
( |
|
) |
[protected, virtual] |
|
Member Data Documentation
int vtkRotationalExtrusionFilter::Resolution [protected]
|
|
int vtkRotationalExtrusionFilter::Capping [protected]
|
|
float vtkRotationalExtrusionFilter::Angle [protected]
|
|
float vtkRotationalExtrusionFilter::Translation [protected]
|
|
float vtkRotationalExtrusionFilter::DeltaRadius [protected]
|
|
The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:59:53 2001 for VTK by
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001