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

vtkUnstructuredGridSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkUnstructuredGridSource.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 =========================================================================*/
00038 #ifndef __vtkUnstructuredGridSource_h
00039 #define __vtkUnstructuredGridSource_h
00040 
00041 #include "vtkSource.h"
00042 
00043 class vtkUnstructuredGrid;
00044 
00045 class VTK_FILTERING_EXPORT vtkUnstructuredGridSource : public vtkSource
00046 {
00047 public:
00048   vtkTypeRevisionMacro(vtkUnstructuredGridSource,vtkSource);
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050 
00052 
00053   vtkUnstructuredGrid *GetOutput();
00054   vtkUnstructuredGrid *GetOutput(int idx);
00055   void SetOutput(vtkUnstructuredGrid *output);
00057   
00058 protected:
00059   vtkUnstructuredGridSource();
00060   ~vtkUnstructuredGridSource() {};
00061   
00062   // Since the Outputs[0] has the same UpdateExtent format
00063   // as the generic DataObject we can copy the UpdateExtent
00064   // as a default behavior.
00065   void ComputeInputUpdateExtents(vtkDataObject *output);
00066   
00067   virtual int FillOutputPortInformation(int, vtkInformation*);
00068 private:
00069   vtkUnstructuredGridSource(const vtkUnstructuredGridSource&);  // Not implemented.
00070   void operator=(const vtkUnstructuredGridSource&);  // Not implemented.
00071 };
00072 
00073 #endif
00074 
00075