Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ogdf::SpringEmbedderGridVariant::ForceModelBase Class Referenceabstract

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

+ Inheritance diagram for ogdf::SpringEmbedderGridVariant::ForceModelBase:

Public Member Functions

 ForceModelBase (const Array< NodeInfo > &vInfo, const Array< int > &adjLists, const Array2D< ListPure< int >> &gridCell, double idealEdgeLength)
 
virtual ~ForceModelBase ()
 
virtual DPoint computeDisplacement (int j, double boxLength) const =0
 
- Public Member Functions inherited from ogdf::spring_embedder::CommonForceModelBase< NodeInfo >
 CommonForceModelBase (const Array< NodeInfo > &vInfo, const Array< int > &adjLists, double idealEdgeLength)
 
double eps () const
 

Protected Member Functions

DPoint computeMixedForcesDisplacement (int j, int boxLength, std::function< DPoint(double, const DPoint &)> attractiveChange, std::function< double()> attractiveFinal) const
 
DPoint computeRepulsiveForce (int j, double boxLength, int idealExponent, int normExponent=1) const
 
- Protected Member Functions inherited from ogdf::spring_embedder::CommonForceModelBase< NodeInfo >
DPoint computeFruchtermanReingoldAttractiveForce (int j, int idealExponent) const
 
double normByIdealEdgeLength (double norm) const
 

Protected Attributes

const Array2D< ListPure< int > > & m_gridCell
 
- Protected Attributes inherited from ogdf::spring_embedder::CommonForceModelBase< NodeInfo >
const Array< int > & m_adjLists
 
double m_idealEdgeLength
 
const Array< NodeInfo > & m_vInfo
 

Detailed Description

Definition at line 47 of file SEGV_ForceModel.h.

Constructor & Destructor Documentation

◆ ForceModelBase()

ogdf::SpringEmbedderGridVariant::ForceModelBase::ForceModelBase ( const Array< NodeInfo > &  vInfo,
const Array< int > &  adjLists,
const Array2D< ListPure< int >> &  gridCell,
double  idealEdgeLength 
)
inline

Definition at line 50 of file SEGV_ForceModel.h.

◆ ~ForceModelBase()

virtual ogdf::SpringEmbedderGridVariant::ForceModelBase::~ForceModelBase ( )
inlinevirtual

Definition at line 55 of file SEGV_ForceModel.h.

Member Function Documentation

◆ computeDisplacement()

◆ computeMixedForcesDisplacement()

DPoint ogdf::SpringEmbedderGridVariant::ForceModelBase::computeMixedForcesDisplacement ( int  j,
int  boxLength,
std::function< DPoint(double, const DPoint &)>  attractiveChange,
std::function< double()>  attractiveFinal 
) const
protected

◆ computeRepulsiveForce()

DPoint ogdf::SpringEmbedderGridVariant::ForceModelBase::computeRepulsiveForce ( int  j,
double  boxLength,
int  idealExponent,
int  normExponent = 1 
) const
protected

Member Data Documentation

◆ m_gridCell

const Array2D<ListPure<int> >& ogdf::SpringEmbedderGridVariant::ForceModelBase::m_gridCell
protected

Definition at line 60 of file SEGV_ForceModel.h.


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