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

vtkSTLWriter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkSTLWriter.h,v $
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 =========================================================================*/
00045 #ifndef __vtkSTLWriter_h
00046 #define __vtkSTLWriter_h
00047 
00048 #include "vtkPolyDataWriter.h"
00049 
00050 class VTK_IO_EXPORT vtkSTLWriter : public vtkPolyDataWriter
00051 {
00052 public:
00053   static vtkSTLWriter *New();
00054   vtkTypeRevisionMacro(vtkSTLWriter,vtkPolyDataWriter);
00055   virtual void PrintSelf(ostream& os, vtkIndent indent);
00056 
00057 protected:
00058   vtkSTLWriter();
00059   ~vtkSTLWriter() {};
00060 
00061   void WriteData();
00062 
00063   void WriteBinarySTL(vtkPoints *pts, vtkCellArray *polys);
00064   void WriteAsciiSTL(vtkPoints *pts, vtkCellArray *polys);
00065 private:
00066   vtkSTLWriter(const vtkSTLWriter&);  // Not implemented.
00067   void operator=(const vtkSTLWriter&);  // Not implemented.
00068 };
00069 
00070 #endif
00071