00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkXMLMultiBlockDataWriter.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 =========================================================================*/ 00022 #ifndef __vtkXMLMultiBlockDataWriter_h 00023 #define __vtkXMLMultiBlockDataWriter_h 00024 00025 #include "vtkXMLCompositeDataWriter.h" 00026 00027 class VTK_IO_EXPORT vtkXMLMultiBlockDataWriter : public vtkXMLCompositeDataWriter 00028 { 00029 public: 00030 static vtkXMLMultiBlockDataWriter* New(); 00031 vtkTypeMacro(vtkXMLMultiBlockDataWriter, vtkXMLCompositeDataWriter); 00032 void PrintSelf(ostream& os, vtkIndent indent); 00033 00035 00036 virtual const char* GetDefaultFileExtension() 00037 { return "vtm"; } 00039 00040 //BTX 00041 protected: 00042 vtkXMLMultiBlockDataWriter(); 00043 ~vtkXMLMultiBlockDataWriter(); 00044 00045 virtual int FillInputPortInformation(int port, vtkInformation* info); 00046 00047 // Internal method called recursively to create the xml tree for the children 00048 // of compositeData. 00049 virtual int WriteComposite(vtkCompositeDataSet* compositeData, 00050 vtkXMLDataElement* parent, int &writerIdx); 00051 00052 private: 00053 vtkXMLMultiBlockDataWriter(const vtkXMLMultiBlockDataWriter&); // Not implemented. 00054 void operator=(const vtkXMLMultiBlockDataWriter&); // Not implemented. 00055 //ETX 00056 }; 00057 00058 #endif 00059 00060