VTK  9.0.20200812
vtkGraphWeightEuclideanDistanceFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGraphWeightEuclideanDistanceFilter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
24 #ifndef vtkGraphWeightEuclideanDistanceFilter_h
25 #define vtkGraphWeightEuclideanDistanceFilter_h
26 
27 #include "vtkFiltersGeneralModule.h" // For export macro
28 #include "vtkGraphWeightFilter.h"
29 
30 class vtkGraph;
31 
32 class VTKFILTERSGENERAL_EXPORT vtkGraphWeightEuclideanDistanceFilter : public vtkGraphWeightFilter
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
39 protected:
41  ~vtkGraphWeightEuclideanDistanceFilter() override = default;
42 
47  float ComputeWeight(vtkGraph* const graph, const vtkEdgeType& edge) const override;
48 
52  bool CheckRequirements(vtkGraph* const graph) const override;
53 
54 private:
56  void operator=(const vtkGraphWeightEuclideanDistanceFilter&) = delete;
57 };
58 
59 #endif
vtkGraphWeightFilter::CheckRequirements
virtual bool CheckRequirements(vtkGraph *const graph) const
Ensure that the 'graph' is has all properties that are needed to compute the weights.
vtkGraphWeightEuclideanDistanceFilter
Weights the edges of a graph based on the Euclidean distance between the points.
Definition: vtkGraphWeightEuclideanDistanceFilter.h:32
vtkGraphWeightFilter::ComputeWeight
virtual float ComputeWeight(vtkGraph *const graph, const vtkEdgeType &edge) const =0
Compute the weight on the 'graph' for a particular 'edge'.
vtkGraphWeightFilter.h
vtkEdgeType
Definition: vtkGraph.h:276
vtkGraphWeightFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkGraphWeightFilter
Base class for filters that weight graph edges.
Definition: vtkGraphWeightFilter.h:39
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:289
vtkGraphAlgorithm::New
static vtkGraphAlgorithm * New()