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 =========================================================================*/
29 #ifndef vtkXMLDataSetWriter_h
30 #define vtkXMLDataSetWriter_h
31 
32 #include "vtkIOXMLModule.h" // For export macro
33 #include "vtkXMLWriter.h"
34 
35 class vtkCallbackCommand;
36 
37 class VTKIOXML_EXPORT vtkXMLDataSetWriter : public vtkXMLWriter
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
42  static vtkXMLDataSetWriter* New();
43 
48 
55  static vtkXMLWriter* NewWriter(int dataset_type);
56 
57 protected:
59  ~vtkXMLDataSetWriter() VTK_OVERRIDE;
60 
61  // see algorithm for more info
62  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
63 
64  // Override writing method from superclass.
65  int WriteInternal() VTK_OVERRIDE;
66 
67  // Dummies to satisfy pure virtuals from superclass.
68  const char* GetDataSetName() VTK_OVERRIDE;
69  const char* GetDefaultFileExtension() VTK_OVERRIDE;
70 
71  // Callback registered with the ProgressObserver.
72  static void ProgressCallbackFunction(vtkObject*, unsigned long, void*,
73  void*);
74  // Progress callback from internal writer.
75  virtual void ProgressCallback(vtkAlgorithm* w);
76 
77  // The observer to report progress from the internal writer.
78  vtkCallbackCommand* ProgressObserver;
79 
80 
81 private:
82  vtkXMLDataSetWriter(const vtkXMLDataSetWriter&) VTK_DELETE_FUNCTION;
83  void operator=(const vtkXMLDataSetWriter&) VTK_DELETE_FUNCTION;
84 };
85 
86 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:53
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:56
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:53
Superclass for VTK's XML file writers.
Definition: vtkXMLWriter.h:53
a simple class to control print indentation
Definition: vtkIndent.h:33
static vtkAlgorithm * New()