00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkStructuredPointsReader.h,v $ 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 =========================================================================*/ 00036 #ifndef __vtkStructuredPointsReader_h 00037 #define __vtkStructuredPointsReader_h 00038 00039 #include "vtkDataReader.h" 00040 00041 class vtkStructuredPoints; 00042 00043 class VTK_IO_EXPORT vtkStructuredPointsReader : public vtkDataReader 00044 { 00045 public: 00046 static vtkStructuredPointsReader *New(); 00047 vtkTypeRevisionMacro(vtkStructuredPointsReader,vtkDataReader); 00048 void PrintSelf(ostream& os, vtkIndent indent); 00049 00051 00052 void SetOutput(vtkStructuredPoints *output); 00053 vtkStructuredPoints *GetOutput(int idx); 00054 vtkStructuredPoints *GetOutput(); 00056 00059 virtual int ReadMetaData(vtkInformation *outInfo); 00060 00061 protected: 00062 vtkStructuredPointsReader(); 00063 ~vtkStructuredPointsReader(); 00064 00065 virtual int RequestData(vtkInformation *, vtkInformationVector **, 00066 vtkInformationVector *); 00067 00068 // Default method performs Update to get information. Not all the old 00069 // structured points sources compute information 00070 virtual int RequestInformation(vtkInformation *, vtkInformationVector **, 00071 vtkInformationVector *); 00072 00073 virtual int FillOutputPortInformation(int, vtkInformation *); 00074 private: 00075 vtkStructuredPointsReader(const vtkStructuredPointsReader&); // Not implemented. 00076 void operator=(const vtkStructuredPointsReader&); // Not implemented. 00077 }; 00078 00079 #endif 00080 00081