Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkSTLWriter Class Reference

write stereo lithography files. More...

#include <vtkSTLWriter.h>

Inheritance diagram for vtkSTLWriter:

Inheritance graph
[legend]
Collaboration diagram for vtkSTLWriter:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)

Static Public Methods

vtkSTLWriter * New ()
int IsTypeOf (const char *type)
vtkSTLWriter * SafeDownCast (vtkObject *o)

Protected Methods

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

Detailed Description

write stereo lithography files.

Date:
2001/10/11 13:37:34
Revision:
1.38

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 66 of file vtkSTLWriter.h.


Constructor & Destructor Documentation

vtkSTLWriter::vtkSTLWriter   [protected]
 

vtkSTLWriter::~vtkSTLWriter   [inline, protected]
 

Definition at line 74 of file vtkSTLWriter.h.


Member Function Documentation

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]
 

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

int vtkSTLWriter::IsTypeOf const char *    type [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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataWriter.

virtual int vtkSTLWriter::IsA const char *    type [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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataWriter.

vtkSTLWriter* vtkSTLWriter::SafeDownCast vtkObject   o [static]
 

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 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 Thu Mar 28 14:42:57 2002 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001