Open
Graph Drawing
Framework
v.2012.07
Overview
Class Hierarchy
Class Index
Class List
Members
Namespaces
Source Files
Repulsion.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
48
#ifdef _MSC_VER
49
#pragma once
50
#endif
51
52
#ifndef OGDF_REPULSION_H
53
#define OGDF_REPULSION_H
54
55
56
#include <
ogdf/internal/energybased/NodePairEnergy.h
>
57
58
59
namespace
ogdf {
60
61
class
Repulsion
:
public
NodePairEnergy
{
62
public
:
63
//Initializes data structures to speed up later computations
64
Repulsion
(
GraphAttributes
&AG);
65
private
:
66
//computes for two vertices an the given positions the repulsive energy
67
double
computeCoordEnergy
(
node
,
node
,
const
DPoint
&,
const
DPoint
&)
const
;
68
};
69
70
71
}
// namespace ogdf
72
73
#endif
ogdf
internal
energybased
Repulsion.h
© 1999-2012 by
TU Dortmund
,
University of Jena
,
University of Cologne
,
University of Sydney
,
oreas GmbH