VTK  9.4.20241219
vtkUndirectedGraphAlgorithm.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
24#ifndef vtkUndirectedGraphAlgorithm_h
25#define vtkUndirectedGraphAlgorithm_h
26
27#include "vtkAlgorithm.h"
28#include "vtkCommonExecutionModelModule.h" // For export macro
29#include "vtkUndirectedGraph.h" // makes things a bit easier
30
31VTK_ABI_NAMESPACE_BEGIN
32class vtkDataSet;
33
34class VTKCOMMONEXECUTIONMODEL_EXPORT vtkUndirectedGraphAlgorithm : public vtkAlgorithm
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
46
50 vtkUndirectedGraph* GetOutput() { return this->GetOutput(0); }
52
58 void SetInputData(vtkDataObject* obj) { this->SetInputData(0, obj); }
59 void SetInputData(int index, vtkDataObject* obj);
60
61protected:
64
65 // convenience method
66 virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
67 vtkInformationVector* outputVector);
68
73 virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
74 vtkInformationVector* outputVector);
75
81
83
84 // see algorithm for more info
85 int FillOutputPortInformation(int port, vtkInformation* info) override;
86 int FillInputPortInformation(int port, vtkInformation* info) override;
87
88private:
90 void operator=(const vtkUndirectedGraphAlgorithm&) = delete;
91};
92
93VTK_ABI_NAMESPACE_END
94#endif
Superclass for all sources, filters, and sinks in VTK.
general representation of visualization data
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce undirected graph as output.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void SetInputData(int index, vtkDataObject *obj)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkUndirectedGraph * GetOutput(int index)
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
~vtkUndirectedGraphAlgorithm() override
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkUndirectedGraph * GetOutput()
Get the output data object for a port on this algorithm.
static vtkUndirectedGraphAlgorithm * New()
An undirected graph.
int vtkTypeBool
Definition vtkABI.h:64