Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

MixedModelCrossingsBeautifierModule.h
Go to the documentation of this file.
1 
33 #pragma once
34 
35 #include <ogdf/planarity/PlanRep.h>
36 #include <ogdf/basic/GridLayout.h>
37 
38 
39 namespace ogdf {
40 
56 public:
59 
60  // destruction
62 
63 
64  /*
65  * \brief Calls the Mixed-Model crossings beautifier module for graph \p PG and grid layout \p gl.
66  *
67  * @param PG is the input graph.
68  * @param gl is the grid layout of \p PG.
69  */
70  void call(const PlanRep &PG, GridLayout &gl);
71 
73  int numberOfCrossings() const {
74  return m_nCrossings;
75  }
76 
77 
78 protected:
86  virtual void doCall(const PlanRep &PG, GridLayout &gl, const List<node> &L) = 0;
87 
88 private:
90 
92 };
93 
94 
96 
101 {
102 protected:
104  virtual void doCall(const PlanRep &, GridLayout &, const List<node> &) override { }
105 };
106 
107 
108 } // end namespace ogdf
Representation of a graph&#39;s grid layout.
Definition: GridLayout.h:46
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Definition: memory.h:91
Declaration of a base class for planar representations of graphs and cluster graphs.
The base class for Mixed-Model crossings beautifier algorithms.
Declaration of class GridLayout.
Doubly linked lists (maintaining the length of the list).
Definition: List.h:39
int numberOfCrossings() const
Returns the number of processed crossings.
MixedModelCrossingsBeautifierModule()
Initializes the Mixed-Model crossings beautifier module.
Dummy implementation of Mixed-Model crossings beautifier.
The namespace for all OGDF objects.
virtual void doCall(const PlanRep &, GridLayout &, const List< node > &) override
Dummy implementation.
Planarized representations (of a connected component) of a graph.
Definition: PlanRep.h:60