Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

ogdf::TutteLayout Class Reference

Tutte's method for graph layout. More...

#include <ogdf/energybased/TutteLayout.h>

+ Inheritance diagram for ogdf::TutteLayout:

Public Member Functions

 TutteLayout ()
 
 ~TutteLayout ()
 
DRect bbox () const
 
void bbox (const DRect &bb)
 
virtual void call (GraphAttributes &AG) override
 Computes a layout of graph GA. More...
 
void call (GraphAttributes &AG, const List< node > &givenNodes)
 
- Public Member Functions inherited from ogdf::LayoutModule
 LayoutModule ()
 Initializes a layout module. More...
 
virtual ~LayoutModule ()
 
void operator() (GraphAttributes &GA)
 Computes a layout of graph GA. More...
 

Private Member Functions

bool doCall (GraphAttributes &AG, const List< node > &fixedNodes, List< DPoint > &fixedPositions)
 the method is overloaded for a given set of nodes. More...
 
void setFixedNodes (const Graph &G, List< node > &nodes, List< DPoint > &pos, double radius=1.0)
 
void setFixedNodes (const Graph &G, List< node > &nodes, const List< node > &givenNodes, List< DPoint > &pos, double radius=1.0)
 sets the positions of the nodes in a largest face of $G$ in the form of a regular $k$-gon with the prescribed radius. More...
 

Static Private Member Functions

static bool solveLP (int cols, const CoinPackedMatrix &Matrix, const Array< double > &rightHandSide, Array< double > &x)
 

Private Attributes

DRect m_bbox
 

Detailed Description

Tutte's method for graph layout.

Definition at line 57 of file TutteLayout.h.

Constructor & Destructor Documentation

◆ TutteLayout()

ogdf::TutteLayout::TutteLayout ( )

◆ ~TutteLayout()

ogdf::TutteLayout::~TutteLayout ( )
inline

Definition at line 62 of file TutteLayout.h.

Member Function Documentation

◆ bbox() [1/2]

DRect ogdf::TutteLayout::bbox ( ) const
inline

Definition at line 64 of file TutteLayout.h.

◆ bbox() [2/2]

void ogdf::TutteLayout::bbox ( const DRect &  bb)
inline

Definition at line 68 of file TutteLayout.h.

◆ call() [1/2]

virtual void ogdf::TutteLayout::call ( GraphAttributes &  GA)
overridevirtual

Computes a layout of graph GA.

This method is the actual algorithm call and must be implemented by derived classes.

Parameters
GAis the input graph and will also be assigned the layout information.

Implements ogdf::LayoutModule.

◆ call() [2/2]

void ogdf::TutteLayout::call ( GraphAttributes &  AG,
const List< node > &  givenNodes 
)

◆ doCall()

bool ogdf::TutteLayout::doCall ( GraphAttributes &  AG,
const List< node > &  fixedNodes,
List< DPoint > &  fixedPositions 
)
private

the method is overloaded for a given set of nodes.

◆ setFixedNodes() [1/2]

void ogdf::TutteLayout::setFixedNodes ( const Graph &  G,
List< node > &  nodes,
List< DPoint > &  pos,
double  radius = 1.0 
)
private

◆ setFixedNodes() [2/2]

void ogdf::TutteLayout::setFixedNodes ( const Graph &  G,
List< node > &  nodes,
const List< node > &  givenNodes,
List< DPoint > &  pos,
double  radius = 1.0 
)
private

sets the positions of the nodes in a largest face of $G$ in the form of a regular $k$-gon with the prescribed radius.

The corresponding nodes and their positions are stored in nodes and pos, respectively. $G$ does not have to be planar!

◆ solveLP()

static bool ogdf::TutteLayout::solveLP ( int  cols,
const CoinPackedMatrix &  Matrix,
const Array< double > &  rightHandSide,
Array< double > &  x 
)
staticprivate

Member Data Documentation

◆ m_bbox

DRect ogdf::TutteLayout::m_bbox
private

Definition at line 100 of file TutteLayout.h.


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