VTK  9.4.20241219
vtkGraphAlgorithm.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
58#ifndef vtkGraphAlgorithm_h
59#define vtkGraphAlgorithm_h
60
61#include "vtkAlgorithm.h"
62#include "vtkCommonExecutionModelModule.h" // For export macro
63#include "vtkGraph.h" // makes things a bit easier
64
65VTK_ABI_NAMESPACE_BEGIN
66class vtkDataSet;
67
68class VTKCOMMONEXECUTIONMODEL_EXPORT vtkGraphAlgorithm : public vtkAlgorithm
69{
70public:
73 void PrintSelf(ostream& os, vtkIndent indent) override;
74
80
84 vtkGraph* GetOutput() { return this->GetOutput(0); }
85 vtkGraph* GetOutput(int index);
86
92 void SetInputData(vtkDataObject* obj) { this->SetInputData(0, obj); }
93 void SetInputData(int index, vtkDataObject* obj);
94
95protected:
98
99 // convenience method
100 virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
101 vtkInformationVector* outputVector);
102
103 virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
104 vtkInformationVector* outputVector);
105
110 virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
111 vtkInformationVector* outputVector);
112
118
120
121 // see algorithm for more info
122 int FillOutputPortInformation(int port, vtkInformation* info) override;
123 int FillInputPortInformation(int port, vtkInformation* info) override;
124
125private:
126 vtkGraphAlgorithm(const vtkGraphAlgorithm&) = delete;
127 void operator=(const vtkGraphAlgorithm&) = delete;
128};
129
130VTK_ABI_NAMESPACE_END
131#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
Superclass for algorithms that produce only graph as output.
~vtkGraphAlgorithm() override
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkGraph * GetOutput()
Get the output data object for a port on this algorithm.
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for 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)
vtkGraph * GetOutput(int index)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
static vtkGraphAlgorithm * New()
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
void SetInputData(int index, vtkDataObject *obj)
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
Base class for graph data types.
Definition vtkGraph.h:340
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