#include <vtkLinearExtrusionFilter.h>
Inheritance diagram for vtkLinearExtrusionFilter:
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.
Public Types | |
typedef vtkPolyDataToPolyDataFilter | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
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 (float) |
virtual float | GetScaleFactor () |
virtual void | SetVector (float, float, float) |
virtual void | SetVector (float[3]) |
virtual float * | GetVector () |
virtual void | GetVector (float data[3]) |
virtual void | SetExtrusionPoint (float, float, float) |
virtual void | SetExtrusionPoint (float[3]) |
virtual float * | GetExtrusionPoint () |
virtual void | GetExtrusionPoint (float data[3]) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkLinearExtrusionFilter * | SafeDownCast (vtkObject *o) |
static vtkLinearExtrusionFilter * | New () |
Protected Member Functions | |
vtkLinearExtrusionFilter () | |
~vtkLinearExtrusionFilter () | |
void | Execute () |
float * | ViaNormal (float x[3], vtkIdType id, vtkDataArray *normals) |
float * | ViaVector (float x[3], vtkIdType id, vtkDataArray *normals=0) |
float * | ViaPoint (float x[3], vtkIdType id, vtkDataArray *normals=0) |
Protected Attributes | |
int | ExtrusionType |
int | Capping |
float | ScaleFactor |
float | Vector [3] |
float | ExtrusionPoint [3] |
float *(vtkLinearExtrusionFilter::* | ExtrudePoint )(float x[3], vtkIdType id, vtkDataArray *normals) |
|
Reimplemented from vtkPolyDataToPolyDataFilter. Reimplemented in vtkPLinearExtrusionFilter. Definition at line 71 of file vtkLinearExtrusionFilter.h. |
|
|
|
Definition at line 119 of file vtkLinearExtrusionFilter.h. |
|
Reimplemented from vtkPolyDataToPolyDataFilter. Reimplemented in vtkPLinearExtrusionFilter. |
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkPolyDataToPolyDataFilter. Reimplemented in vtkPLinearExtrusionFilter. |
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkPolyDataToPolyDataFilter. Reimplemented in vtkPLinearExtrusionFilter. |
|
Reimplemented from vtkPolyDataToPolyDataFilter. Reimplemented in vtkPLinearExtrusionFilter. |
|
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 vtkPolyDataToPolyDataFilter. Reimplemented in vtkPLinearExtrusionFilter. |
|
Create object with normal extrusion type, capping on, scale factor=1.0, vector (0,0,1), and extrusion point (0,0,0). Reimplemented from vtkObject. Reimplemented in vtkPLinearExtrusionFilter. |
|
Set/Get the type of extrusion. |
|
Set/Get the type of extrusion. |
|
Set/Get the type of extrusion. Definition at line 82 of file vtkLinearExtrusionFilter.h. References VTK_VECTOR_EXTRUSION. |
|
Set/Get the type of extrusion. Definition at line 84 of file vtkLinearExtrusionFilter.h. References VTK_NORMAL_EXTRUSION. |
|
Set/Get the type of extrusion. Definition at line 86 of file vtkLinearExtrusionFilter.h. References VTK_POINT_EXTRUSION. |
|
Turn on/off the capping of the skirt. |
|
Turn on/off the capping of the skirt. |
|
Turn on/off the capping of the skirt. |
|
Turn on/off the capping of the skirt. |
|
Set/Get extrusion scale factor, |
|
Set/Get extrusion scale factor, |
|
Set/Get extrusion vector. Only needs to be set if VectorExtrusion is turned on. |
|
Set/Get extrusion vector. Only needs to be set if VectorExtrusion is turned on. |
|
Set/Get extrusion vector. Only needs to be set if VectorExtrusion is turned on. |
|
Set/Get extrusion vector. Only needs to be set if VectorExtrusion is turned on. |
|
Set/Get extrusion point. Only needs to be set if PointExtrusion is turned on. This is the point towards which extrusion occurs. |
|
Set/Get extrusion point. Only needs to be set if PointExtrusion is turned on. This is the point towards which extrusion occurs. |
|
Set/Get extrusion point. Only needs to be set if PointExtrusion is turned on. This is the point towards which extrusion occurs. |
|
Set/Get extrusion point. Only needs to be set if PointExtrusion is turned on. This is the point towards which extrusion occurs. |
|
This method is the old style execute method Reimplemented from vtkSource. Reimplemented in vtkPLinearExtrusionFilter. |
|
|
|
|
|
|
|
Definition at line 122 of file vtkLinearExtrusionFilter.h. |
|
Definition at line 123 of file vtkLinearExtrusionFilter.h. |
|
Definition at line 124 of file vtkLinearExtrusionFilter.h. |
|
Definition at line 125 of file vtkLinearExtrusionFilter.h. |
|
Definition at line 126 of file vtkLinearExtrusionFilter.h. |
|
|