VTK
dox/Filtering/vtkPolyDataSource.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPolyDataSource.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 =========================================================================*/
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   vtkTypeMacro(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   int FillOutputPortInformation(int, vtkInformation*);
00058 
00059 private:
00060   vtkPolyDataSource(const vtkPolyDataSource&);  // Not implemented.
00061   void operator=(const vtkPolyDataSource&);  // Not implemented.
00062 };
00063 
00064 #endif
00065 
00066 
00067 
00068 
00069