VTK
vtkXMLDataSetWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLDataSetWriter.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 =========================================================================*/
34 #ifndef __vtkXMLDataSetWriter_h
35 #define __vtkXMLDataSetWriter_h
36 
37 #include "vtkIOXMLModule.h" // For export macro
38 #include "vtkXMLWriter.h"
39 
40 class vtkCallbackCommand;
41 
42 class VTKIOXML_EXPORT vtkXMLDataSetWriter : public vtkXMLWriter
43 {
44 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
47  static vtkXMLDataSetWriter* New();
48 
49  //BTX
51 
53  //ETX
55 
56 protected:
59 
60  // see algorithm for more info
62 
63  // Override writing method from superclass.
64  virtual int WriteInternal();
65 
66  // Dummies to satisfy pure virtuals from superclass.
67  const char* GetDataSetName();
68  const char* GetDefaultFileExtension();
69 
70  // Callback registered with the ProgressObserver.
71  static void ProgressCallbackFunction(vtkObject*, unsigned long, void*,
72  void*);
73  // Progress callback from internal writer.
74  virtual void ProgressCallback(vtkAlgorithm* w);
75 
76  // The observer to report progress from the internal writer.
78 
79 private:
80  vtkXMLDataSetWriter(const vtkXMLDataSetWriter&); // Not implemented.
81  void operator=(const vtkXMLDataSetWriter&); // Not implemented.
82 };
83 
84 #endif