VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/IO/ParallelXML/vtkXMLPStructuredGridWriter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkXMLPStructuredGridWriter.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 =========================================================================*/
00032 #ifndef vtkXMLPStructuredGridWriter_h
00033 #define vtkXMLPStructuredGridWriter_h
00034 
00035 #include "vtkIOParallelXMLModule.h" // For export macro
00036 #include "vtkXMLPStructuredDataWriter.h"
00037 
00038 class vtkStructuredGrid;
00039 
00040 class VTKIOPARALLELXML_EXPORT vtkXMLPStructuredGridWriter : public vtkXMLPStructuredDataWriter
00041 {
00042 public:
00043   static vtkXMLPStructuredGridWriter* New();
00044   vtkTypeMacro(vtkXMLPStructuredGridWriter,vtkXMLPStructuredDataWriter);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00047   //BTX
00049 
00050   vtkStructuredGrid* GetInput();
00051   //ETX
00053 
00055   const char* GetDefaultFileExtension();
00056 
00057 protected:
00058   vtkXMLPStructuredGridWriter();
00059   ~vtkXMLPStructuredGridWriter();
00060 
00061   // see algorithm for more info
00062   virtual int FillInputPortInformation(int port, vtkInformation* info);
00063 
00064   const char* GetDataSetName();
00065   vtkXMLStructuredDataWriter* CreateStructuredPieceWriter();
00066   void WritePData(vtkIndent indent);
00067 
00068 private:
00069   vtkXMLPStructuredGridWriter(const vtkXMLPStructuredGridWriter&);  // Not implemented.
00070   void operator=(const vtkXMLPStructuredGridWriter&);  // Not implemented.
00071 };
00072 
00073 #endif