Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/IO/vtkPolyDataReader.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkPolyDataReader.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00040 #ifndef __vtkPolyDataReader_h 00041 #define __vtkPolyDataReader_h 00042 00043 #include "vtkDataReader.h" 00044 00045 class vtkPolyData; 00046 00047 class VTK_IO_EXPORT vtkPolyDataReader : public vtkDataReader 00048 { 00049 public: 00050 static vtkPolyDataReader *New(); 00051 vtkTypeRevisionMacro(vtkPolyDataReader,vtkDataReader); 00052 void PrintSelf(ostream& os, vtkIndent indent); 00053 00055 00056 vtkPolyData *GetOutput(); 00057 vtkPolyData *GetOutput(int idx) 00058 {return (vtkPolyData *) this->vtkSource::GetOutput(idx); }; 00059 void SetOutput(vtkPolyData *output); 00061 00062 protected: 00063 vtkPolyDataReader(); 00064 ~vtkPolyDataReader(); 00065 00066 void Execute(); 00067 00068 // Update extent of PolyData is specified in pieces. 00069 // Since all DataObjects should be able to set UpdateExent as pieces, 00070 // just copy output->UpdateExtent all Inputs. 00071 void ComputeInputUpdateExtents(vtkDataObject *output); 00072 00073 // Used by streaming: The extent of the output being processed 00074 // by the execute method. Set in the ComputeInputUpdateExtents method. 00075 int ExecutePiece; 00076 int ExecuteNumberOfPieces; 00077 int ExecuteGhostLevel; 00078 private: 00079 vtkPolyDataReader(const vtkPolyDataReader&); // Not implemented. 00080 void operator=(const vtkPolyDataReader&); // Not implemented. 00081 }; 00082 00083 #endif 00084 00085