VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkRotationalExtrusionFilter Class Reference

sweep polygonal data creating "skirt" from free edges and lines, and lines from vertices More...

#include <vtkRotationalExtrusionFilter.h>

Inherits vtkPolyDataAlgorithm.

Public Types

typedef vtkPolyDataAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkRotationalExtrusionFilterNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetResolution (int)
 
virtual int GetResolution ()
 
virtual void SetCapping (int)
 
virtual int GetCapping ()
 
virtual void CappingOn ()
 
virtual void CappingOff ()
 
virtual void SetAngle (double)
 
virtual double GetAngle ()
 
virtual void SetTranslation (double)
 
virtual double GetTranslation ()
 
virtual void SetDeltaRadius (double)
 
virtual double GetDeltaRadius ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static
vtkRotationalExtrusionFilter
SafeDownCast (vtkObjectBase *o)
 
static
vtkRotationalExtrusionFilter
New ()
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkRotationalExtrusionFilter ()
 
 ~vtkRotationalExtrusionFilter ()
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 

Protected Attributes

int Resolution
 
int Capping
 
double Angle
 
double Translation
 
double DeltaRadius
 

Detailed Description

sweep polygonal data creating "skirt" from free edges and lines, and lines from vertices

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.
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)
Tests:
vtkRotationalExtrusionFilter (Tests)

Definition at line 69 of file vtkRotationalExtrusionFilter.h.

Member Typedef Documentation

typedef vtkPolyDataAlgorithm vtkRotationalExtrusionFilter::Superclass

Definition at line 72 of file vtkRotationalExtrusionFilter.h.

Constructor & Destructor Documentation

vtkRotationalExtrusionFilter::vtkRotationalExtrusionFilter ( )
protected
vtkRotationalExtrusionFilter::~vtkRotationalExtrusionFilter ( )
inlineprotected

Definition at line 113 of file vtkRotationalExtrusionFilter.h.

Member Function Documentation

static int vtkRotationalExtrusionFilter::IsTypeOf ( const char *  type)
static
virtual int vtkRotationalExtrusionFilter::IsA ( const char *  type)
virtual
static vtkRotationalExtrusionFilter* vtkRotationalExtrusionFilter::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkRotationalExtrusionFilter::NewInstanceInternal ( ) const
protectedvirtual
vtkRotationalExtrusionFilter* vtkRotationalExtrusionFilter::NewInstance ( ) const
void vtkRotationalExtrusionFilter::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
static 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).

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

Set/Get resolution of sweep operation. Resolution controls the number of intermediate node points.

virtual void vtkRotationalExtrusionFilter::SetCapping ( int  )
virtual

Turn on/off the capping of the skirt.

virtual int vtkRotationalExtrusionFilter::GetCapping ( )
virtual

Turn on/off the capping of the skirt.

virtual void vtkRotationalExtrusionFilter::CappingOn ( )
virtual

Turn on/off the capping of the skirt.

virtual void vtkRotationalExtrusionFilter::CappingOff ( )
virtual

Turn on/off the capping of the skirt.

virtual void vtkRotationalExtrusionFilter::SetAngle ( double  )
virtual

Set/Get angle of rotation.

virtual double vtkRotationalExtrusionFilter::GetAngle ( )
virtual

Set/Get angle of rotation.

virtual void vtkRotationalExtrusionFilter::SetTranslation ( double  )
virtual

Set/Get total amount of translation along the z-axis.

virtual double vtkRotationalExtrusionFilter::GetTranslation ( )
virtual

Set/Get total amount of translation along the z-axis.

virtual void vtkRotationalExtrusionFilter::SetDeltaRadius ( double  )
virtual

Set/Get change in radius during sweep process.

virtual double vtkRotationalExtrusionFilter::GetDeltaRadius ( )
virtual

Set/Get change in radius during sweep process.

int vtkRotationalExtrusionFilter::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protected

Member Data Documentation

int vtkRotationalExtrusionFilter::Resolution
protected

Definition at line 116 of file vtkRotationalExtrusionFilter.h.

int vtkRotationalExtrusionFilter::Capping
protected

Definition at line 117 of file vtkRotationalExtrusionFilter.h.

double vtkRotationalExtrusionFilter::Angle
protected

Definition at line 118 of file vtkRotationalExtrusionFilter.h.

double vtkRotationalExtrusionFilter::Translation
protected

Definition at line 119 of file vtkRotationalExtrusionFilter.h.

double vtkRotationalExtrusionFilter::DeltaRadius
protected

Definition at line 120 of file vtkRotationalExtrusionFilter.h.


The documentation for this class was generated from the following file: