VTK  9.7.20261008
vtkXMLUniformGridAMRWriter.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
14
15#ifndef vtkXMLUniformGridAMRWriter_h
16#define vtkXMLUniformGridAMRWriter_h
17
18#include "vtkIOXMLModule.h" // For export macro
19#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
21
22VTK_ABI_NAMESPACE_BEGIN
24{
25public:
28 void PrintSelf(ostream& os, vtkIndent indent) override;
29
33 const char* GetDefaultFileExtension() override { return "vth"; }
34
35protected:
38
44 int GetDataSetMajorVersion() override { return 1; }
45 int GetDataSetMinorVersion() override { return 1; }
46
47 int FillInputPortInformation(int port, vtkInformation* info) override;
48
49 // Internal method called recursively to create the xml tree for the children
50 // of compositeData.
52 vtkCompositeDataSet* compositeData, vtkXMLDataElement* parent, int& writerIdx) override;
53
54private:
56 void operator=(const vtkXMLUniformGridAMRWriter&) = delete;
57};
58
59VTK_ABI_NAMESPACE_END
60#endif
abstract superclass for composite (multi-block or AMR) datasets
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
Represents an XML element and those nested inside.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkXMLUniformGridAMRWriter * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
~vtkXMLUniformGridAMRWriter() override
int GetDataSetMajorVersion() override
Methods to define the file's major and minor version numbers.
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
int WriteComposite(vtkCompositeDataSet *compositeData, vtkXMLDataElement *parent, int &writerIdx) override
Internal method called recursively to create the xml tree for the children of compositeData as well a...
#define VTK_MARSHALAUTO