VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/IO/Legacy/vtkPolyDataReader.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPolyDataReader.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 vtkPolyDataReader_h
00037 #define vtkPolyDataReader_h
00038 
00039 #include "vtkIOLegacyModule.h" // For export macro
00040 #include "vtkDataReader.h"
00041 
00042 class vtkPolyData;
00043 
00044 class VTKIOLEGACY_EXPORT vtkPolyDataReader : public vtkDataReader
00045 {
00046 public:
00047   static vtkPolyDataReader *New();
00048   vtkTypeMacro(vtkPolyDataReader,vtkDataReader);
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050 
00052 
00053   vtkPolyData *GetOutput();
00054   vtkPolyData *GetOutput(int idx);
00055   void SetOutput(vtkPolyData *output);
00057 
00058 protected:
00059   vtkPolyDataReader();
00060   ~vtkPolyDataReader();
00061 
00062   int RequestData(vtkInformation *, vtkInformationVector **,
00063                   vtkInformationVector *);
00064 
00065   // Update extent of PolyData is specified in pieces.
00066   // Since all DataObjects should be able to set UpdateExent as pieces,
00067   // just copy output->UpdateExtent  all Inputs.
00068   int RequestUpdateExtent(vtkInformation *, vtkInformationVector **,
00069                           vtkInformationVector *);
00070 
00071   int FillOutputPortInformation(int, vtkInformation*);
00072 
00073 private:
00074   vtkPolyDataReader(const vtkPolyDataReader&);  // Not implemented.
00075   void operator=(const vtkPolyDataReader&);  // Not implemented.
00076 };
00077 
00078 #endif