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 ()
 vtkSTLWriter (const vtkSTLWriter &)
void operator= (const vtkSTLWriter &)
void WriteData ()
void WriteBinarySTL (vtkPoints *pts, vtkCellArray *polys)
void WriteAsciiSTL (vtkPoints *pts, vtkCellArray *polys)

Detailed Description

write stereo lithography files.

Date:
2000/12/10 20:08:51
Revision:
1.35

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.
Examples:
vtkSTLWriter (examples)

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.

vtkSTLWriter::vtkSTLWriter const vtkSTLWriter &    [inline, protected]
 

Definition at line 75 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::operator= const vtkSTLWriter &    [inline, protected]
 

Definition at line 76 of file vtkSTLWriter.h.

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 Wed Nov 21 13:00:29 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001