00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkXMLPDataSetWriter.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 =========================================================================*/ 00031 #ifndef __vtkXMLPDataSetWriter_h 00032 #define __vtkXMLPDataSetWriter_h 00033 00034 #include "vtkXMLPDataWriter.h" 00035 00036 class VTK_IO_EXPORT vtkXMLPDataSetWriter : public vtkXMLPDataWriter 00037 { 00038 public: 00039 vtkTypeMacro(vtkXMLPDataSetWriter,vtkXMLPDataWriter); 00040 void PrintSelf(ostream& os, vtkIndent indent); 00041 static vtkXMLPDataSetWriter* New(); 00042 00043 //BTX 00045 00046 vtkDataSet* GetInput(); 00047 //ETX 00049 00050 protected: 00051 vtkXMLPDataSetWriter(); 00052 ~vtkXMLPDataSetWriter(); 00053 00054 // see algorithm for more info 00055 virtual int FillInputPortInformation(int port, vtkInformation* info); 00056 00057 // Override writing method from superclass. 00058 virtual int WriteInternal(); 00059 00060 // Dummies to satisfy pure virtuals from superclass. 00061 const char* GetDataSetName(); 00062 const char* GetDefaultFileExtension(); 00063 vtkXMLWriter* CreatePieceWriter(int index); 00064 00065 private: 00066 vtkXMLPDataSetWriter(const vtkXMLPDataSetWriter&); // Not implemented. 00067 void operator=(const vtkXMLPDataSetWriter&); // Not implemented. 00068 }; 00069 00070 #endif