6 * $Date: 2012-07-04 21:16:17 +0200 (Mi, 04. Jul 2012) $
7 ***************************************************************/
10 * \brief Declaration of interface for embedder for
13 * \author Thorsten Kerkhof (thorsten.kerkhof@udo.edu)
16 * This file is part of the Open Graph Drawing Framework (OGDF).
20 * See README.txt in the root directory of the OGDF installation for details.
23 * This program is free software; you can redistribute it and/or
24 * modify it under the terms of the GNU General Public License
25 * Version 2 or 3 as published by the Free Software Foundation;
26 * see the file LICENSE.txt included in the packaging of this file
30 * This program is distributed in the hope that it will be useful,
31 * but WITHOUT ANY WARRANTY; without even the implied warranty of
32 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 * GNU General Public License for more details.
36 * You should have received a copy of the GNU General Public
37 * License along with this program; if not, write to the Free
38 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
39 * Boston, MA 02110-1301, USA.
41 * \see http://www.gnu.org/copyleft/gpl.html
42 ***************************************************************/
48 #ifndef OGDF_EMBEDDER_MODULE_H
49 #define OGDF_EMBEDDER_MODULE_H
51 #include <ogdf/planarity/PlanRep.h>
52 #include <ogdf/basic/Module.h>
53 #include <ogdf/basic/Timeouter.h>
58 * \brief Base class for embedder algorithms.
60 * An embedder algorithm computes a planar embedding of a planar
63 * \see PlanarizationLayout, PlanarizationGridLayout
65 class OGDF_EXPORT EmbedderModule
: public Module
, public Timeouter
{
67 //! Initializes an embedder module.
70 virtual ~EmbedderModule() { }
73 * \brief Calls the embedder algorithm for graph \a G.
74 * \param G is the graph that shall be embedded.
75 * \param adjExternal is set (by the algorithm) to an adjacency entry on the
76 * external face of \a G.
78 virtual void call(Graph
& G
, adjEntry
& adjExternal
) = 0;
80 //! Calls the embedder algorithm for planarized representation \a PG.
81 void operator()(Graph
& G
, adjEntry
& adjExternal
) { call(G
, adjExternal
); }
83 OGDF_MALLOC_NEW_DELETE
86 } // end namespace ogdf