VTK  9.7.20260930
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 "vtkWrappingHints.h" // For VTK_MARSHALAUTO
25#include "vtkXMLWriter.h"
26
27VTK_ABI_NAMESPACE_BEGIN
29
31{
32public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
36
41
48 static vtkXMLWriter* NewWriter(int dataset_type);
49
50 const char* GetDefaultFileExtension() override;
51
52protected:
55
56 // see algorithm for more info
57 int FillInputPortInformation(int port, vtkInformation* info) override;
58
59 // Override writing method from superclass.
60 int WriteInternal() override;
61
62 // Dummies to satisfy pure virtuals from superclass.
63 const char* GetDataSetName() override;
64
65 // Callback registered with the InternalProgressObserver.
66 static void ProgressCallbackFunction(vtkObject*, unsigned long, void*, void*);
67 // Progress callback from internal writer.
69
70 // The observer to report progress from the internal writer.
72
73private:
75 void operator=(const vtkXMLDataObjectWriter&) = delete;
76};
77
78VTK_ABI_NAMESPACE_END
79#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
#define VTK_MARSHALAUTO