00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkXMLPUnstructuredGridWriter.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 =========================================================================*/ 00029 #ifndef __vtkXMLPUnstructuredGridWriter_h 00030 #define __vtkXMLPUnstructuredGridWriter_h 00031 00032 #include "vtkXMLPUnstructuredDataWriter.h" 00033 00034 class vtkUnstructuredGrid; 00035 00036 class VTK_IO_EXPORT vtkXMLPUnstructuredGridWriter : public vtkXMLPUnstructuredDataWriter 00037 { 00038 public: 00039 static vtkXMLPUnstructuredGridWriter* New(); 00040 vtkTypeMacro(vtkXMLPUnstructuredGridWriter,vtkXMLPUnstructuredDataWriter); 00041 void PrintSelf(ostream& os, vtkIndent indent); 00042 00043 //BTX 00045 00046 vtkUnstructuredGrid* GetInput(); 00047 //ETX 00049 00051 const char* GetDefaultFileExtension(); 00052 00053 protected: 00054 vtkXMLPUnstructuredGridWriter(); 00055 ~vtkXMLPUnstructuredGridWriter(); 00056 00057 // see algorithm for more info 00058 virtual int FillInputPortInformation(int port, vtkInformation* info); 00059 00060 const char* GetDataSetName(); 00061 vtkXMLUnstructuredDataWriter* CreateUnstructuredPieceWriter(); 00062 00063 private: 00064 vtkXMLPUnstructuredGridWriter(const vtkXMLPUnstructuredGridWriter&); // Not implemented. 00065 void operator=(const vtkXMLPUnstructuredGridWriter&); // Not implemented. 00066 }; 00067 00068 #endif