VTK
vtkPolyDataAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolyDataAlgorithm.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 =========================================================================*/
33 #ifndef vtkPolyDataAlgorithm_h
34 #define vtkPolyDataAlgorithm_h
35 
36 #include "vtkCommonExecutionModelModule.h" // For export macro
37 #include "vtkAlgorithm.h"
38 #include "vtkPolyData.h" // makes things a bit easier
39 
40 class vtkDataSet;
41 class vtkPolyData;
42 
44 {
45 public:
46  static vtkPolyDataAlgorithm *New();
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
52  vtkPolyData* GetOutput();
53  vtkPolyData* GetOutput(int);
54  virtual void SetOutput(vtkDataObject* d);
56 
58 
59  virtual int ProcessRequest(vtkInformation*,
63 
64  // this method is not recommended for use, but lots of old style filters
65  // use it
66  vtkDataObject* GetInput();
67  vtkDataObject *GetInput(int port);
68  vtkPolyData *GetPolyDataInput(int port);
69 
71 
74  void SetInputData(vtkDataObject *);
75  void SetInputData(int, vtkDataObject*);
77 
79 
82  void AddInputData(vtkDataObject *);
83  void AddInputData(int, vtkDataObject*);
85 
86 protected:
89 
90  // convenience method
91  virtual int RequestInformation(vtkInformation* request,
92  vtkInformationVector** inputVector,
93  vtkInformationVector* outputVector);
94 
96 
98  virtual int RequestData(vtkInformation* request,
99  vtkInformationVector** inputVector,
100  vtkInformationVector* outputVector);
102 
104 
106  virtual int RequestUpdateExtent(vtkInformation*,
110 
111  // see algorithm for more info
114 
115 private:
116  vtkPolyDataAlgorithm(const vtkPolyDataAlgorithm&); // Not implemented.
117  void operator=(const vtkPolyDataAlgorithm&); // Not implemented.
118 };
119 
120 #endif
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
Superclass for algorithms that produce only polydata as output.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent)