Don't import ogdf namespace
[TortoiseGit.git] / ext / OGDF / ogdf / internal / energybased / Overlap.h
blobb05d83415e340870182f1961c88abdbb7aadca90
1 /*
2 * $Revision: 2523 $
4 * last checkin:
5 * $Author: gutwenger $
6 * $Date: 2012-07-02 20:59:27 +0200 (Mon, 02 Jul 2012) $
7 ***************************************************************/
9 /** \file
10 * \brief Declaration of class Overlap which implements an energy
11 * function that gives a penalty for each pair of overlapping
12 * vertices.
14 * The penalty for each pair is the area of the overlap. It only
15 * works if the shape of the vertices is a rectangle. It uses the
16 * class IntersectionRectangle.
18 * \author Rene Weiskircher
20 * \par License:
21 * This file is part of the Open Graph Drawing Framework (OGDF).
23 * \par
24 * Copyright (C)<br>
25 * See README.txt in the root directory of the OGDF installation for details.
27 * \par
28 * This program is free software; you can redistribute it and/or
29 * modify it under the terms of the GNU General Public License
30 * Version 2 or 3 as published by the Free Software Foundation;
31 * see the file LICENSE.txt included in the packaging of this file
32 * for details.
34 * \par
35 * This program is distributed in the hope that it will be useful,
36 * but WITHOUT ANY WARRANTY; without even the implied warranty of
37 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38 * GNU General Public License for more details.
40 * \par
41 * You should have received a copy of the GNU General Public
42 * License along with this program; if not, write to the Free
43 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
44 * Boston, MA 02110-1301, USA.
46 * \see http://www.gnu.org/copyleft/gpl.html
47 ***************************************************************/
50 #ifdef _MSC_VER
51 #pragma once
52 #endif
54 #ifndef OGDF_OVERLAP_H
55 #define OGDF_OVERLAP_H
58 #include <ogdf/internal/energybased/NodePairEnergy.h>
61 namespace ogdf {
64 class Overlap: public NodePairEnergy {
65 public:
66 //Initializes private data structures
67 Overlap(GraphAttributes &AG);
68 ~Overlap() { }
69 private:
70 //computes for two vertices at the given position the overlap energy
71 double computeCoordEnergy(node,node, const DPoint&, const DPoint &) const;
75 }// namespace ogdf
76 #endif