VTK
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
44  { return "vth"; }
45 
46 protected:
48  ~vtkXMLUniformGridAMRWriter() override;
49 
55  int GetDataSetMajorVersion() override { return 1; }
56  int GetDataSetMinorVersion() override { return 1; }
57 
59 
60  // Internal method called recursively to create the xml tree for the children
61  // of compositeData.
62  int WriteComposite(vtkCompositeDataSet* compositeData,
63  vtkXMLDataElement* parent, int &writerIdx) override;
64 
65 private:
67  void operator=(const vtkXMLUniformGridAMRWriter&) = delete;
68 
69 };
70 
71 #endif
vtkXMLCompositeDataWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCompositeDataSet
abstract superclass for composite (multi-block or AMR) datasets
Definition: vtkCompositeDataSet.h:51
vtkXMLUniformGridAMRWriter::GetDataSetMajorVersion
int GetDataSetMajorVersion() override
Methods to define the file's major and minor version numbers.
Definition: vtkXMLUniformGridAMRWriter.h:55
vtkX3D::port
Definition: vtkX3D.h:447
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkXMLDataElement
Represents an XML element and those nested inside.
Definition: vtkXMLDataElement.h:36
vtkXMLCompositeDataWriter.h
vtkXMLUniformGridAMRWriter::GetDataSetMinorVersion
int GetDataSetMinorVersion() override
Definition: vtkXMLUniformGridAMRWriter.h:56
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:70
vtkX3D::info
Definition: vtkX3D.h:376
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkXMLCompositeDataWriter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkXMLUniformGridAMRWriter
writer for vtkUniformGridAMR.
Definition: vtkXMLUniformGridAMRWriter.h:33
vtkXMLCompositeDataWriter
Writer for multi-group datasets.
Definition: vtkXMLCompositeDataWriter.h:38
vtkXMLCompositeDataWriter::WriteComposite
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...
vtkXMLUniformGridAMRWriter::GetDefaultFileExtension
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
Definition: vtkXMLUniformGridAMRWriter.h:43