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

IO/vtkSTLWriter.h

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