00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTableWriter.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 =========================================================================*/ 00024 #ifndef __vtkTableWriter_h 00025 #define __vtkTableWriter_h 00026 00027 #include "vtkDataWriter.h" 00028 class vtkTable; 00029 00030 class VTK_IO_EXPORT vtkTableWriter : public vtkDataWriter 00031 { 00032 public: 00033 static vtkTableWriter *New(); 00034 vtkTypeMacro(vtkTableWriter,vtkDataWriter); 00035 void PrintSelf(ostream& os, vtkIndent indent); 00036 00038 00039 vtkTable* GetInput(); 00040 vtkTable* GetInput(int port); 00042 00043 protected: 00044 vtkTableWriter() {}; 00045 ~vtkTableWriter() {}; 00046 00047 void WriteData(); 00048 00049 virtual int FillInputPortInformation(int port, vtkInformation *info); 00050 00051 private: 00052 vtkTableWriter(const vtkTableWriter&); // Not implemented. 00053 void operator=(const vtkTableWriter&); // Not implemented. 00054 }; 00055 00056 #endif