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