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
vtkStripper Class Reference

create triangle strips and/or poly-lines More...

#include <vtkStripper.h>

Inherits vtkPolyDataAlgorithm.

Public Types

typedef vtkPolyDataAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkStripperNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetMaximumLength (int)
 
virtual int GetMaximumLength ()
 
virtual void PassCellDataAsFieldDataOn ()
 
virtual void PassCellDataAsFieldDataOff ()
 
virtual void SetPassCellDataAsFieldData (int)
 
virtual int GetPassCellDataAsFieldData ()
 
virtual void SetPassThroughCellIds (int)
 
virtual int GetPassThroughCellIds ()
 
virtual void PassThroughCellIdsOn ()
 
virtual void PassThroughCellIdsOff ()
 
virtual void SetPassThroughPointIds (int)
 
virtual int GetPassThroughPointIds ()
 
virtual void PassThroughPointIdsOn ()
 
virtual void PassThroughPointIdsOff ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkStripperSafeDownCast (vtkObjectBase *o)
 
static vtkStripperNew ()
 

Protected Member Functions

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

Protected Attributes

int MaximumLength
 
int PassCellDataAsFieldData
 
int PassThroughCellIds
 
int PassThroughPointIds
 

Detailed Description

create triangle strips and/or poly-lines

vtkStripper is a filter that generates triangle strips and/or poly-lines from input polygons, triangle strips, and lines. Input polygons are assembled into triangle strips only if they are triangles; other types of polygons are passed through to the output and not stripped. (Use vtkTriangleFilter to triangulate non-triangular polygons prior to running this filter if you need to strip all the data.) The filter will pass through (to the output) vertices if they are present in the input polydata.

The ivar MaximumLength can be used to control the maximum allowable triangle strip and poly-line length.

By default, this filter discards any cell data associated with the input. Thus is because the cell structure changes and and the old cell data is no longer valid. When PassCellDataAsFieldData flag is set, the cell data is passed as FieldData to the output using the following rule: 1) for every cell in the output that is not a triangle strip, the cell data is inserted once per cell in the output field data. 2) for every triangle strip cell in the output: ii) 1 tuple is inserted for every point(j|j>=2) in the strip. This is the cell data for the cell formed by (j-2, j-1, j) in the input. The field data order is same as cell data i.e. (verts,line,polys,tsrips).

Warning
If triangle strips or poly-lines exist in the input data they will be passed through to the output data. This filter will only construct triangle strips if triangle polygons are available; and will only construct poly-lines if lines are available.
See Also
vtkTriangleFilter
Examples:
vtkStripper (Examples)
Tests:
vtkStripper (Tests)

Definition at line 65 of file vtkStripper.h.

Member Typedef Documentation

typedef vtkPolyDataAlgorithm vtkStripper::Superclass

Definition at line 68 of file vtkStripper.h.

Constructor & Destructor Documentation

vtkStripper::vtkStripper ( )
protected
vtkStripper::~vtkStripper ( )
inlineprotected

Definition at line 111 of file vtkStripper.h.

Member Function Documentation

static int vtkStripper::IsTypeOf ( const char *  type)
static
virtual int vtkStripper::IsA ( const char *  type)
virtual
static vtkStripper* vtkStripper::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkStripper::NewInstanceInternal ( ) const
protectedvirtual
vtkStripper* vtkStripper::NewInstance ( ) const
void vtkStripper::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
static vtkStripper* vtkStripper::New ( )
static

Construct object with MaximumLength set to 1000.

virtual void vtkStripper::SetMaximumLength ( int  )
virtual

Specify the maximum number of triangles in a triangle strip, and/or the maximum number of lines in a poly-line.

virtual int vtkStripper::GetMaximumLength ( )
virtual

Specify the maximum number of triangles in a triangle strip, and/or the maximum number of lines in a poly-line.

virtual void vtkStripper::PassCellDataAsFieldDataOn ( )
virtual

Enable/Disable passing of the CellData in the input to the output as FieldData. Note the field data is transformed.

virtual void vtkStripper::PassCellDataAsFieldDataOff ( )
virtual

Enable/Disable passing of the CellData in the input to the output as FieldData. Note the field data is transformed.

virtual void vtkStripper::SetPassCellDataAsFieldData ( int  )
virtual

Enable/Disable passing of the CellData in the input to the output as FieldData. Note the field data is transformed.

virtual int vtkStripper::GetPassCellDataAsFieldData ( )
virtual

Enable/Disable passing of the CellData in the input to the output as FieldData. Note the field data is transformed.

virtual void vtkStripper::SetPassThroughCellIds ( int  )
virtual

If on, the output polygonal dataset will have a celldata array that holds the cell index of the original 3D cell that produced each output cell. This is useful for picking. The default is off to conserve memory.

virtual int vtkStripper::GetPassThroughCellIds ( )
virtual

If on, the output polygonal dataset will have a celldata array that holds the cell index of the original 3D cell that produced each output cell. This is useful for picking. The default is off to conserve memory.

virtual void vtkStripper::PassThroughCellIdsOn ( )
virtual

If on, the output polygonal dataset will have a celldata array that holds the cell index of the original 3D cell that produced each output cell. This is useful for picking. The default is off to conserve memory.

virtual void vtkStripper::PassThroughCellIdsOff ( )
virtual

If on, the output polygonal dataset will have a celldata array that holds the cell index of the original 3D cell that produced each output cell. This is useful for picking. The default is off to conserve memory.

virtual void vtkStripper::SetPassThroughPointIds ( int  )
virtual

If on, the output polygonal dataset will have a pointdata array that holds the point index of the original vertex that produced each output vertex. This is useful for picking. The default is off to conserve memory.

virtual int vtkStripper::GetPassThroughPointIds ( )
virtual

If on, the output polygonal dataset will have a pointdata array that holds the point index of the original vertex that produced each output vertex. This is useful for picking. The default is off to conserve memory.

virtual void vtkStripper::PassThroughPointIdsOn ( )
virtual

If on, the output polygonal dataset will have a pointdata array that holds the point index of the original vertex that produced each output vertex. This is useful for picking. The default is off to conserve memory.

virtual void vtkStripper::PassThroughPointIdsOff ( )
virtual

If on, the output polygonal dataset will have a pointdata array that holds the point index of the original vertex that produced each output vertex. This is useful for picking. The default is off to conserve memory.

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

Member Data Documentation

int vtkStripper::MaximumLength
protected

Definition at line 116 of file vtkStripper.h.

int vtkStripper::PassCellDataAsFieldData
protected

Definition at line 117 of file vtkStripper.h.

int vtkStripper::PassThroughCellIds
protected

Definition at line 118 of file vtkStripper.h.

int vtkStripper::PassThroughPointIds
protected

Definition at line 119 of file vtkStripper.h.


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