00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkPolyDataSource.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 =========================================================================*/ 00028 #ifndef __vtkPolyDataSource_h 00029 #define __vtkPolyDataSource_h 00030 00031 #include "vtkSource.h" 00032 00033 class vtkPolyData; 00034 00035 class VTK_FILTERING_EXPORT vtkPolyDataSource : public vtkSource 00036 { 00037 public: 00038 vtkTypeRevisionMacro(vtkPolyDataSource,vtkSource); 00039 void PrintSelf(ostream& os, vtkIndent indent); 00040 00042 00043 vtkPolyData *GetOutput(); 00044 vtkPolyData *GetOutput(int idx); 00045 void SetOutput(vtkPolyData *output); 00047 00048 protected: 00049 vtkPolyDataSource(); 00050 ~vtkPolyDataSource() {}; 00051 00052 // Update extent of PolyData is specified in pieces. 00053 // Since all DataObjects should be able to set UpdateExent as pieces, 00054 // just copy output->UpdateExtent all Inputs. 00055 void ComputeInputUpdateExtents(vtkDataObject *output); 00056 00057 // Used by streaming: The extent of the output being processed 00058 // by the execute method. Set in the ComputeInputUpdateExtents method. 00059 int ExecutePiece; 00060 int ExecuteNumberOfPieces; 00061 00062 int ExecuteGhostLevel; 00063 00064 virtual int FillOutputPortInformation(int, vtkInformation*); 00065 private: 00066 vtkPolyDataSource(const vtkPolyDataSource&); // Not implemented. 00067 void operator=(const vtkPolyDataSource&); // Not implemented. 00068 }; 00069 00070 #endif 00071 00072 00073 00074 00075