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

dox/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 =========================================================================*/
00029 #ifndef __vtkUnstructuredGridSource_h
00030 #define __vtkUnstructuredGridSource_h
00031 
00032 #include "vtkSource.h"
00033 
00034 class vtkUnstructuredGrid;
00035 
00036 class VTK_FILTERING_EXPORT vtkUnstructuredGridSource : public vtkSource
00037 {
00038 public:
00039   vtkTypeRevisionMacro(vtkUnstructuredGridSource,vtkSource);
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041 
00043 
00044   vtkUnstructuredGrid *GetOutput();
00045   vtkUnstructuredGrid *GetOutput(int idx);
00046   void SetOutput(vtkUnstructuredGrid *output);
00048   
00049 protected:
00050   vtkUnstructuredGridSource();
00051   ~vtkUnstructuredGridSource() {};
00052   
00053   // Since the Outputs[0] has the same UpdateExtent format
00054   // as the generic DataObject we can copy the UpdateExtent
00055   // as a default behavior.
00056   void ComputeInputUpdateExtents(vtkDataObject *output);
00057   
00058 private:
00059   vtkUnstructuredGridSource(const vtkUnstructuredGridSource&);  // Not implemented.
00060   void operator=(const vtkUnstructuredGridSource&);  // Not implemented.
00061 };
00062 
00063 #endif
00064 
00065