Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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 
39 namespace ogdf {
40 class GridLayout;
41 class PlanRep;
42 template<class E>
43 class List;
44 
60 public:
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 
79 protected:
87  virtual void doCall(const PlanRep& PG, GridLayout& gl, const List<node>& L) = 0;
88 
89 private:
91 
93 };
94 
96 
101 protected:
103  virtual void doCall(const PlanRep&, GridLayout&, const List<node>&) override { }
104 };
105 
106 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
ogdf::MixedModelCrossingsBeautifierModule::~MixedModelCrossingsBeautifierModule
virtual ~MixedModelCrossingsBeautifierModule()
Definition: MixedModelCrossingsBeautifierModule.h:65
ogdf::MixedModelCrossingsBeautifierModule::numberOfCrossings
int numberOfCrossings() const
Returns the number of processed crossings.
Definition: MixedModelCrossingsBeautifierModule.h:76
Graph.h
Includes declaration of graph class.
ogdf::PlanRep
Planarized representations (of a connected component) of a graph.
Definition: PlanRep.h:69
ogdf::MMDummyCrossingsBeautifier::doCall
virtual void doCall(const PlanRep &, GridLayout &, const List< node > &) override
Dummy implementation.
Definition: MixedModelCrossingsBeautifierModule.h:103
ogdf::MixedModelCrossingsBeautifierModule::m_nCrossings
int m_nCrossings
the number of processed crossings.
Definition: MixedModelCrossingsBeautifierModule.h:90
OGDF_MALLOC_NEW_DELETE
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:92
ogdf::MixedModelCrossingsBeautifierModule::MixedModelCrossingsBeautifierModule
MixedModelCrossingsBeautifierModule()
Initializes the Mixed-Model crossings beautifier module.
Definition: MixedModelCrossingsBeautifierModule.h:62
ogdf::List
Doubly linked lists (maintaining the length of the list).
Definition: DfsMakeBiconnected.h:40
basic.h
Basic declarations, included by all source files.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ogdf::MixedModelCrossingsBeautifierModule
The base class for Mixed-Model crossings beautifier algorithms.
Definition: MixedModelCrossingsBeautifierModule.h:59
ogdf::MMDummyCrossingsBeautifier
Dummy implementation of Mixed-Model crossings beautifier.
Definition: MixedModelCrossingsBeautifierModule.h:100
ogdf::GridLayout
Representation of a graph's grid layout.
Definition: GridLayout.h:47
memory.h
Declaration of memory manager for allocating small pieces of memory.