#include <vtkLinearExtrusionFilter.h>
Inheritance diagram for vtkLinearExtrusionFilter:
Public Methods | |
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 | SetLowerCap (int) |
virtual int | GetLowerCap () |
virtual void | LowerCapOn () |
virtual void | LowerCapOff () |
virtual void | SetUpperCap (int) |
virtual int | GetUpperCap () |
virtual void | UpperCapOn () |
virtual void | UpperCapOff () |
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 Methods | |
int | IsTypeOf (const char *type) |
vtkLinearExtrusionFilter * | SafeDownCast (vtkObject *o) |
vtkLinearExtrusionFilter * | New () |
Protected Methods | |
vtkLinearExtrusionFilter () | |
~vtkLinearExtrusionFilter () | |
vtkLinearExtrusionFilter (const vtkLinearExtrusionFilter &) | |
void | operator= (const vtkLinearExtrusionFilter &) |
void | Execute () |
float * | ViaNormal (float x[3], int id, vtkNormals *normals=NULL) |
float * | ViaVector (float x[3], int id, vtkNormals *normals=NULL) |
float * | ViaPoint (float x[3], int id, vtkNormals *normals=NULL) |
Protected Attributes | |
int | ExtrusionType |
int | Capping |
int | LowerCap |
int | UpperCap |
float | ScaleFactor |
float | Vector [3] |
float | ExtrusionPoint [3] |
float *(vtkLinearExtrusionFilter::* | ExtrudePoint )(float x[3], int id, vtkNormals *normals) |
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. (The capping can be further controlled by setting the LowerCap and UpperCap instance variables.) 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.
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkPolyDataToPolyDataFilter. |
|
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. |
|
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. |
|
Create object with normal extrusion type, capping on, scale factor=1.0, vector (0,0,1), and extrusion point (0,0,0). Reimplemented from vtkPolyDataSource. |
|
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. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkPolyDataToPolyDataFilter. |
|
Turn on/off the capping of the skirt. |
|
Set/Get extrusion point. Only needs to be set if PointExtrusion is turned on. This is the point towards which extrusion occurs. |
|
Set/Get the type of extrusion. |
|
Turn on/off the generation of the lower cap. This ivar is effective only if Capping is on. (The lower cap is the original (input) polydata.) |
|
Set/Get extrusion scale factor, |
|
Turn on/off the generation of the upper cap. This ivar is effective only if Capping is on. (The upper cap is the generated at the end of the extrusion.) |
|
Set/Get extrusion vector. Only needs to be set if VectorExtrusion is turned on. |