VTK  9.3.20240424
vtkGraphWeightFilter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
19#ifndef vtkGraphWeightFilter_h
20#define vtkGraphWeightFilter_h
21
22#include "vtkFiltersGeneralModule.h" // For export macro
23#include "vtkGraphAlgorithm.h"
24
25VTK_ABI_NAMESPACE_BEGIN
26class vtkGraph;
27
28class VTKFILTERSGENERAL_EXPORT vtkGraphWeightFilter : public vtkGraphAlgorithm
29{
30public:
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
34protected:
36 ~vtkGraphWeightFilter() override = default;
37
39
44 virtual float ComputeWeight(vtkGraph* graph, const vtkEdgeType& edge) const = 0;
45
52 virtual bool CheckRequirements(vtkGraph* graph) const;
53
54private:
56 void operator=(const vtkGraphWeightFilter&) = delete;
57};
58
59VTK_ABI_NAMESPACE_END
60#endif
Superclass for algorithms that produce only graph as output.
Base class for filters that weight graph edges.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkGraphWeightFilter() override=default
virtual float ComputeWeight(vtkGraph *graph, const vtkEdgeType &edge) const =0
Compute the weight on the 'graph' for a particular 'edge'.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool CheckRequirements(vtkGraph *graph) const
Ensure that the 'graph' is has all properties that are needed to compute the weights.
vtkGraphWeightFilter()=default
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.