VTK  9.3.0
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); }
55 
61  void SetInputData(vtkDataObject* obj) { this->SetInputData(0, obj); }
62  void SetInputData(int index, vtkDataObject* obj);
63 
64 protected:
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 
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
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
general representation of visualization data
Definition: vtkDataObject.h:64
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
Superclass for algorithms that produce only directed graph as output.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkDirectedGraph * GetOutput()
Get the output data object for a port on this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void SetInputData(int index, vtkDataObject *obj)
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
~vtkDirectedGraphAlgorithm() override
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkDirectedGraph * GetOutput(int index)
static vtkDirectedGraphAlgorithm * New()
A directed graph.
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ index
Definition: vtkX3D.h:246
int vtkTypeBool
Definition: vtkABI.h:64