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