00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTableReader.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 __vtkTableReader_h 00031 #define __vtkTableReader_h 00032 00033 #include "vtkDataReader.h" 00034 00035 class vtkTable; 00036 00037 class VTK_IO_EXPORT vtkTableReader : public vtkDataReader 00038 { 00039 public: 00040 static vtkTableReader *New(); 00041 vtkTypeMacro(vtkTableReader,vtkDataReader); 00042 void PrintSelf(ostream& os, vtkIndent indent); 00043 00045 00046 vtkTable *GetOutput(); 00047 vtkTable *GetOutput(int idx); 00048 void SetOutput(vtkTable *output); 00050 00051 protected: 00052 vtkTableReader(); 00053 ~vtkTableReader(); 00054 00055 virtual int RequestData(vtkInformation *, vtkInformationVector **, 00056 vtkInformationVector *); 00057 00058 // Since the Outputs[0] has the same UpdateExtent format 00059 // as the generic DataObject we can copy the UpdateExtent 00060 // as a default behavior. 00061 virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, 00062 vtkInformationVector *); 00063 00064 virtual int FillOutputPortInformation(int, vtkInformation*); 00065 private: 00066 vtkTableReader(const vtkTableReader&); // Not implemented. 00067 void operator=(const vtkTableReader&); // Not implemented. 00068 }; 00069 00070 #endif 00071 00072