VTK: IO/XML/vtkXMLUniformGridAMRWriter.h Source File

| VTK 9.3.1

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
19 #include "vtkXMLCompositeDataWriter.h"
20
21 VTK_ABI_NAMESPACE_BEGIN
22 class VTKIOXML_EXPORT vtkXMLUniformGridAMRWriter : public vtkXMLCompositeDataWriter
23 {
24 public:
25 static vtkXMLUniformGridAMRWriter* New();
26 vtkTypeMacro(vtkXMLUniformGridAMRWriter, vtkXMLCompositeDataWriter);
27 void PrintSelf(ostream& os, vtkIndent indent) override;
28
32 const char* GetDefaultFileExtension() override { return "vth"; }
33
34 protected:
35 vtkXMLUniformGridAMRWriter();
36 ~vtkXMLUniformGridAMRWriter() override;
37
43 int GetDataSetMajorVersion() override { return 1; }
44 int GetDataSetMinorVersion() override { return 1; }
45
46 int FillInputPortInformation(int port, vtkInformation* info) override;
47
48 // Internal method called recursively to create the xml tree for the children
49 // of compositeData.
50 int WriteComposite(
51 vtkCompositeDataSet* compositeData, vtkXMLDataElement* parent, int& writerIdx) override;
52
53 private:
54 vtkXMLUniformGridAMRWriter(const vtkXMLUniformGridAMRWriter&) = delete;
55 void operator=(const vtkXMLUniformGridAMRWriter&) = delete;
56 };
57
58 VTK_ABI_NAMESPACE_END
59 #endif
vtkCompositeDataSet
abstract superclass for composite (multi-block or AMR) datasets
Definition: vtkCompositeDataSet.h:51
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkXMLCompositeDataWriter
Writer for multi-group datasets.
Definition: vtkXMLCompositeDataWriter.h:29
vtkXMLDataElement
Represents an XML element and those nested inside.
Definition: vtkXMLDataElement.h:26
vtkXMLUniformGridAMRWriter
writer for vtkUniformGridAMR.
Definition: vtkXMLUniformGridAMRWriter.h:23
vtkXMLUniformGridAMRWriter::GetDefaultFileExtension
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
Definition: vtkXMLUniformGridAMRWriter.h:32
vtkXMLUniformGridAMRWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkXMLUniformGridAMRWriter::New
static vtkXMLUniformGridAMRWriter * New()
vtkXMLUniformGridAMRWriter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkXMLUniformGridAMRWriter::~vtkXMLUniformGridAMRWriter
~vtkXMLUniformGridAMRWriter() override
vtkXMLUniformGridAMRWriter::GetDataSetMajorVersion
int GetDataSetMajorVersion() override
Methods to define the file's major and minor version numbers.
Definition: vtkXMLUniformGridAMRWriter.h:43
vtkXMLUniformGridAMRWriter::vtkXMLUniformGridAMRWriter
vtkXMLUniformGridAMRWriter()
vtkXMLUniformGridAMRWriter::GetDataSetMinorVersion
int GetDataSetMinorVersion() override
Definition: vtkXMLUniformGridAMRWriter.h:44
vtkXMLUniformGridAMRWriter::WriteComposite
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...
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkXMLCompositeDataWriter.h