Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
MixedModelCrossingsBeautifierModule.h
Go to the documentation of this file.
1
33#pragma once
34
35#include <ogdf/basic/Graph.h>
36#include <ogdf/basic/basic.h>
37#include <ogdf/basic/memory.h>
38
39namespace ogdf {
40class GridLayout;
41class PlanRep;
42template<class E>
43class List;
44
60public:
63
64 // destruction
66
67 /*
68 * \brief Calls the Mixed-Model crossings beautifier module for graph \p PG and grid layout \p gl.
69 *
70 * @param PG is the input graph.
71 * @param gl is the grid layout of \p PG.
72 */
73 void call(const PlanRep& PG, GridLayout& gl);
74
76 int numberOfCrossings() const { return m_nCrossings; }
77
78
79protected:
87 virtual void doCall(const PlanRep& PG, GridLayout& gl, const List<node>& L) = 0;
88
89private:
91
93};
94
96
101protected:
103 virtual void doCall(const PlanRep&, GridLayout&, const List<node>&) override { }
104};
105
106}
Includes declaration of graph class.
Basic declarations, included by all source files.
Representation of a graph's grid layout.
Definition GridLayout.h:47
Doubly linked lists (maintaining the length of the list).
Definition List.h:1451
Dummy implementation of Mixed-Model crossings beautifier.
virtual void doCall(const PlanRep &, GridLayout &, const List< node > &) override
Dummy implementation.
The base class for Mixed-Model crossings beautifier algorithms.
void call(const PlanRep &PG, GridLayout &gl)
int numberOfCrossings() const
Returns the number of processed crossings.
MixedModelCrossingsBeautifierModule()
Initializes the Mixed-Model crossings beautifier module.
virtual void doCall(const PlanRep &PG, GridLayout &gl, const List< node > &L)=0
Implements the crossings beautifier module.
Planarized representations (of a connected component) of a graph.
Definition PlanRep.h:68
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition config.h:117
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition memory.h:92
Declaration of memory manager for allocating small pieces of memory.
The namespace for all OGDF objects.