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