#include <ogdf/internal/energybased/NodePairEnergy.h>
Public Member Functions | |
| NodePairEnergy (const String energyname, GraphAttributes &AG) | |
| virtual | ~NodePairEnergy () |
| void | computeEnergy () |
| computes energy for the layout at the beginning of the optimization process | |
Protected Member Functions | |
| virtual double | computeCoordEnergy (node, node, const DPoint &, const DPoint &) const =0 |
| int | nodeNum (node v) const |
| bool | adjacent (const node v, const node w) const |
| const IntersectionRectangle & | shape (const node v) const |
Private Member Functions | |
| double | computePairEnergy (const node v, const node w) const |
| void | compCandEnergy () |
| computes the energy if m_testNode changes position to m_testX and m_testY, sets the value of m_candidateEnergy. | |
| void | internalCandidateTaken () |
| changes the data of a specific energy function if the candidate was taken | |
Private Attributes | |
| NodeArray< int > * | m_nodeNums |
| Array2D< double > * | m_pairEnergy |
| NodeArray< double > | m_candPairEnergy |
| NodeArray< IntersectionRectangle > | m_shape |
| List< node > | m_nonIsolated |
| const AdjacencyOracle | m_adjacentOracle |
Definition at line 70 of file NodePairEnergy.h.
| ogdf::NodePairEnergy::NodePairEnergy | ( | const String | energyname, | |
| GraphAttributes & | AG | |||
| ) |
| virtual ogdf::NodePairEnergy::~NodePairEnergy | ( | ) | [inline, virtual] |
Definition at line 74 of file NodePairEnergy.h.
Definition at line 83 of file NodePairEnergy.h.
| void ogdf::NodePairEnergy::compCandEnergy | ( | ) | [private, virtual] |
computes the energy if m_testNode changes position to m_testX and m_testY, sets the value of m_candidateEnergy.
Implements ogdf::EnergyFunction.
| virtual double ogdf::NodePairEnergy::computeCoordEnergy | ( | node | , | |
| node | , | |||
| const DPoint & | , | |||
| const DPoint & | ||||
| ) | const [protected, pure virtual] |
Implemented in ogdf::Attraction, ogdf::Overlap, and ogdf::Repulsion.
| void ogdf::NodePairEnergy::computeEnergy | ( | ) | [virtual] |
computes energy for the layout at the beginning of the optimization process
Implements ogdf::EnergyFunction.
| void ogdf::NodePairEnergy::internalCandidateTaken | ( | ) | [private, virtual] |
changes the data of a specific energy function if the candidate was taken
Implements ogdf::EnergyFunction.
| int ogdf::NodePairEnergy::nodeNum | ( | node | v | ) | const [inline, protected] |
Definition at line 81 of file NodePairEnergy.h.
| const IntersectionRectangle& ogdf::NodePairEnergy::shape | ( | const node | v | ) | const [inline, protected] |
Definition at line 85 of file NodePairEnergy.h.
const AdjacencyOracle ogdf::NodePairEnergy::m_adjacentOracle [private] |
Definition at line 99 of file NodePairEnergy.h.
NodeArray<double> ogdf::NodePairEnergy::m_candPairEnergy [private] |
Definition at line 94 of file NodePairEnergy.h.
NodeArray<int>* ogdf::NodePairEnergy::m_nodeNums [private] |
Definition at line 92 of file NodePairEnergy.h.
List<node> ogdf::NodePairEnergy::m_nonIsolated [private] |
Definition at line 98 of file NodePairEnergy.h.
Array2D<double>* ogdf::NodePairEnergy::m_pairEnergy [private] |
Definition at line 93 of file NodePairEnergy.h.
Definition at line 96 of file NodePairEnergy.h.