1 /*=========================================================================
2 
3   Program:   Visualization Toolkit
4   Module:    vtkDataSetWriter.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 =========================================================================*/
15 // .NAME vtkDataSetWriter - write any type of vtk dataset to file
16 // .SECTION Description
17 // vtkDataSetWriter is an abstract class for mapper objects that write their
18 // data to disk (or into a communications port). The input to this object is
19 // a dataset of any type.
20 
21 #ifndef vtkDataSetWriter_h
22 #define vtkDataSetWriter_h
23 
24 #include "vtkIOLegacyModule.h" // For export macro
25 #include "vtkDataWriter.h"
26 
27 class VTKIOLEGACY_EXPORT vtkDataSetWriter : public vtkDataWriter
28 {
29 public:
30   static vtkDataSetWriter *New();
31   vtkTypeMacro(vtkDataSetWriter,vtkDataWriter);
32   void PrintSelf(ostream& os, vtkIndent indent);
33 
34   // Description:
35   // Get the input to this writer.
36   vtkDataSet* GetInput();
37   vtkDataSet* GetInput(int port);
38 
39 protected:
vtkDataSetWriter()40   vtkDataSetWriter() {}
~vtkDataSetWriter()41   ~vtkDataSetWriter() {}
42 
43   void WriteData();
44 
45   virtual int FillInputPortInformation(int port, vtkInformation *info);
46 
47 private:
48   vtkDataSetWriter(const vtkDataSetWriter&);  // Not implemented.
49   void operator=(const vtkDataSetWriter&);  // Not implemented.
50 };
51 
52 #endif
53