Open
Graph Drawing
Framework

 v.2012.07
 

ogdf::Repulsion Class Reference

#include <ogdf/internal/energybased/Repulsion.h>

+ Inheritance diagram for ogdf::Repulsion:

List of all members.

Public Member Functions

 Repulsion (GraphAttributes &AG)
- Public Member Functions inherited from ogdf::NodePairEnergy
 NodePairEnergy (const String energyname, GraphAttributes &AG)
virtual ~NodePairEnergy ()
void computeEnergy ()
 computes energy for the layout at the beginning of the optimization process
- Public Member Functions inherited from ogdf::EnergyFunction
 EnergyFunction (const String &funcname, GraphAttributes &AG)
 Initializes data dtructures to speed up later computations.
virtual ~EnergyFunction ()
void 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.
double 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)
double energy () const
String getName () const
 prints the name of the energy function

Private Member Functions

double computeCoordEnergy (node, node, const DPoint &, const DPoint &) const

Additional Inherited Members

- Protected Member Functions inherited from ogdf::NodePairEnergy
bool adjacent (const node v, const node w) const
int nodeNum (node v) const
const IntersectionRectangleshape (const node v) const
- Protected Member Functions inherited from ogdf::EnergyFunction
DPoint currentPos (const node v) const
 returns the current position of vertex v
node testNode () const
 returns the vertex that is under consideration in the current step
DPoint testPos ()
 returns candidate position for the node to be moved

Detailed Description

Definition at line 61 of file Repulsion.h.


Constructor & Destructor Documentation

ogdf::Repulsion::Repulsion ( GraphAttributes AG)

Member Function Documentation

double ogdf::Repulsion::computeCoordEnergy ( node  ,
node  ,
const DPoint ,
const DPoint  
) const
privatevirtual

Implements ogdf::NodePairEnergy.


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