Loading [MathJax]/extensions/tex2jax.js

Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
PlanarityGrid.h
Go to the documentation of this file.
1
36#pragma once
37
40
41namespace ogdf {
42namespace davidson_harel {
43
45public:
46 //initializes data structures to speed up later computations
49 // computes energy of initial layout and stores it in m_energy
50 void computeEnergy() override;
51
52private:
53 // computes energy of candidate
54 void compCandEnergy() override;
55 // changes internal data if candidate is taken
56 void internalCandidateTaken() override;
57#ifdef OGDF_DEBUG
58 virtual void printInternalData() const override;
59#endif
60 const GraphAttributes& m_layout; //The current layout
61 UniformGrid* m_currentGrid; //stores grid for current layout
62 UniformGrid* m_candidateGrid; //stores grid for candidate layout
63};
64
65}
66}
Declares class EnergyFunction...
Declaration of class UniformGrid.
Stores additional attributes of a graph (like layout information).
The interface for energy functions for the Davidson Harel graph drawing method.
PlanarityGrid(GraphAttributes &AG)
void internalCandidateTaken() override
changes the data of a specific energy function if the candidate was taken
void compCandEnergy() override
computes the energy if m_testNode changes position to m_testX and m_testY, sets the value of m_candid...
const GraphAttributes & m_layout
void computeEnergy() override
computes energy for the layout at the beginning of the optimization process
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.