VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/IO/XML/vtkXMLUniformGridAMRWriter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkXMLUniformGridAMRWriter.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00026 #ifndef vtkXMLUniformGridAMRWriter_h
00027 #define vtkXMLUniformGridAMRWriter_h
00028 
00029 #include "vtkIOXMLModule.h" // For export macro
00030 #include "vtkXMLCompositeDataWriter.h"
00031 
00032 class VTKIOXML_EXPORT vtkXMLUniformGridAMRWriter : public vtkXMLCompositeDataWriter
00033 {
00034 public:
00035   static vtkXMLUniformGridAMRWriter* New();
00036   vtkTypeMacro(vtkXMLUniformGridAMRWriter, vtkXMLCompositeDataWriter);
00037   void PrintSelf(ostream& os, vtkIndent indent);
00038 
00040 
00041   virtual const char* GetDefaultFileExtension()
00042     { return "vth"; }
00044 
00045 //BTX
00046 protected:
00047   vtkXMLUniformGridAMRWriter();
00048   ~vtkXMLUniformGridAMRWriter();
00049 
00051 
00054   virtual int GetDataSetMajorVersion() { return 1; }
00055   virtual int GetDataSetMinorVersion() { return 1; }
00057 
00058   virtual int FillInputPortInformation(int port, vtkInformation* info);
00059 
00060   // Internal method called recursively to create the xml tree for the children
00061   // of compositeData.
00062   virtual int WriteComposite(vtkCompositeDataSet* compositeData,
00063     vtkXMLDataElement* parent, int &writerIdx);
00064 
00065 private:
00066   vtkXMLUniformGridAMRWriter(const vtkXMLUniformGridAMRWriter&); // Not implemented.
00067   void operator=(const vtkXMLUniformGridAMRWriter&); // Not implemented.
00068 //ETX
00069 };
00070 
00071 #endif