VTK  9.2.5
vtkAlgorithmOutput.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAlgorithmOutput.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 =========================================================================*/
63 #ifndef vtkAlgorithmOutput_h
64 #define vtkAlgorithmOutput_h
65 
66 #include "vtkCommonExecutionModelModule.h" // For export macro
67 #include "vtkObject.h"
68 
69 class vtkAlgorithm;
70 
71 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkAlgorithmOutput : public vtkObject
72 {
73 public:
75  vtkTypeMacro(vtkAlgorithmOutput, vtkObject);
76  void PrintSelf(ostream& os, vtkIndent indent) override;
77 
78  void SetIndex(int index);
79  int GetIndex() const;
80 
82  void SetProducer(vtkAlgorithm* producer);
83 
84 protected:
86  ~vtkAlgorithmOutput() override;
87 
88  int Index;
90 
91 private:
92  vtkAlgorithmOutput(const vtkAlgorithmOutput&) = delete;
93  void operator=(const vtkAlgorithmOutput&) = delete;
94 };
95 
96 #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:122
a simple class to control print indentation
Definition: vtkIndent.h:119
abstract base class for most VTK objects
Definition: vtkObject.h:82
@ index
Definition: vtkX3D.h:252