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 =========================================================================*/
26 #ifndef vtkXMLUniformGridAMRWriter_h
27 #define vtkXMLUniformGridAMRWriter_h
28 
29 #include "vtkIOXMLModule.h" // For export macro
31 
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
40 
41  virtual const char* GetDefaultFileExtension()
42  { return "vth"; }
44 
45 //BTX
46 protected:
49 
51 
54  virtual int GetDataSetMajorVersion() { return 1; }
55  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 
65 private:
66  vtkXMLUniformGridAMRWriter(const vtkXMLUniformGridAMRWriter&); // Not implemented.
67  void operator=(const vtkXMLUniformGridAMRWriter&); // Not implemented.
68 //ETX
69 };
70 
71 #endif
Represents an XML element and those nested inside.
Store vtkAlgorithm input/output information.
writer for vtkUniformGridAMR.
virtual int WriteComposite(vtkCompositeDataSet *compositeData, vtkXMLDataElement *element, int &writerIdx)=0
abstract superclass for composite (multi-block or AMR) datasets
virtual const char * GetDefaultFileExtension()
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKIOXML_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Writer for multi-group datasets.
static vtkAlgorithm * New()