VTK  9.3.20240424
vtkXMLDataObjectWriter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
20#ifndef vtkXMLDataObjectWriter_h
21#define vtkXMLDataObjectWriter_h
22
23#include "vtkIOXMLModule.h" // For export macro
24#include "vtkXMLWriter.h"
25
26VTK_ABI_NAMESPACE_BEGIN
28
29class VTKIOXML_EXPORT vtkXMLDataObjectWriter : public vtkXMLWriter
30{
31public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
35
40
47 static vtkXMLWriter* NewWriter(int dataset_type);
48
49protected:
52
53 // see algorithm for more info
54 int FillInputPortInformation(int port, vtkInformation* info) override;
55
56 // Override writing method from superclass.
57 int WriteInternal() override;
58
59 // Dummies to satisfy pure virtuals from superclass.
60 const char* GetDataSetName() override;
61 const char* GetDefaultFileExtension() override;
62
63 // Callback registered with the InternalProgressObserver.
64 static void ProgressCallbackFunction(vtkObject*, unsigned long, void*, void*);
65 // Progress callback from internal writer.
67
68 // The observer to report progress from the internal writer.
70
71private:
73 void operator=(const vtkXMLDataObjectWriter&) = delete;
74};
75
76VTK_ABI_NAMESPACE_END
77#endif
Superclass for all sources, filters, and sinks in VTK.
supports function callbacks
abstract class to specify dataset behavior
Definition vtkDataSet.h:166
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
abstract base class for most VTK objects
Definition vtkObject.h:162
Write any type of VTK XML file.
virtual void ProgressCallback(vtkAlgorithm *w)
static vtkXMLDataObjectWriter * New()
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataSet * GetInput()
Get/Set the writer's input.
~vtkXMLDataObjectWriter() override
static void ProgressCallbackFunction(vtkObject *, unsigned long, void *, void *)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCallbackCommand * InternalProgressObserver
static vtkXMLWriter * NewWriter(int dataset_type)
Creates a writer for the given dataset type.
int WriteInternal() override
const char * GetDataSetName() override
Superclass for VTK's XML file writers.