VTK  9.2.6
vtkXMLUniformGridAMRWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLUniformGridAMRWriter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
27 #ifndef vtkXMLUniformGridAMRWriter_h
28 #define vtkXMLUniformGridAMRWriter_h
29 
30 #include "vtkIOXMLModule.h" // For export macro
32 
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
43  const char* GetDefaultFileExtension() override { return "vth"; }
44 
45 protected:
47  ~vtkXMLUniformGridAMRWriter() override;
48 
54  int GetDataSetMajorVersion() override { return 1; }
55  int GetDataSetMinorVersion() override { return 1; }
56 
58 
59  // Internal method called recursively to create the xml tree for the children
60  // of compositeData.
61  int WriteComposite(
62  vtkCompositeDataSet* compositeData, vtkXMLDataElement* parent, int& writerIdx) override;
63 
64 private:
66  void operator=(const vtkXMLUniformGridAMRWriter&) = delete;
67 };
68 
69 #endif
Represents an XML element and those nested inside.
Store vtkAlgorithm input/output information.
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
writer for vtkUniformGridAMR.
virtual int WriteComposite(vtkCompositeDataSet *compositeData, vtkXMLDataElement *element, int &writerIdx)=0
Internal method called recursively to create the xml tree for the children of compositeData as well a...
abstract superclass for composite (multi-block or AMR) datasets
a simple class to control print indentation
Definition: vtkIndent.h:39
Writer for multi-group datasets.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int GetDataSetMajorVersion() override
Methods to define the file's major and minor version numbers.
static vtkAlgorithm * New()