VTK: Common/ExecutionModel/vtkUndirectedGraphAlgorithm.h Source File

| VTK 9.3.1

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
31 VTK_ABI_NAMESPACE_BEGIN
32 class vtkDataSet;
33
34 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkUndirectedGraphAlgorithm : public vtkAlgorithm
35 {
36 public:
37 static vtkUndirectedGraphAlgorithm* New();
38 vtkTypeMacro(vtkUndirectedGraphAlgorithm, vtkAlgorithm);
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
44 vtkTypeBool ProcessRequest(
45 vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
46
50 vtkUndirectedGraph* GetOutput() { return this->GetOutput(0); }
51 vtkUndirectedGraph* GetOutput(int index);
52
58 void SetInputData(vtkDataObject* obj) { this->SetInputData(0, obj); }
59 void SetInputData(int index, vtkDataObject* obj);
60
61 protected:
62 vtkUndirectedGraphAlgorithm();
63 ~vtkUndirectedGraphAlgorithm() override;
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
80 virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
81
82 // see algorithm for more info
83 int FillOutputPortInformation(int port, vtkInformation* info) override;
84 int FillInputPortInformation(int port, vtkInformation* info) override;
85
86 private:
87 vtkUndirectedGraphAlgorithm(const vtkUndirectedGraphAlgorithm&) = delete;
88 void operator=(const vtkUndirectedGraphAlgorithm&) = delete;
89 };
90
91 VTK_ABI_NAMESPACE_END
92 #endif
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkUndirectedGraphAlgorithm
Superclass for algorithms that produce undirected graph as output.
Definition: vtkUndirectedGraphAlgorithm.h:35
vtkUndirectedGraphAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUndirectedGraphAlgorithm::SetInputData
void SetInputData(int index, vtkDataObject *obj)
vtkUndirectedGraphAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkUndirectedGraphAlgorithm::GetOutput
vtkUndirectedGraph * GetOutput(int index)
vtkUndirectedGraphAlgorithm::SetInputData
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
Definition: vtkUndirectedGraphAlgorithm.h:58
vtkUndirectedGraphAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkUndirectedGraphAlgorithm::ProcessRequest
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
vtkUndirectedGraphAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkUndirectedGraphAlgorithm::~vtkUndirectedGraphAlgorithm
~vtkUndirectedGraphAlgorithm() override
vtkUndirectedGraphAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkUndirectedGraphAlgorithm::New
static vtkUndirectedGraphAlgorithm * New()
vtkUndirectedGraphAlgorithm::vtkUndirectedGraphAlgorithm
vtkUndirectedGraphAlgorithm()
vtkUndirectedGraphAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkUndirectedGraphAlgorithm::GetOutput
vtkUndirectedGraph * GetOutput()
Get the output data object for a port on this algorithm.
Definition: vtkUndirectedGraphAlgorithm.h:50
vtkUndirectedGraph
An undirected graph.
Definition: vtkUndirectedGraph.h:49
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkX3D::index
@ index
Definition: vtkX3D.h:246
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:64
vtkAlgorithm.h
vtkUndirectedGraph.h