VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/IO/Legacy/vtkUnstructuredGridWriter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkUnstructuredGridWriter.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 =========================================================================*/
00030 #ifndef vtkUnstructuredGridWriter_h
00031 #define vtkUnstructuredGridWriter_h
00032 
00033 #include "vtkIOLegacyModule.h" // For export macro
00034 #include "vtkDataWriter.h"
00035 class vtkUnstructuredGrid;
00036 
00037 class VTKIOLEGACY_EXPORT vtkUnstructuredGridWriter : public vtkDataWriter
00038 {
00039 public:
00040   static vtkUnstructuredGridWriter *New();
00041   vtkTypeMacro(vtkUnstructuredGridWriter,vtkDataWriter);
00042   void PrintSelf(ostream& os, vtkIndent indent);
00043 
00045 
00046   vtkUnstructuredGrid* GetInput();
00047   vtkUnstructuredGrid* GetInput(int port);
00049 
00050 protected:
00051   vtkUnstructuredGridWriter() {}
00052   ~vtkUnstructuredGridWriter() {}
00053 
00054   void WriteData();
00055 
00056   int WriteCellsAndFaces(ostream *fp, vtkUnstructuredGrid *grid,
00057                          const char *label);
00058 
00059   virtual int FillInputPortInformation(int port, vtkInformation *info);
00060 
00061 private:
00062   vtkUnstructuredGridWriter(const vtkUnstructuredGridWriter&);  // Not implemented.
00063   void operator=(const vtkUnstructuredGridWriter&);  // Not implemented.
00064 };
00065 
00066 #endif