VTK  9.3.20240329
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
15 #ifndef vtkXMLUniformGridAMRWriter_h
16 #define vtkXMLUniformGridAMRWriter_h
17 
18 #include "vtkIOXMLModule.h" // For export macro
20 
21 VTK_ABI_NAMESPACE_BEGIN
23 {
24 public:
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
32  const char* GetDefaultFileExtension() override { return "vth"; }
33 
34 protected:
37 
43  int GetDataSetMajorVersion() override { return 1; }
44  int GetDataSetMinorVersion() override { return 1; }
45 
47 
48  // Internal method called recursively to create the xml tree for the children
49  // of compositeData.
51  vtkCompositeDataSet* compositeData, vtkXMLDataElement* parent, int& writerIdx) override;
52 
53 private:
55  void operator=(const vtkXMLUniformGridAMRWriter&) = delete;
56 };
57 
58 VTK_ABI_NAMESPACE_END
59 #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.
Writer for multi-group datasets.
Represents an XML element and those nested inside.
writer for vtkUniformGridAMR.
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
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.
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...
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447