00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkXMLPStructuredDataWriter.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 =========================================================================*/ 00022 #ifndef __vtkXMLPStructuredDataWriter_h 00023 #define __vtkXMLPStructuredDataWriter_h 00024 00025 #include "vtkXMLPDataWriter.h" 00026 00027 class vtkXMLStructuredDataWriter; 00028 class vtkExtentTranslator; 00029 00030 class VTK_IO_EXPORT vtkXMLPStructuredDataWriter : public vtkXMLPDataWriter 00031 { 00032 public: 00033 vtkTypeRevisionMacro(vtkXMLPStructuredDataWriter,vtkXMLPDataWriter); 00034 void PrintSelf(ostream& os, vtkIndent indent); 00035 00037 00038 virtual void SetExtentTranslator(vtkExtentTranslator*); 00039 vtkGetObjectMacro(ExtentTranslator, vtkExtentTranslator); 00041 00042 protected: 00043 vtkXMLPStructuredDataWriter(); 00044 ~vtkXMLPStructuredDataWriter(); 00045 00046 virtual vtkXMLStructuredDataWriter* CreateStructuredPieceWriter()=0; 00047 void WritePrimaryElementAttributes(ostream &os, vtkIndent indent); 00048 void WritePPieceAttributes(int index); 00049 vtkXMLWriter* CreatePieceWriter(int index); 00050 00051 vtkExtentTranslator* ExtentTranslator; 00052 00053 private: 00054 vtkXMLPStructuredDataWriter(const vtkXMLPStructuredDataWriter&); // Not implemented. 00055 void operator=(const vtkXMLPStructuredDataWriter&); // Not implemented. 00056 }; 00057 00058 #endif