VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkSTLWriter.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00031 #ifndef __vtkSTLWriter_h 00032 #define __vtkSTLWriter_h 00033 00034 #include "vtkPolyDataWriter.h" 00035 00036 class VTK_IO_EXPORT vtkSTLWriter : public vtkPolyDataWriter 00037 { 00038 public: 00039 static vtkSTLWriter *New(); 00040 vtkTypeMacro(vtkSTLWriter,vtkPolyDataWriter); 00041 virtual void PrintSelf(ostream& os, vtkIndent indent); 00042 00043 protected: 00044 vtkSTLWriter(); 00045 ~vtkSTLWriter() {}; 00046 00047 void WriteData(); 00048 00049 void WriteBinarySTL(vtkPoints *pts, vtkCellArray *polys); 00050 void WriteAsciiSTL(vtkPoints *pts, vtkCellArray *polys); 00051 private: 00052 vtkSTLWriter(const vtkSTLWriter&); // Not implemented. 00053 void operator=(const vtkSTLWriter&); // Not implemented. 00054 }; 00055 00056 #endif 00057