VTK
vtkUnstructuredGridSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUnstructuredGridSource.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef __vtkUnstructuredGridSource_h
26 #define __vtkUnstructuredGridSource_h
27 
28 #include "vtkSource.h"
29 
30 class vtkUnstructuredGrid;
31 
33 {
34 public:
35  vtkTypeMacro(vtkUnstructuredGridSource,vtkSource);
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
39 
40  vtkUnstructuredGrid *GetOutput();
41  vtkUnstructuredGrid *GetOutput(int idx);
42  void SetOutput(vtkUnstructuredGrid *output);
44 
45 protected:
48 
49  // Since the Outputs[0] has the same UpdateExtent format
50  // as the generic DataObject we can copy the UpdateExtent
51  // as a default behavior.
52  void ComputeInputUpdateExtents(vtkDataObject *output);
53 
54  virtual int FillOutputPortInformation(int, vtkInformation*);
55 private:
56  vtkUnstructuredGridSource(const vtkUnstructuredGridSource&); // Not implemented.
57  void operator=(const vtkUnstructuredGridSource&); // Not implemented.
58 };
59 
60 #endif
61 
62 
abstract class whose subclasses generate unstructured grid data
Store vtkAlgorithm input/output information.
#define VTK_FILTERING_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:37
helper class to get VTK data object types as string and instantiate them