VTK  9.3.0
vtkAlgorithmOutput.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
31 #ifndef vtkAlgorithmOutput_h
32 #define vtkAlgorithmOutput_h
33 
34 #include "vtkCommonExecutionModelModule.h" // For export macro
35 #include "vtkObject.h"
36 
37 VTK_ABI_NAMESPACE_BEGIN
38 class vtkAlgorithm;
39 
40 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkAlgorithmOutput : public vtkObject
41 {
42 public:
44  vtkTypeMacro(vtkAlgorithmOutput, vtkObject);
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
47  void SetIndex(int index);
48  int GetIndex() const;
49 
51  void SetProducer(vtkAlgorithm* producer);
52 
53 protected:
55  ~vtkAlgorithmOutput() override;
56 
57  int Index;
59 
60 private:
61  vtkAlgorithmOutput(const vtkAlgorithmOutput&) = delete;
62  void operator=(const vtkAlgorithmOutput&) = delete;
63 };
64 
65 VTK_ABI_NAMESPACE_END
66 #endif
Proxy object to connect input/output ports.
static vtkAlgorithmOutput * New()
vtkAlgorithm * GetProducer() const
void SetProducer(vtkAlgorithm *producer)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkAlgorithmOutput() override
vtkAlgorithm * Producer
void SetIndex(int index)
int GetIndex() const
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract base class for most VTK objects
Definition: vtkObject.h:61
@ index
Definition: vtkX3D.h:246