VTK
|
sweep polygonal data creating a "skirt" from free edges and lines, and lines from vertices More...
#include <vtkLinearExtrusionFilter.h>
Public Types | |
typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkLinearExtrusionFilter * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetExtrusionType (int) |
virtual int | GetExtrusionType () |
void | SetExtrusionTypeToVectorExtrusion () |
void | SetExtrusionTypeToNormalExtrusion () |
void | SetExtrusionTypeToPointExtrusion () |
virtual void | SetCapping (int) |
virtual int | GetCapping () |
virtual void | CappingOn () |
virtual void | CappingOff () |
virtual void | SetScaleFactor (double) |
virtual double | GetScaleFactor () |
virtual void | SetVector (double, double, double) |
virtual void | SetVector (double[3]) |
virtual double * | GetVector () |
virtual void | GetVector (double data[3]) |
virtual void | SetExtrusionPoint (double, double, double) |
virtual void | SetExtrusionPoint (double[3]) |
virtual double * | GetExtrusionPoint () |
virtual void | GetExtrusionPoint (double data[3]) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkLinearExtrusionFilter * | SafeDownCast (vtkObjectBase *o) |
static vtkLinearExtrusionFilter * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkLinearExtrusionFilter () | |
~vtkLinearExtrusionFilter () | |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
void | ViaNormal (double x[3], vtkIdType id, vtkDataArray *normals) |
void | ViaVector (double x[3], vtkIdType id, vtkDataArray *normals=0) |
void | ViaPoint (double x[3], vtkIdType id, vtkDataArray *normals=0) |
Protected Attributes | |
int | ExtrusionType |
int | Capping |
double | ScaleFactor |
double | Vector [3] |
double | ExtrusionPoint [3] |
void(vtkLinearExtrusionFilter::* | ExtrudePoint )(double x[3], vtkIdType id, vtkDataArray *normals) |
sweep polygonal data creating a "skirt" from free edges and lines, and lines from vertices
vtkLinearExtrusionFilter is a modeling filter. It takes polygonal data as input and generates polygonal data on output. The input dataset is swept according to some extrusion function and creates new polygonal primitives. These primitives form a "skirt" or swept surface. For example, sweeping a line results in a quadrilateral, and sweeping a triangle creates a "wedge".
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" ivar. Also, you can extrude in the direction of a user specified vector, towards a point, or in the direction of vertex normals (normals must be provided - use vtkPolyDataNormals if necessary). The amount of extrusion is controlled by the "ScaleFactor" 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 create 3D fonts, 3D irregular bar charts, or to model 2 1/2D objects like punched plates. It also can be used to create solid objects from 2D polygonal meshes.
Definition at line 68 of file vtkLinearExtrusionFilter.h.
typedef vtkPolyDataAlgorithm vtkLinearExtrusionFilter::Superclass |
Definition at line 71 of file vtkLinearExtrusionFilter.h.
|
protected |
|
inlineprotected |
Definition at line 119 of file vtkLinearExtrusionFilter.h.
|
static |
|
virtual |
Reimplemented in vtkPLinearExtrusionFilter.
|
static |
|
protectedvirtual |
Reimplemented in vtkPLinearExtrusionFilter.
vtkLinearExtrusionFilter* vtkLinearExtrusionFilter::NewInstance | ( | ) | const |
void vtkLinearExtrusionFilter::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
static |
Create object with normal extrusion type, capping on, scale factor=1.0, vector (0,0,1), and extrusion point (0,0,0).
|
virtual |
Set/Get the type of extrusion.
|
virtual |
Set/Get the type of extrusion.
|
inline |
Set/Get the type of extrusion.
Definition at line 82 of file vtkLinearExtrusionFilter.h.
|
inline |
Set/Get the type of extrusion.
Definition at line 84 of file vtkLinearExtrusionFilter.h.
|
inline |
Set/Get the type of extrusion.
Definition at line 86 of file vtkLinearExtrusionFilter.h.
|
virtual |
Turn on/off the capping of the skirt.
|
virtual |
Turn on/off the capping of the skirt.
|
virtual |
Turn on/off the capping of the skirt.
|
virtual |
Turn on/off the capping of the skirt.
|
virtual |
Set/Get extrusion scale factor,
|
virtual |
Set/Get extrusion scale factor,
|
virtual |
Set/Get extrusion vector. Only needs to be set if VectorExtrusion is turned on.
|
virtual |
Set/Get extrusion vector. Only needs to be set if VectorExtrusion is turned on.
|
virtual |
Set/Get extrusion vector. Only needs to be set if VectorExtrusion is turned on.
|
virtual |
Set/Get extrusion vector. Only needs to be set if VectorExtrusion is turned on.
|
virtual |
Set/Get extrusion point. Only needs to be set if PointExtrusion is turned on. This is the point towards which extrusion occurs.
|
virtual |
Set/Get extrusion point. Only needs to be set if PointExtrusion is turned on. This is the point towards which extrusion occurs.
|
virtual |
Set/Get extrusion point. Only needs to be set if PointExtrusion is turned on. This is the point towards which extrusion occurs.
|
virtual |
Set/Get extrusion point. Only needs to be set if PointExtrusion is turned on. This is the point towards which extrusion occurs.
|
protectedvirtual |
Reimplemented in vtkPLinearExtrusionFilter.
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 122 of file vtkLinearExtrusionFilter.h.
|
protected |
Definition at line 123 of file vtkLinearExtrusionFilter.h.
|
protected |
Definition at line 124 of file vtkLinearExtrusionFilter.h.
|
protected |
Definition at line 125 of file vtkLinearExtrusionFilter.h.
|
protected |
Definition at line 126 of file vtkLinearExtrusionFilter.h.
|
protected |
Definition at line 129 of file vtkLinearExtrusionFilter.h.