Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

IO/vtkXMLPRectilinearGridWriter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkXMLPRectilinearGridWriter.h,v $
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 "vtkXMLPStructuredDataWriter.h"
00033 
00034 class vtkRectilinearGrid;
00035 
00036 class VTK_IO_EXPORT vtkXMLPRectilinearGridWriter : public vtkXMLPStructuredDataWriter
00037 {
00038 public:
00039   static vtkXMLPRectilinearGridWriter* New();
00040   vtkTypeRevisionMacro(vtkXMLPRectilinearGridWriter,vtkXMLPStructuredDataWriter);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042   
00044 
00045   void SetInput(vtkRectilinearGrid* input);
00046   vtkRectilinearGrid* GetInput();
00048   
00050   const char* GetDefaultFileExtension();
00051   
00052 protected:
00053   vtkXMLPRectilinearGridWriter();
00054   ~vtkXMLPRectilinearGridWriter();
00055   
00056   const char* GetDataSetName();
00057   vtkXMLStructuredDataWriter* CreateStructuredPieceWriter(); 
00058   void WritePData(vtkIndent indent);
00059   
00060 private:
00061   vtkXMLPRectilinearGridWriter(const vtkXMLPRectilinearGridWriter&);  // Not implemented.
00062   void operator=(const vtkXMLPRectilinearGridWriter&);  // Not implemented.
00063 };
00064 
00065 #endif