VTK  9.3.1
vtkDirectedGraphAlgorithm.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
27 #ifndef vtkDirectedGraphAlgorithm_h
28 #define vtkDirectedGraphAlgorithm_h
29 
30 #include "vtkAlgorithm.h"
31 #include "vtkCommonExecutionModelModule.h" // For export macro
32 #include "vtkDirectedGraph.h" // makes things a bit easier
33 
34 VTK_ABI_NAMESPACE_BEGIN
35 class vtkDataSet;
36 
37 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkDirectedGraphAlgorithm : public vtkAlgorithm
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
49 
53  vtkDirectedGraph* GetOutput() { return this->GetOutput(0); }
54  vtkDirectedGraph* GetOutput(int index);
55 
61  void SetInputData(vtkDataObject* obj) { this->SetInputData(0, obj); }
62  void SetInputData(int index, vtkDataObject* obj);
63 
64 protected:
66  ~vtkDirectedGraphAlgorithm() override;
67 
68  // convenience method
69  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
70  vtkInformationVector* outputVector);
71 
76  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
77  vtkInformationVector* outputVector);
78 
83  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
84 
85  // see algorithm for more info
88 
89 private:
91  void operator=(const vtkDirectedGraphAlgorithm&) = delete;
92 };
93 
94 VTK_ABI_NAMESPACE_END
95 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
A directed graph.
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
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
Superclass for algorithms that produce only directed graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
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()
vtkDirectedGraph * GetOutput()
Get the output data object for a port on this algorithm.
general representation of visualization data
Definition: vtkDataObject.h:54