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