Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

ogdf::MixedModelCrossingsBeautifierModule Class Referenceabstract

The base class for Mixed-Model crossings beautifier algorithms. More...

#include <ogdf/planarlayout/MixedModelCrossingsBeautifierModule.h>

+ Inheritance diagram for ogdf::MixedModelCrossingsBeautifierModule:

Public Member Functions

 MixedModelCrossingsBeautifierModule ()
 Initializes the Mixed-Model crossings beautifier module. More...
 
virtual ~MixedModelCrossingsBeautifierModule ()
 
void call (const PlanRep &PG, GridLayout &gl)
 
int numberOfCrossings () const
 Returns the number of processed crossings. More...
 

Protected Member Functions

virtual void doCall (const PlanRep &PG, GridLayout &gl, const List< node > &L)=0
 Implements the crossings beautifier module. More...
 

Private Attributes

int m_nCrossings
 the number of processed crossings. More...
 

Detailed Description

The base class for Mixed-Model crossings beautifier algorithms.

The class MixedModelCrossingsBeautifierModule is the base class for mixed model bend crossing modules. Such a module transforms an input graph G into an output graph G' such that crossings of edges don't look weird.

Implementation of Mixed-Model Crossings Beautifier Algorithms

An implementation of a Mixed-Model crossings beautifier module must override the protected method doCall().

Definition at line 55 of file MixedModelCrossingsBeautifierModule.h.

Constructor & Destructor Documentation

◆ MixedModelCrossingsBeautifierModule()

ogdf::MixedModelCrossingsBeautifierModule::MixedModelCrossingsBeautifierModule ( )
inline

Initializes the Mixed-Model crossings beautifier module.

Definition at line 58 of file MixedModelCrossingsBeautifierModule.h.

◆ ~MixedModelCrossingsBeautifierModule()

virtual ogdf::MixedModelCrossingsBeautifierModule::~MixedModelCrossingsBeautifierModule ( )
inlinevirtual

Definition at line 61 of file MixedModelCrossingsBeautifierModule.h.

Member Function Documentation

◆ call()

void ogdf::MixedModelCrossingsBeautifierModule::call ( const PlanRep PG,
GridLayout gl 
)

◆ doCall()

virtual void ogdf::MixedModelCrossingsBeautifierModule::doCall ( const PlanRep PG,
GridLayout gl,
const List< node > &  L 
)
protectedpure virtual

Implements the crossings beautifier module.

Parameters
PGis the input graph.
glis the grid layout of PG.
Lis the list of crossing nodes.

Implemented in ogdf::MMCBDoubleGrid, ogdf::MMCBLocalStretch, and ogdf::MMDummyCrossingsBeautifier.

◆ numberOfCrossings()

int ogdf::MixedModelCrossingsBeautifierModule::numberOfCrossings ( ) const
inline

Returns the number of processed crossings.

Definition at line 73 of file MixedModelCrossingsBeautifierModule.h.

Member Data Documentation

◆ m_nCrossings

int ogdf::MixedModelCrossingsBeautifierModule::m_nCrossings
private

the number of processed crossings.

Definition at line 89 of file MixedModelCrossingsBeautifierModule.h.


The documentation for this class was generated from the following file: