IO/vtkSTLWriter.h Source File

Main Page Class Hierarchy Alphabetical List Compound List File List Compound 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 =========================================================================*/
    00048 #ifndef __vtkSTLWriter_h
    00049 #define __vtkSTLWriter_h
    00050
    00051 #include "vtkPolyDataWriter.h"
    00052
    00053 class VTK_IO_EXPORT vtkSTLWriter : public vtkPolyDataWriter
    00054 {
    00055 public:
    00056   static vtkSTLWriter *New();
    00057   vtkTypeRevisionMacro(vtkSTLWriter,vtkPolyDataWriter);
    00058   virtual void PrintSelf(ostream& os, vtkIndent indent);
    00059
    00060 protected:
    00061   vtkSTLWriter();
    00062   ~vtkSTLWriter() {};
    00063
    00064   void WriteData();
    00065
    00066   void WriteBinarySTL(vtkPoints *pts, vtkCellArray *polys);
    00067   void WriteAsciiSTL(vtkPoints *pts, vtkCellArray *polys);
    00068 private:
    00069   vtkSTLWriter(const vtkSTLWriter&);  // Not implemented.
    00070   void operator=(const vtkSTLWriter&);  // Not implemented.
    00071 };
    00072
    00073 #endif
    00074