vtkSTLWriter Class Reference

#include <vtkSTLWriter.h>

Inheritance diagram for vtkSTLWriter:

Inheritance graph
[legend]
Collaboration diagram for vtkSTLWriter:

Collaboration graph
[legend]

List of all members.


Detailed Description

write stereo lithography files

vtkSTLWriter writes stereo lithography (.stl) files in either ASCII or binary form. Stereo lithography files only contain triangles. If polygons with more than 3 vertices are present, only the first 3 vertices are written. Use vtkTriangleFilter to convert polygons to triangles.

Warning:
Binary files written on one system may not be readable on other systems. vtkSTLWriter uses VAX or PC byte ordering and swaps bytes on other systems.
Tests:
vtkSTLWriter (Tests)

Definition at line 36 of file vtkSTLWriter.h.


Public Types

typedef vtkPolyDataWriter Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
virtual void PrintSelf (ostream &os, vtkIndent indent)

Static Public Member Functions

static vtkSTLWriterNew ()
static int IsTypeOf (const char *type)
static vtkSTLWriterSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkSTLWriter ()
 ~vtkSTLWriter ()
void WriteData ()
void WriteBinarySTL (vtkPoints *pts, vtkCellArray *polys)
void WriteAsciiSTL (vtkPoints *pts, vtkCellArray *polys)

Member Typedef Documentation

Reimplemented from vtkPolyDataWriter.

Definition at line 40 of file vtkSTLWriter.h.


Constructor & Destructor Documentation

vtkSTLWriter::vtkSTLWriter (  )  [protected]

vtkSTLWriter::~vtkSTLWriter (  )  [inline, protected]

Definition at line 45 of file vtkSTLWriter.h.


Member Function Documentation

static vtkSTLWriter* vtkSTLWriter::New (  )  [static]

Created object with default header, ASCII format, and default names for scalars, vectors, tensors, normals, and texture coordinates.

Reimplemented from vtkPolyDataWriter.

virtual const char* vtkSTLWriter::GetClassName (  )  [virtual]

Reimplemented from vtkPolyDataWriter.

static int vtkSTLWriter::IsTypeOf ( const char *  name  )  [static]

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 vtkPolyDataWriter.

virtual int vtkSTLWriter::IsA ( const char *  name  )  [virtual]

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 vtkPolyDataWriter.

static vtkSTLWriter* vtkSTLWriter::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkPolyDataWriter.

virtual void vtkSTLWriter::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

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 vtkPolyDataWriter.

void vtkSTLWriter::WriteData (  )  [protected, virtual]

Reimplemented from vtkPolyDataWriter.

void vtkSTLWriter::WriteBinarySTL ( vtkPoints pts,
vtkCellArray polys 
) [protected]

void vtkSTLWriter::WriteAsciiSTL ( vtkPoints pts,
vtkCellArray polys 
) [protected]


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

Generated on Sat Dec 27 13:51:22 2008 for VTK by  doxygen 1.5.6