VTK  9.7.20260718
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
19
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
49 const char* GetDefaultFileExtension() override;
50
51protected:
54
55 // see algorithm for more info
56 int FillInputPortInformation(int port, vtkInformation* info) override;
57
58 // Override writing method from superclass.
59 int WriteInternal() override;
60
61 // Dummies to satisfy pure virtuals from superclass.
62 const char* GetDataSetName() override;
63
64 // Callback registered with the InternalProgressObserver.
65 static void ProgressCallbackFunction(vtkObject*, unsigned long, void*, void*);
66 // Progress callback from internal writer.
68
69 // The observer to report progress from the internal writer.
71
72private:
74 void operator=(const vtkXMLDataObjectWriter&) = delete;
75};
76
77VTK_ABI_NAMESPACE_END
78#endif
supports function callbacks
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
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
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