00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkXMLPStructuredGridWriter.h,v $ 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 =========================================================================*/ 00029 #ifndef __vtkXMLPStructuredGridWriter_h 00030 #define __vtkXMLPStructuredGridWriter_h 00031 00032 #include "vtkXMLPStructuredDataWriter.h" 00033 00034 class vtkStructuredGrid; 00035 00036 class VTK_IO_EXPORT vtkXMLPStructuredGridWriter : public vtkXMLPStructuredDataWriter 00037 { 00038 public: 00039 static vtkXMLPStructuredGridWriter* New(); 00040 vtkTypeRevisionMacro(vtkXMLPStructuredGridWriter,vtkXMLPStructuredDataWriter); 00041 void PrintSelf(ostream& os, vtkIndent indent); 00042 00044 00045 void SetInput(vtkStructuredGrid* input); 00046 vtkStructuredGrid* GetInput(); 00048 00049 protected: 00050 vtkXMLPStructuredGridWriter(); 00051 ~vtkXMLPStructuredGridWriter(); 00052 00053 const char* GetDataSetName(); 00054 const char* GetDefaultFileExtension(); 00055 vtkXMLStructuredDataWriter* CreateStructuredPieceWriter(); 00056 void WritePData(vtkIndent indent); 00057 00058 private: 00059 vtkXMLPStructuredGridWriter(const vtkXMLPStructuredGridWriter&); // Not implemented. 00060 void operator=(const vtkXMLPStructuredGridWriter&); // Not implemented. 00061 }; 00062 00063 #endif