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