Open
Graph Drawing
Framework

 v.2012.07
 

Attraction.h
Go to the documentation of this file.
1 /*
2  * $Revision: 2523 $
3  *
4  * last checkin:
5  * $Author: gutwenger $
6  * $Date: 2012-07-02 20:59:27 +0200 (Mon, 02 Jul 2012) $
7  ***************************************************************/
8 
44 #ifdef _MSC_VER
45 #pragma once
46 #endif
47 
48 #ifndef OGDF_ATTRACTION_H
49 #define OGDF_ATTRACTION_H
50 
51 
53 
54 namespace ogdf {
55 
56 
58 
66 class Attraction: public NodePairEnergy {
67 public:
68  //Initializes data structures to speed up later computations
74  void reinitializeEdgeLength(double multi);
75 #ifdef OGDF_DEBUG
76  void printInternalData() const;
77 #endif
78 private:
80  static const double MULTIPLIER;
84  double computeCoordEnergy(node,node, const DPoint&, const DPoint &) const;
85 };
86 
87 }// namespace ogdf
88 
89 #endif