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 
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
virtual const char * GetDataSetName()=0
abstract base class for most VTK objects
Definition: vtkObject.h:61
vtkDataObject * GetInput()
Definition: vtkXMLWriter.h:196
Write any type of VTK XML file.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
supports function callbacks
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
vtkCallbackCommand * ProgressObserver
Superclass for VTK's XML file writers.
Definition: vtkXMLWriter.h:53
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKIOXML_EXPORT
virtual int WriteInternal()
void PrintSelf(ostream &os, vtkIndent indent)
virtual const char * GetDefaultFileExtension()=0
virtual int FillInputPortInformation(int port, vtkInformation *info)
static vtkAlgorithm * New()