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 00051 protected: 00052 vtkXMLPStructuredGridWriter(); 00053 ~vtkXMLPStructuredGridWriter(); 00054 00055 // see algorithm for more info 00056 virtual int FillInputPortInformation(int port, vtkInformation* info); 00057 00058 const char* GetDataSetName(); 00059 const char* GetDefaultFileExtension(); 00060 vtkXMLStructuredDataWriter* CreateStructuredPieceWriter(); 00061 void WritePData(vtkIndent indent); 00062 00063 private: 00064 vtkXMLPStructuredGridWriter(const vtkXMLPStructuredGridWriter&); // Not implemented. 00065 void operator=(const vtkXMLPStructuredGridWriter&); // Not implemented. 00066 }; 00067 00068 #endif