VTK
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=========================================================================*/
27#ifndef vtkGraphWeightEuclideanDistanceFilter_h
28#define vtkGraphWeightEuclideanDistanceFilter_h
29
30#include "vtkFiltersGeneralModule.h" // For export macro
32
33class vtkGraph;
34
35class VTKFILTERSGENERAL_EXPORT vtkGraphWeightEuclideanDistanceFilter : public vtkGraphWeightFilter
36{
37 public:
40 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
41
42protected:
45
50 float ComputeWeight(vtkGraph* const graph, const vtkEdgeType& edge) const VTK_OVERRIDE;
51
55 bool CheckRequirements(vtkGraph* const graph) const VTK_OVERRIDE;
56
57private:
59 void operator=(const vtkGraphWeightEuclideanDistanceFilter&) VTK_DELETE_FUNCTION;
60};
61
62#endif
Weights the edges of a graph based on the Euclidean distance between the points.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
float ComputeWeight(vtkGraph *const graph, const vtkEdgeType &edge) const override
Compute the Euclidean distance between the Points defined for the verticies of a specified 'edge'.
bool CheckRequirements(vtkGraph *const graph) const override
Ensure that 'graph' has Points defined.
static vtkGraphWeightEuclideanDistanceFilter * New()
Base class for filters that weight graph edges.
Base class for graph data types.
Definition: vtkGraph.h:288
a simple class to control print indentation
Definition: vtkIndent.h:40