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/GridLayout.h>
36 #include <ogdf/planarity/PlanRep.h>
37 
38 namespace ogdf {
39 
55 public:
58 
59  // destruction
61 
62  /*
63  * \brief Calls the Mixed-Model crossings beautifier module for graph \p PG and grid layout \p gl.
64  *
65  * @param PG is the input graph.
66  * @param gl is the grid layout of \p PG.
67  */
68  void call(const PlanRep& PG, GridLayout& gl);
69 
71  int numberOfCrossings() const { return m_nCrossings; }
72 
73 
74 protected:
82  virtual void doCall(const PlanRep& PG, GridLayout& gl, const List<node>& L) = 0;
83 
84 private:
86 
88 };
89 
91 
96 protected:
98  virtual void doCall(const PlanRep&, GridLayout&, const List<node>&) override { }
99 };
100 
101 }
ogdf
The namespace for all OGDF objects.
Definition: AugmentationModule.h:36
ogdf::MixedModelCrossingsBeautifierModule::~MixedModelCrossingsBeautifierModule
virtual ~MixedModelCrossingsBeautifierModule()
Definition: MixedModelCrossingsBeautifierModule.h:60
ogdf::MixedModelCrossingsBeautifierModule::numberOfCrossings
int numberOfCrossings() const
Returns the number of processed crossings.
Definition: MixedModelCrossingsBeautifierModule.h:71
ogdf::PlanRep
Planarized representations (of a connected component) of a graph.
Definition: PlanRep.h:57
ogdf::MMDummyCrossingsBeautifier::doCall
virtual void doCall(const PlanRep &, GridLayout &, const List< node > &) override
Dummy implementation.
Definition: MixedModelCrossingsBeautifierModule.h:98
PlanRep.h
Declaration of a base class for planar representations of graphs and cluster graphs.
ogdf::MixedModelCrossingsBeautifierModule::m_nCrossings
int m_nCrossings
the number of processed crossings.
Definition: MixedModelCrossingsBeautifierModule.h:85
OGDF_MALLOC_NEW_DELETE
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:91
ogdf::MixedModelCrossingsBeautifierModule::MixedModelCrossingsBeautifierModule
MixedModelCrossingsBeautifierModule()
Initializes the Mixed-Model crossings beautifier module.
Definition: MixedModelCrossingsBeautifierModule.h:57
ogdf::List
Doubly linked lists (maintaining the length of the list).
Definition: List.h:42
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:54
ogdf::MMDummyCrossingsBeautifier
Dummy implementation of Mixed-Model crossings beautifier.
Definition: MixedModelCrossingsBeautifierModule.h:95
ogdf::GridLayout
Representation of a graph's grid layout.
Definition: GridLayout.h:46
GridLayout.h
Declaration of class GridLayout.