Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Filtering/vtkUnstructuredGridSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkUnstructuredGridSource.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00041 #ifndef __vtkUnstructuredGridSource_h
00042 #define __vtkUnstructuredGridSource_h
00043 
00044 #include "vtkSource.h"
00045 
00046 class vtkUnstructuredGrid;
00047 
00048 class VTK_FILTERING_EXPORT vtkUnstructuredGridSource : public vtkSource
00049 {
00050 public:
00051   vtkTypeRevisionMacro(vtkUnstructuredGridSource,vtkSource);
00052   void PrintSelf(ostream& os, vtkIndent indent);
00053 
00055 
00056   vtkUnstructuredGrid *GetOutput();
00057   vtkUnstructuredGrid *GetOutput(int idx);
00058   void SetOutput(vtkUnstructuredGrid *output);
00060   
00061 protected:
00062   vtkUnstructuredGridSource();
00063   ~vtkUnstructuredGridSource() {};
00064   
00065   // Since the Outputs[0] has the same UpdateExtent format
00066   // as the generic DataObject we can copy the UpdateExtent
00067   // as a default behavior.
00068   void ComputeInputUpdateExtents(vtkDataObject *output);
00069   
00070 private:
00071   vtkUnstructuredGridSource(const vtkUnstructuredGridSource&);  // Not implemented.
00072   void operator=(const vtkUnstructuredGridSource&);  // Not implemented.
00073 };
00074 
00075 #endif
00076 
00077