VTK  9.3.20240420
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
34VTK_ABI_NAMESPACE_BEGIN
35class vtkDataSet;
36
37class VTKCOMMONEXECUTIONMODEL_EXPORT vtkDirectedGraphAlgorithm : public vtkAlgorithm
38{
39public:
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
64protected:
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
86
87 // see algorithm for more info
88 int FillOutputPortInformation(int port, vtkInformation* info) override;
89 int FillInputPortInformation(int port, vtkInformation* info) override;
90
91private:
93 void operator=(const vtkDirectedGraphAlgorithm&) = delete;
94};
95
96VTK_ABI_NAMESPACE_END
97#endif
Superclass for all sources, filters, and sinks in VTK.
general representation of visualization data
abstract class to specify dataset behavior
Definition vtkDataSet.h:166
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
static vtkDirectedGraphAlgorithm * New()
vtkDirectedGraph * GetOutput()
Get the output data object for a port on this algorithm.
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)
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.
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void SetInputData(int index, vtkDataObject *obj)
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
~vtkDirectedGraphAlgorithm() override
vtkDirectedGraph * GetOutput(int index)
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
A directed graph.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:64