Open
Graph Drawing
Framework

 v.2012.05
 

Repulsion.h
Go to the documentation of this file.
00001 /*
00002  * $Revision: 2299 $
00003  * 
00004  * last checkin:
00005  *   $Author: gutwenger $ 
00006  *   $Date: 2012-05-07 15:57:08 +0200 (Mon, 07 May 2012) $ 
00007  ***************************************************************/
00008  
00047 #ifdef _MSC_VER
00048 #pragma once
00049 #endif
00050 
00051 #ifndef OGDF_REPULSION_H
00052 #define OGDF_REPULSION_H
00053 
00054 
00055 #include <ogdf/internal/energybased/NodePairEnergy.h>
00056 
00057 
00058 namespace ogdf {
00059 
00060 class Repulsion: public NodePairEnergy {
00061 public:
00062     //Initializes data structures to speed up later computations
00063     Repulsion(GraphAttributes &AG);
00064 private:
00065     //computes for two vertices an the given positions the repulsive energy
00066     double computeCoordEnergy(node, node, const DPoint&, const DPoint&) const;
00067 };
00068 
00069 
00070 }// namespace ogdf
00071 
00072 #endif