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

vtkPolyDataReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkPolyDataReader.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 __vtkPolyDataReader_h
00037 #define __vtkPolyDataReader_h
00038 
00039 #include "vtkDataReader.h"
00040 
00041 class vtkPolyData;
00042 
00043 class VTK_IO_EXPORT vtkPolyDataReader : public vtkDataReader
00044 {
00045 public:
00046   static vtkPolyDataReader *New();
00047   vtkTypeRevisionMacro(vtkPolyDataReader,vtkDataReader);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00051 
00052   vtkPolyData *GetOutput();
00053   vtkPolyData *GetOutput(int idx);
00054   void SetOutput(vtkPolyData *output);
00056 
00057 protected:
00058   vtkPolyDataReader();
00059   ~vtkPolyDataReader();
00060 
00061   virtual int RequestData(vtkInformation *, vtkInformationVector **,
00062                           vtkInformationVector *);
00063 
00064   // Update extent of PolyData is specified in pieces.  
00065   // Since all DataObjects should be able to set UpdateExent as pieces,
00066   // just copy output->UpdateExtent  all Inputs.
00067   virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **,
00068                                   vtkInformationVector *);
00069   
00070   virtual int FillOutputPortInformation(int, vtkInformation*);
00071 
00072   // Used by streaming: The extent of the output being processed
00073   // by the execute method. Set in the ComputeInputUpdateExtents method.
00074   int ExecutePiece;
00075   int ExecuteNumberOfPieces;
00076   int ExecuteGhostLevel;
00077 private:
00078   vtkPolyDataReader(const vtkPolyDataReader&);  // Not implemented.
00079   void operator=(const vtkPolyDataReader&);  // Not implemented.
00080 };
00081 
00082 #endif
00083 
00084 

Generated on Mon Jan 21 23:07:31 2008 for VTK by  doxygen 1.4.3-20050530