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 =========================================================================*/
35 #ifndef vtkXMLDataSetWriter_h
36 #define vtkXMLDataSetWriter_h
37 
38 #include "vtkIOXMLModule.h" // For export macro
39 #include "vtkXMLWriter.h"
40 
41 class vtkCallbackCommand;
42 
43 class VTKIOXML_EXPORT vtkXMLDataSetWriter : public vtkXMLWriter
44 {
45 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
48  static vtkXMLDataSetWriter* New();
49 
54 
61  static vtkXMLWriter* NewWriter(int dataset_type);
62 
63 protected:
66 
67  // see algorithm for more info
69 
70  // Override writing method from superclass.
71  virtual int WriteInternal();
72 
73  // Dummies to satisfy pure virtuals from superclass.
74  const char* GetDataSetName();
75  const char* GetDefaultFileExtension();
76 
77  // Callback registered with the ProgressObserver.
78  static void ProgressCallbackFunction(vtkObject*, unsigned long, void*,
79  void*);
80  // Progress callback from internal writer.
81  virtual void ProgressCallback(vtkAlgorithm* w);
82 
83  // The observer to report progress from the internal writer.
85 
86 
87 private:
88  vtkXMLDataSetWriter(const vtkXMLDataSetWriter&) VTK_DELETE_FUNCTION;
89  void operator=(const vtkXMLDataSetWriter&) VTK_DELETE_FUNCTION;
90 };
91 
92 #endif
virtual const char * GetDataSetName()=0
abstract base class for most VTK objects
Definition: vtkObject.h:59
vtkDataObject * GetInput()
Assign a data object as input.
Definition: vtkXMLWriter.h:213
Write any type of VTK XML file.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
supports function callbacks
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
vtkCallbackCommand * ProgressObserver
Superclass for VTK's XML file writers.
Definition: vtkXMLWriter.h:53
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int WriteInternal()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual const char * GetDefaultFileExtension()=0
Get the default file extension for files written by this writer.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
static vtkAlgorithm * New()