Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
PlanarityGrid.h
Go to the documentation of this file.
1
36#pragma once
37
38#include <ogdf/basic/basic.h>
40
41namespace ogdf::davidson_harel {
42class UniformGrid;
43} // namespace ogdf::davidson_harel
44
45namespace ogdf {
46class GraphAttributes;
47
48namespace davidson_harel {
49
51public:
52 //initializes data structures to speed up later computations
55 // computes energy of initial layout and stores it in m_energy
56 void computeEnergy() override;
57
58private:
59 // computes energy of candidate
60 void compCandEnergy() override;
61 // changes internal data if candidate is taken
62 void internalCandidateTaken() override;
63#ifdef OGDF_DEBUG
64 virtual void printInternalData() const override;
65#endif
66 const GraphAttributes& m_layout; //The current layout
67 UniformGrid* m_currentGrid; //stores grid for current layout
68 UniformGrid* m_candidateGrid; //stores grid for candidate layout
69};
70
71}
72}
Declares class EnergyFunction...
Basic declarations, included by all source files.
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...
virtual void printInternalData() const override
const GraphAttributes & m_layout
void computeEnergy() override
computes energy for the layout at the beginning of the optimization process
The namespace for all OGDF objects.