VTK
|
write stereo lithography files More...
#include <vtkSTLWriter.h>
Public Types | |
typedef vtkWriter | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkSTLWriter * | NewInstance () const |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
vtkPolyData * | GetInput () |
vtkPolyData * | GetInput (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 vtkSTLWriter * | New () |
static int | IsTypeOf (const char *type) |
static vtkSTLWriter * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () 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 |
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.
Definition at line 41 of file vtkSTLWriter.h.
typedef vtkWriter vtkSTLWriter::Superclass |
Reimplemented from vtkWriter.
Definition at line 45 of file vtkSTLWriter.h.
vtkSTLWriter::vtkSTLWriter | ( | ) | [protected] |
vtkSTLWriter::~vtkSTLWriter | ( | ) | [inline, protected] |
Definition at line 70 of file vtkSTLWriter.h.
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.
static vtkSTLWriter* vtkSTLWriter::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkWriter.
virtual vtkObjectBase* vtkSTLWriter::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkWriter.
vtkSTLWriter* vtkSTLWriter::NewInstance | ( | ) | const |
Reimplemented from vtkWriter.
virtual void vtkSTLWriter::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Get the input to this writer.
Reimplemented from vtkWriter.
vtkPolyData* vtkSTLWriter::GetInput | ( | int | port | ) |
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.
void vtkSTLWriter::SetFileTypeToASCII | ( | ) | [inline] |
Specify file type (ASCII or BINARY) for vtk data file.
Definition at line 64 of file vtkSTLWriter.h.
void vtkSTLWriter::SetFileTypeToBinary | ( | ) | [inline] |
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.
char* vtkSTLWriter::FileName [protected] |
Definition at line 81 of file vtkSTLWriter.h.
char* vtkSTLWriter::Header [protected] |
Definition at line 82 of file vtkSTLWriter.h.
int vtkSTLWriter::FileType [protected] |
Definition at line 83 of file vtkSTLWriter.h.