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 =========================================================================*/ 00027 #ifndef __vtkUnstructuredGridWriter_h 00028 #define __vtkUnstructuredGridWriter_h 00029 00030 #include "vtkDataWriter.h" 00031 class vtkUnstructuredGrid; 00032 00033 class VTK_IO_EXPORT vtkUnstructuredGridWriter : public vtkDataWriter 00034 { 00035 public: 00036 static vtkUnstructuredGridWriter *New(); 00037 vtkTypeMacro(vtkUnstructuredGridWriter,vtkDataWriter); 00038 void PrintSelf(ostream& os, vtkIndent indent); 00039 00041 00042 vtkUnstructuredGrid* GetInput(); 00043 vtkUnstructuredGrid* GetInput(int port); 00045 00046 protected: 00047 vtkUnstructuredGridWriter() {}; 00048 ~vtkUnstructuredGridWriter() {}; 00049 00050 void WriteData(); 00051 00052 virtual int FillInputPortInformation(int port, vtkInformation *info); 00053 00054 private: 00055 vtkUnstructuredGridWriter(const vtkUnstructuredGridWriter&); // Not implemented. 00056 void operator=(const vtkUnstructuredGridWriter&); // Not implemented. 00057 }; 00058 00059 #endif 00060 00061