Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

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.
Created by:
  • Schroeder, Will
CVS contributions (if > 5%):
  • Schroeder, Will (47%)
  • Henderson, Amy (19%)
  • Martin, Ken (11%)
  • Lorensen, Bill (10%)
  • Cedilnik, Andy (5%)
CVS logs (CVSweb):
  • .h (/IO/vtkSTLWriter.h)
  • .cxx (/IO/vtkSTLWriter.cxx)
Tests:
vtkSTLWriter (Tests)

Definition at line 50 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

vtkSTLWriterNew ()
int IsTypeOf (const char *type)
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

typedef vtkPolyDataWriter vtkSTLWriter::Superclass
 

Reimplemented from vtkPolyDataWriter.

Definition at line 54 of file vtkSTLWriter.h.


Constructor & Destructor Documentation

vtkSTLWriter::vtkSTLWriter  )  [protected]
 

vtkSTLWriter::~vtkSTLWriter  )  [inline, protected]
 

Definition at line 59 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]
 

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 vtkTypeRevisionMacro 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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataWriter.

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: