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 =========================================================================*/
26 #ifndef vtkGraphWeightEuclideanDistanceFilter_h
27 #define vtkGraphWeightEuclideanDistanceFilter_h
28 
29 #include "vtkFiltersGeneralModule.h" // For export macro
30 #include "vtkGraphWeightFilter.h"
31 
32 class vtkGraph;
33 
35 {
36  public:
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
41 protected:
44 
47  float ComputeWeight(vtkGraph* const graph, const vtkEdgeType& edge) const;
48 
50  bool CheckRequirements(vtkGraph* const graph) const;
51 
52 private:
54  void operator=(const vtkGraphWeightEuclideanDistanceFilter&); // Not implemented.
55 };
56 
57 #endif
Base class for filters that weight graph edges.
static vtkGraphAlgorithm * New()
virtual bool CheckRequirements(vtkGraph *const graph) const
Weights the edges of a graph based on the Euclidean distance between the points.
virtual float ComputeWeight(vtkGraph *const graph, const vtkEdgeType &edge) const =0
Base class for graph data types.
Definition: vtkGraph.h:288
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSGENERAL_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)