VTK
|
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 "vtkIOXMLModule.h" // For export macro 00033 #include "vtkXMLPUnstructuredDataWriter.h" 00034 00035 class vtkUnstructuredGridBase; 00036 00037 class VTKIOXML_EXPORT vtkXMLPUnstructuredGridWriter : public vtkXMLPUnstructuredDataWriter 00038 { 00039 public: 00040 static vtkXMLPUnstructuredGridWriter* New(); 00041 vtkTypeMacro(vtkXMLPUnstructuredGridWriter,vtkXMLPUnstructuredDataWriter); 00042 void PrintSelf(ostream& os, vtkIndent indent); 00043 00044 //BTX 00046 00047 vtkUnstructuredGridBase* GetInput(); 00048 //ETX 00050 00052 const char* GetDefaultFileExtension(); 00053 00054 protected: 00055 vtkXMLPUnstructuredGridWriter(); 00056 ~vtkXMLPUnstructuredGridWriter(); 00057 00058 // see algorithm for more info 00059 virtual int FillInputPortInformation(int port, vtkInformation* info); 00060 00061 const char* GetDataSetName(); 00062 vtkXMLUnstructuredDataWriter* CreateUnstructuredPieceWriter(); 00063 00064 private: 00065 vtkXMLPUnstructuredGridWriter(const vtkXMLPUnstructuredGridWriter&); // Not implemented. 00066 void operator=(const vtkXMLPUnstructuredGridWriter&); // Not implemented. 00067 }; 00068 00069 #endif