The interface for energy functions for the Davidson Harel graph drawing method.
More...
#include <ogdf/energybased/davidson_harel/EnergyFunction.h>
The interface for energy functions for the Davidson Harel graph drawing method.
It is used in the class DavidsonHarel.
Definition at line 52 of file EnergyFunction.h.
◆ EnergyFunction() [1/2]
ogdf::davidson_harel::EnergyFunction::EnergyFunction |
( |
const string & |
funcname, |
|
|
GraphAttributes & |
AG |
|
) |
| |
Initializes data dtructures to speed up later computations.
◆ ~EnergyFunction()
virtual ogdf::davidson_harel::EnergyFunction::~EnergyFunction |
( |
| ) |
|
|
inlinevirtual |
◆ EnergyFunction() [2/2]
ogdf::davidson_harel::EnergyFunction::EnergyFunction |
( |
const EnergyFunction & |
e | ) |
|
|
inlineprivate |
the copy constructor is fake and can not be used.
Definition at line 107 of file EnergyFunction.h.
◆ candidateTaken()
void ogdf::davidson_harel::EnergyFunction::candidateTaken |
( |
| ) |
|
Changes m_currentX and m_currentY by setting the position of m_testNode to m_testX and m_testY. Sets m_energy to m_candidateEnergy. Computes the energy of the layout stored in AG.
◆ compCandEnergy()
virtual void ogdf::davidson_harel::EnergyFunction::compCandEnergy |
( |
| ) |
|
|
protectedpure virtual |
◆ computeCandidateEnergy()
double ogdf::davidson_harel::EnergyFunction::computeCandidateEnergy |
( |
const node |
v, |
|
|
const DPoint & |
newPos |
|
) |
| |
sets m_testNode, m_testX and m_testY and computes the energy for the new configuration (vertex v moves to newPos)
◆ computeEnergy()
virtual void ogdf::davidson_harel::EnergyFunction::computeEnergy |
( |
| ) |
|
|
pure virtual |
◆ currentPos()
DPoint ogdf::davidson_harel::EnergyFunction::currentPos |
( |
const node |
v | ) |
const |
|
inlineprotected |
◆ energy()
double ogdf::davidson_harel::EnergyFunction::energy |
( |
| ) |
const |
|
inline |
◆ getName()
string ogdf::davidson_harel::EnergyFunction::getName |
( |
| ) |
const |
|
inline |
◆ internalCandidateTaken()
virtual void ogdf::davidson_harel::EnergyFunction::internalCandidateTaken |
( |
| ) |
|
|
protectedpure virtual |
◆ operator=()
the assignment operator is fake and can not be used.
◆ printInternalData()
virtual void ogdf::davidson_harel::EnergyFunction::printInternalData |
( |
| ) |
const |
|
protectedpure virtual |
◆ printStatus()
void ogdf::davidson_harel::EnergyFunction::printStatus |
( |
| ) |
const |
prints status information for debugging
◆ testNode()
node ogdf::davidson_harel::EnergyFunction::testNode |
( |
| ) |
const |
|
inlineprotected |
returns the vertex that is under consideration in the current step
Definition at line 93 of file EnergyFunction.h.
◆ testPos()
DPoint ogdf::davidson_harel::EnergyFunction::testPos |
( |
| ) |
|
|
inlineprotected |
returns candidate position for the node to be moved
Definition at line 87 of file EnergyFunction.h.
◆ m_AG
This stores the graph with its graphical attributes and the current positions for the vertices.
Definition at line 112 of file EnergyFunction.h.
◆ m_candidateEnergy
double ogdf::davidson_harel::EnergyFunction::m_candidateEnergy |
|
protected |
the energy of the layout if the candidate layout is chosen
Definition at line 83 of file EnergyFunction.h.
◆ m_energy
double ogdf::davidson_harel::EnergyFunction::m_energy |
|
protected |
◆ m_G
const Graph& ogdf::davidson_harel::EnergyFunction::m_G |
|
protected |
◆ m_name
const string ogdf::davidson_harel::EnergyFunction::m_name |
|
protected |
◆ m_testNode
node ogdf::davidson_harel::EnergyFunction::m_testNode |
|
private |
The node that changed position in the candidate.
Definition at line 113 of file EnergyFunction.h.
◆ m_testPos
DPoint ogdf::davidson_harel::EnergyFunction::m_testPos |
|
private |
The documentation for this class was generated from the following file: