Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ogdf::spring_embedder::WorkerBase< Master, NodeInfo > Class Template Referenceabstract

Base class for ogdf::SpringEmbedderGridVariant::Worker. More...

#include <ogdf/energybased/spring_embedder/WorkerBase.h>

Public Member Functions

 WorkerBase (unsigned int id, Master &master, int vStartIndex, int vStopIndex, node vStart, node vStop)
 
virtual ~WorkerBase ()=default
 
virtual void operator() ()=0
 

Protected Member Functions

void finalScaling (Array< NodeInfo > &vInfo, const Array< int > &adjLists)
 
void scaling (Array< NodeInfo > &vInfo, const Array< int > &adjLists)
 
double sumUpLengths (Array< NodeInfo > &vInfo, const Array< int > &adjLists)
 

Protected Attributes

double m_hsum
 
unsigned int m_id
 
Master & m_master
 
double m_maxForce
 
double m_sumForces
 
double m_sumLengths
 
node m_vStart
 
int m_vStartIndex
 
node m_vStop
 
int m_vStopIndex
 
double m_wsum
 
double m_xmax
 
double m_xmin
 
double m_ymax
 
double m_ymin
 

Detailed Description

template<class Master, class NodeInfo>
class ogdf::spring_embedder::WorkerBase< Master, NodeInfo >

Base class for ogdf::SpringEmbedderGridVariant::Worker.

Definition at line 48 of file WorkerBase.h.

Constructor & Destructor Documentation

◆ WorkerBase()

template<class Master , class NodeInfo >
ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::WorkerBase ( unsigned int  id,
Master &  master,
int  vStartIndex,
int  vStopIndex,
node  vStart,
node  vStop 
)
inline

Definition at line 50 of file WorkerBase.h.

◆ ~WorkerBase()

template<class Master , class NodeInfo >
virtual ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::~WorkerBase ( )
virtualdefault

Member Function Documentation

◆ finalScaling()

template<class Master , class NodeInfo >
void ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::finalScaling ( Array< NodeInfo > &  vInfo,
const Array< int > &  adjLists 
)
inlineprotected

Definition at line 83 of file WorkerBase.h.

◆ operator()()

template<class Master , class NodeInfo >
virtual void ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::operator() ( )
pure virtual

◆ scaling()

template<class Master , class NodeInfo >
void ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::scaling ( Array< NodeInfo > &  vInfo,
const Array< int > &  adjLists 
)
inlineprotected

Definition at line 131 of file WorkerBase.h.

◆ sumUpLengths()

template<class Master , class NodeInfo >
double ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::sumUpLengths ( Array< NodeInfo > &  vInfo,
const Array< int > &  adjLists 
)
inlineprotected

Definition at line 154 of file WorkerBase.h.

Member Data Documentation

◆ m_hsum

template<class Master , class NodeInfo >
double ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::m_hsum
protected

Definition at line 73 of file WorkerBase.h.

◆ m_id

template<class Master , class NodeInfo >
unsigned int ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::m_id
protected

Definition at line 64 of file WorkerBase.h.

◆ m_master

template<class Master , class NodeInfo >
Master& ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::m_master
protected

Definition at line 65 of file WorkerBase.h.

◆ m_maxForce

template<class Master , class NodeInfo >
double ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::m_maxForce
protected

Definition at line 80 of file WorkerBase.h.

◆ m_sumForces

template<class Master , class NodeInfo >
double ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::m_sumForces
protected

Definition at line 79 of file WorkerBase.h.

◆ m_sumLengths

template<class Master , class NodeInfo >
double ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::m_sumLengths
protected

Definition at line 81 of file WorkerBase.h.

◆ m_vStart

template<class Master , class NodeInfo >
node ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::m_vStart
protected

Definition at line 69 of file WorkerBase.h.

◆ m_vStartIndex

template<class Master , class NodeInfo >
int ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::m_vStartIndex
protected

Definition at line 67 of file WorkerBase.h.

◆ m_vStop

template<class Master , class NodeInfo >
node ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::m_vStop
protected

Definition at line 70 of file WorkerBase.h.

◆ m_vStopIndex

template<class Master , class NodeInfo >
int ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::m_vStopIndex
protected

Definition at line 68 of file WorkerBase.h.

◆ m_wsum

template<class Master , class NodeInfo >
double ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::m_wsum
protected

Definition at line 72 of file WorkerBase.h.

◆ m_xmax

template<class Master , class NodeInfo >
double ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::m_xmax
protected

Definition at line 75 of file WorkerBase.h.

◆ m_xmin

template<class Master , class NodeInfo >
double ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::m_xmin
protected

Definition at line 74 of file WorkerBase.h.

◆ m_ymax

template<class Master , class NodeInfo >
double ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::m_ymax
protected

Definition at line 77 of file WorkerBase.h.

◆ m_ymin

template<class Master , class NodeInfo >
double ogdf::spring_embedder::WorkerBase< Master, NodeInfo >::m_ymin
protected

Definition at line 76 of file WorkerBase.h.


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