VTK
vtkFacetWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkFacetWriter.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 =========================================================================*/
38 #ifndef __vtkFacetWriter_h
39 #define __vtkFacetWriter_h
40 
41 #include "vtkPolyDataAlgorithm.h"
42 
43 class vtkInformation;
44 
46 {
47 public:
48  static vtkFacetWriter *New();
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
53 
54  vtkSetStringMacro(FileName);
55  vtkGetStringMacro(FileName);
57 
59  void Write();
60 
61  // BTX
62  void WriteToStream(ostream* ost);
63  // ETX
64 
65 protected:
67  ~vtkFacetWriter();
68 
69  // This is called by the superclass.
70  // This is the method you should override.
71  virtual int RequestData(vtkInformation *request,
72  vtkInformationVector** inputVector,
73  vtkInformationVector* outputVector);
74 
75  virtual int FillInputPortInformation(int, vtkInformation *);
76 
77  // BTX
78  int WriteDataToStream(ostream* ost, vtkPolyData* data);
79  // ETX
80 
81  char *FileName;
82  ostream *OutputStream;
83 
84 private:
85  vtkFacetWriter(const vtkFacetWriter&); // Not implemented.
86  void operator=(const vtkFacetWriter&); // Not implemented.
87 };
88 
89 #endif
90