VTK
dox/IO/Legacy/vtkStructuredGridWriter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkStructuredGridWriter.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 =========================================================================*/
00028 #ifndef __vtkStructuredGridWriter_h
00029 #define __vtkStructuredGridWriter_h
00030 
00031 #include "vtkIOLegacyModule.h" // For export macro
00032 #include "vtkDataWriter.h"
00033 
00034 class vtkStructuredGrid;
00035 
00036 class VTKIOLEGACY_EXPORT vtkStructuredGridWriter : public vtkDataWriter
00037 {
00038 public:
00039   static vtkStructuredGridWriter *New();
00040   vtkTypeMacro(vtkStructuredGridWriter,vtkDataWriter);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042 
00044 
00045   vtkStructuredGrid* GetInput();
00046   vtkStructuredGrid* GetInput(int port);
00048 
00049 protected:
00050   vtkStructuredGridWriter() {};
00051   ~vtkStructuredGridWriter() {};
00052 
00053   void WriteData();
00054   int WriteBlanking(ostream *fp, vtkStructuredGrid *ds);
00055 
00056   virtual int FillInputPortInformation(int port, vtkInformation *info);
00057 
00058 private:
00059   vtkStructuredGridWriter(const vtkStructuredGridWriter&);  // Not implemented.
00060   void operator=(const vtkStructuredGridWriter&);  // Not implemented.
00061 };
00062 
00063 #endif