VTK
dox/Filtering/vtkUnstructuredGridSource.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkUnstructuredGridSource.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 =========================================================================*/
00025 #ifndef __vtkUnstructuredGridSource_h
00026 #define __vtkUnstructuredGridSource_h
00027 
00028 #include "vtkSource.h"
00029 
00030 class vtkUnstructuredGrid;
00031 
00032 class VTK_FILTERING_EXPORT vtkUnstructuredGridSource : public vtkSource
00033 {
00034 public:
00035   vtkTypeMacro(vtkUnstructuredGridSource,vtkSource);
00036   void PrintSelf(ostream& os, vtkIndent indent);
00037 
00039 
00040   vtkUnstructuredGrid *GetOutput();
00041   vtkUnstructuredGrid *GetOutput(int idx);
00042   void SetOutput(vtkUnstructuredGrid *output);
00044   
00045 protected:
00046   vtkUnstructuredGridSource();
00047   ~vtkUnstructuredGridSource() {};
00048   
00049   // Since the Outputs[0] has the same UpdateExtent format
00050   // as the generic DataObject we can copy the UpdateExtent
00051   // as a default behavior.
00052   void ComputeInputUpdateExtents(vtkDataObject *output);
00053   
00054   virtual int FillOutputPortInformation(int, vtkInformation*);
00055 private:
00056   vtkUnstructuredGridSource(const vtkUnstructuredGridSource&);  // Not implemented.
00057   void operator=(const vtkUnstructuredGridSource&);  // Not implemented.
00058 };
00059 
00060 #endif
00061 
00062