VTK
vtkPolyDataSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolyDataSource.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 =========================================================================*/
28 #ifndef __vtkPolyDataSource_h
29 #define __vtkPolyDataSource_h
30 
31 #include "vtkSource.h"
32 
33 class vtkPolyData;
34 
35 class VTK_FILTERING_EXPORT vtkPolyDataSource : public vtkSource
36 {
37 public:
38  vtkTypeMacro(vtkPolyDataSource,vtkSource);
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
43  vtkPolyData *GetOutput();
44  vtkPolyData *GetOutput(int idx);
45  void SetOutput(vtkPolyData *output);
47 
48 protected:
51 
52  // Update extent of PolyData is specified in pieces.
53  // Since all DataObjects should be able to set UpdateExent as pieces,
54  // just copy output->UpdateExtent all Inputs.
55  void ComputeInputUpdateExtents(vtkDataObject *output);
56 
57  int FillOutputPortInformation(int, vtkInformation*);
58 
59 private:
60  vtkPolyDataSource(const vtkPolyDataSource&); // Not implemented.
61  void operator=(const vtkPolyDataSource&); // Not implemented.
62 };
63 
64 #endif
65 
66 
67 
68 
69 
Store vtkAlgorithm input/output information.
#define VTK_FILTERING_EXPORT
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:81
a simple class to control print indentation
Definition: vtkIndent.h:37
abstract class whose subclasses generate polygonal data
helper class to get VTK data object types as string and instantiate them