Open
Graph Drawing
Framework

 v.2010.10
 

Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

ogdf::NodePairEnergy Class Reference

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

Inheritance diagram for ogdf::NodePairEnergy:
ogdf::EnergyFunction ogdf::Attraction ogdf::Overlap ogdf::Repulsion

List of all members.

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 IntersectionRectangleshape (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< IntersectionRectanglem_shape
List< nodem_nonIsolated
const AdjacencyOracle m_adjacentOracle

Detailed Description

Definition at line 70 of file NodePairEnergy.h.


Constructor & Destructor Documentation

ogdf::NodePairEnergy::NodePairEnergy ( const String  energyname,
GraphAttributes AG 
)
virtual ogdf::NodePairEnergy::~NodePairEnergy (  )  [inline, virtual]

Definition at line 74 of file NodePairEnergy.h.


Member Function Documentation

bool ogdf::NodePairEnergy::adjacent ( const node  v,
const node  w 
) const [inline, protected]

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]
void ogdf::NodePairEnergy::computeEnergy (  )  [virtual]

computes energy for the layout at the beginning of the optimization process

Implements ogdf::EnergyFunction.

double ogdf::NodePairEnergy::computePairEnergy ( const node  v,
const node  w 
) const [private]
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.


Member Data Documentation

Definition at line 99 of file NodePairEnergy.h.

Definition at line 94 of file NodePairEnergy.h.

Definition at line 92 of file NodePairEnergy.h.

Definition at line 98 of file NodePairEnergy.h.

Definition at line 93 of file NodePairEnergy.h.


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