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