VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/IO/XML/vtkXMLMultiBlockDataWriter.h
Go to the documentation of this file.
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 =========================================================================*/
00025 #ifndef vtkXMLMultiBlockDataWriter_h
00026 #define vtkXMLMultiBlockDataWriter_h
00027 
00028 #include "vtkIOXMLModule.h" // For export macro
00029 #include "vtkXMLCompositeDataWriter.h"
00030 
00031 class VTKIOXML_EXPORT vtkXMLMultiBlockDataWriter : public vtkXMLCompositeDataWriter
00032 {
00033 public:
00034   static vtkXMLMultiBlockDataWriter* New();
00035   vtkTypeMacro(vtkXMLMultiBlockDataWriter, vtkXMLCompositeDataWriter);
00036   void PrintSelf(ostream& os, vtkIndent indent);
00037 
00039 
00040   virtual const char* GetDefaultFileExtension()
00041     { return "vtm"; }
00043 
00044 //BTX
00045 protected:
00046   vtkXMLMultiBlockDataWriter();
00047   ~vtkXMLMultiBlockDataWriter();
00048 
00049   virtual int FillInputPortInformation(int port, vtkInformation* info);
00050 
00051   // Internal method called recursively to create the xml tree for the children
00052   // of compositeData.
00053   virtual int WriteComposite(vtkCompositeDataSet* compositeData,
00054     vtkXMLDataElement* parent, int &writerIdx);
00055 
00056 private:
00057   vtkXMLMultiBlockDataWriter(const vtkXMLMultiBlockDataWriter&); // Not implemented.
00058   void operator=(const vtkXMLMultiBlockDataWriter&); // Not implemented.
00059 //ETX
00060 };
00061 
00062 #endif
00063 
00064