VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkXMLPStructuredDataWriter.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 __vtkXMLPStructuredDataWriter_h 00023 #define __vtkXMLPStructuredDataWriter_h 00024 00025 #include "vtkXMLPDataWriter.h" 00026 00027 class vtkXMLStructuredDataWriter; 00028 00029 class VTK_IO_EXPORT vtkXMLPStructuredDataWriter : public vtkXMLPDataWriter 00030 { 00031 public: 00032 vtkTypeMacro(vtkXMLPStructuredDataWriter,vtkXMLPDataWriter); 00033 void PrintSelf(ostream& os, vtkIndent indent); 00034 00035 // See the vtkAlgorithm for a description of what these do 00036 virtual int ProcessRequest(vtkInformation* request, 00037 vtkInformationVector** inputVector, 00038 vtkInformationVector* outputVector); 00039 00040 protected: 00041 vtkXMLPStructuredDataWriter(); 00042 ~vtkXMLPStructuredDataWriter(); 00043 00044 virtual vtkXMLStructuredDataWriter* CreateStructuredPieceWriter()=0; 00045 void WritePrimaryElementAttributes(ostream &os, vtkIndent indent); 00046 void WritePPieceAttributes(int index); 00047 vtkXMLWriter* CreatePieceWriter(int index); 00048 00049 virtual int RequestUpdateExtent(vtkInformation* request, 00050 vtkInformationVector** inputVector, 00051 vtkInformationVector* outputVector); 00052 00053 private: 00054 vtkXMLPStructuredDataWriter(const vtkXMLPStructuredDataWriter&); // Not implemented. 00055 void operator=(const vtkXMLPStructuredDataWriter&); // Not implemented. 00056 }; 00057 00058 #endif