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

vtkPolyDataSource.h

Go to the documentation of this file.
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 =========================================================================*/
00040 #ifndef __vtkPolyDataSource_h
00041 #define __vtkPolyDataSource_h
00042 
00043 #include "vtkSource.h"
00044 
00045 class vtkPolyData;
00046 
00047 class VTK_FILTERING_EXPORT vtkPolyDataSource : public vtkSource
00048 {
00049 public:
00050   vtkTypeRevisionMacro(vtkPolyDataSource,vtkSource);
00051   void PrintSelf(ostream& os, vtkIndent indent);
00052 
00054 
00055   vtkPolyData *GetOutput();
00056   vtkPolyData *GetOutput(int idx);
00057   void SetOutput(vtkPolyData *output);
00059 
00060 protected:
00061   vtkPolyDataSource();
00062   ~vtkPolyDataSource() {};
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   void ComputeInputUpdateExtents(vtkDataObject *output);
00068   
00069   // Used by streaming: The extent of the output being processed
00070   // by the execute method. Set in the ComputeInputUpdateExtents method.
00071   int ExecutePiece;
00072   int ExecuteNumberOfPieces;
00073   
00074   int ExecuteGhostLevel;
00075 
00076   virtual int FillOutputPortInformation(int, vtkInformation*);
00077 private:
00078   vtkPolyDataSource(const vtkPolyDataSource&);  // Not implemented.
00079   void operator=(const vtkPolyDataSource&);  // Not implemented.
00080 };
00081 
00082 #endif
00083 
00084 
00085 
00086 
00087