VTK  9.3.20240418
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
41 #ifndef vtkAlgorithmOutput_h
42 #define vtkAlgorithmOutput_h
43 
44 #include "vtkCommonExecutionModelModule.h" // For export macro
45 #include "vtkObject.h"
46 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
47 
48 VTK_ABI_NAMESPACE_BEGIN
49 class vtkAlgorithm;
50 
51 class VTKCOMMONEXECUTIONMODEL_EXPORT VTK_MARSHALAUTO vtkAlgorithmOutput : public vtkObject
52 {
53 public:
55  vtkTypeMacro(vtkAlgorithmOutput, vtkObject);
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
58  void SetIndex(int index);
59  int GetIndex() const;
60 
62  void SetProducer(vtkAlgorithm* producer);
63 
64 protected:
66  ~vtkAlgorithmOutput() override;
67 
68  int Index;
70 
71 private:
72  vtkAlgorithmOutput(const vtkAlgorithmOutput&) = delete;
73  void operator=(const vtkAlgorithmOutput&) = delete;
74 };
75 
76 VTK_ABI_NAMESPACE_END
77 #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:162
a simple class to control print indentation
Definition: vtkIndent.h:108
abstract base class for most VTK objects
Definition: vtkObject.h:162
@ index
Definition: vtkX3D.h:246
#define VTK_MARSHALAUTO