VTK
dox/IO/XML/vtkXMLPRectilinearGridWriter.h
Go to the documentation of this file.
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 =========================================================================*/
00029 #ifndef __vtkXMLPRectilinearGridWriter_h
00030 #define __vtkXMLPRectilinearGridWriter_h
00031 
00032 #include "vtkIOXMLModule.h" // For export macro
00033 #include "vtkXMLPStructuredDataWriter.h"
00034 
00035 class vtkRectilinearGrid;
00036 
00037 class VTKIOXML_EXPORT vtkXMLPRectilinearGridWriter : public vtkXMLPStructuredDataWriter
00038 {
00039 public:
00040   static vtkXMLPRectilinearGridWriter* New();
00041   vtkTypeMacro(vtkXMLPRectilinearGridWriter,vtkXMLPStructuredDataWriter);
00042   void PrintSelf(ostream& os, vtkIndent indent);
00043 
00044   //BTX
00046 
00047   vtkRectilinearGrid* GetInput();
00048   //ETX
00050 
00052   const char* GetDefaultFileExtension();
00053 
00054 protected:
00055   vtkXMLPRectilinearGridWriter();
00056   ~vtkXMLPRectilinearGridWriter();
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   vtkXMLPRectilinearGridWriter(const vtkXMLPRectilinearGridWriter&);  // Not implemented.
00067   void operator=(const vtkXMLPRectilinearGridWriter&);  // Not implemented.
00068 };
00069 
00070 #endif