VTK
vtkSTLWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSTLWriter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
31 #ifndef __vtkSTLWriter_h
32 #define __vtkSTLWriter_h
33 
34 #include "vtkPolyDataWriter.h"
35 
37 {
38 public:
39  static vtkSTLWriter *New();
41  virtual void PrintSelf(ostream& os, vtkIndent indent);
42 
43 protected:
44  vtkSTLWriter();
46 
47  void WriteData();
48 
49  void WriteBinarySTL(vtkPoints *pts, vtkCellArray *polys);
50  void WriteAsciiSTL(vtkPoints *pts, vtkCellArray *polys);
51 private:
52  vtkSTLWriter(const vtkSTLWriter&); // Not implemented.
53  void operator=(const vtkSTLWriter&); // Not implemented.
54 };
55 
56 #endif
57 
write vtk polygonal data
a simple class to control print indentation
Definition: vtkIndent.h:37
static vtkPolyDataWriter * New()
object to represent cell connectivity
Definition: vtkCellArray.h:48
write stereo lithography files
Definition: vtkSTLWriter.h:36
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_IO_EXPORT
represent and manipulate 3D points
Definition: vtkPoints.h:38