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) VTK_OVERRIDE;
48  static vtkXMLDataSetWriter* New();
49 
54 
61  static vtkXMLWriter* NewWriter(int dataset_type);
62 
63 protected:
65  ~vtkXMLDataSetWriter() VTK_OVERRIDE;
66 
67  // see algorithm for more info
68  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
69 
70  // Override writing method from superclass.
71  int WriteInternal() VTK_OVERRIDE;
72 
73  // Dummies to satisfy pure virtuals from superclass.
74  const char* GetDataSetName() VTK_OVERRIDE;
75  const char* GetDefaultFileExtension() VTK_OVERRIDE;
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.
84  vtkCallbackCommand* ProgressObserver;
85 
86 
87 private:
88  vtkXMLDataSetWriter(const vtkXMLDataSetWriter&) VTK_DELETE_FUNCTION;
89  void operator=(const vtkXMLDataSetWriter&) VTK_DELETE_FUNCTION;
90 };
91 
92 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
vtkDataObject * GetInput()
Assign a data object as input.
Definition: vtkXMLWriter.h:218
Write any type of VTK XML file.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
supports function callbacks
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
Superclass for VTK's XML file writers.
Definition: vtkXMLWriter.h:53
a simple class to control print indentation
Definition: vtkIndent.h:39
static vtkAlgorithm * New()