VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
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 Types

typedef vtkWriter Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkSTLWriterNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
vtkPolyDataGetInput ()
vtkPolyDataGetInput (int port)
virtual void SetFileName (const char *)
virtual char * GetFileName ()
virtual void SetFileType (int)
virtual int GetFileType ()
void SetFileTypeToASCII ()
void SetFileTypeToBinary ()

Static Public Member Functions

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

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkSTLWriter ()
 ~vtkSTLWriter ()
void WriteData ()
void WriteBinarySTL (vtkPoints *pts, vtkCellArray *polys)
void WriteAsciiSTL (vtkPoints *pts, vtkCellArray *polys)
virtual int FillInputPortInformation (int port, vtkInformation *info)

Protected Attributes

char * FileName
char * Header
int FileType

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


Member Typedef Documentation

Reimplemented from vtkWriter.

Definition at line 45 of file vtkSTLWriter.h.


Constructor & Destructor Documentation

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

Definition at line 70 of file vtkSTLWriter.h.


Member Function Documentation

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

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkAlgorithm.

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

Reimplemented from vtkWriter.

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

Reimplemented from vtkWriter.

Reimplemented from vtkWriter.

virtual vtkObjectBase* vtkSTLWriter::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkWriter.

Reimplemented from vtkWriter.

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

Get the input to this writer.

Reimplemented from vtkWriter.

Get the input to this writer.

Reimplemented from vtkWriter.

virtual void vtkSTLWriter::SetFileName ( const char *  ) [virtual]

Specify file name of vtk polygon data file to write.

virtual char* vtkSTLWriter::GetFileName ( ) [virtual]

Specify file name of vtk polygon data file to write.

virtual void vtkSTLWriter::SetFileType ( int  ) [virtual]

Specify file type (ASCII or BINARY) for vtk data file.

virtual int vtkSTLWriter::GetFileType ( ) [virtual]

Specify file type (ASCII or BINARY) for vtk data file.

Specify file type (ASCII or BINARY) for vtk data file.

Definition at line 64 of file vtkSTLWriter.h.

Specify file type (ASCII or BINARY) for vtk data file.

Definition at line 65 of file vtkSTLWriter.h.

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

Implements vtkWriter.

void vtkSTLWriter::WriteBinarySTL ( vtkPoints pts,
vtkCellArray polys 
) [protected]
void vtkSTLWriter::WriteAsciiSTL ( vtkPoints pts,
vtkCellArray polys 
) [protected]
virtual int vtkSTLWriter::FillInputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.

Reimplemented from vtkAlgorithm.


Member Data Documentation

char* vtkSTLWriter::FileName [protected]

Definition at line 81 of file vtkSTLWriter.h.

char* vtkSTLWriter::Header [protected]

Definition at line 82 of file vtkSTLWriter.h.

Definition at line 83 of file vtkSTLWriter.h.


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