VTK  9.3.1
vtkPolyDataAlgorithm.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
22 #ifndef vtkPolyDataAlgorithm_h
23 #define vtkPolyDataAlgorithm_h
24 
25 #include "vtkAlgorithm.h"
26 #include "vtkCommonExecutionModelModule.h" // For export macro
27 #include "vtkPolyData.h" // makes things a bit easier
28 
29 VTK_ABI_NAMESPACE_BEGIN
30 class vtkDataSet;
31 class vtkPolyData;
32 
33 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkPolyDataAlgorithm : public vtkAlgorithm
34 {
35 public:
36  static vtkPolyDataAlgorithm* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
44  vtkPolyData* GetOutput();
45  vtkPolyData* GetOutput(int);
46  virtual void SetOutput(vtkDataObject* d);
48 
54 
55  // this method is not recommended for use, but lots of old style filters
56  // use it
57  vtkDataObject* GetInput();
58  vtkDataObject* GetInput(int port);
59  vtkPolyData* GetPolyDataInput(int port);
60 
62 
67  void SetInputData(vtkDataObject*);
68  void SetInputData(int, vtkDataObject*);
70 
72 
77  void AddInputData(vtkDataObject*);
78  void AddInputData(int, vtkDataObject*);
80 
81 protected:
83  ~vtkPolyDataAlgorithm() override;
84 
85  // convenience method
86  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
87  vtkInformationVector* outputVector);
88 
93  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
94  vtkInformationVector* outputVector);
95 
100  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
101 
102  // see algorithm for more info
104  int FillInputPortInformation(int port, vtkInformation* info) override;
105 
106 private:
108  void operator=(const vtkPolyDataAlgorithm&) = delete;
109 };
110 
111 VTK_ABI_NAMESPACE_END
112 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkTypeBool
Definition: vtkABI.h:64
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:51
Superclass for algorithms that produce only polydata as output.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:54