Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

ogdf::ProcrustesSubLayout Class Reference

A simple procrustes analysis implementation. More...

#include <ogdf/misclayout/ProcrustesSubLayout.h>

+ Inheritance diagram for ogdf::ProcrustesSubLayout:

Public Member Functions

 ProcrustesSubLayout (LayoutModule *pSubLayout)
 Creates an instance of circular layout. More...
 
 ~ProcrustesSubLayout ()
 
virtual void call (GraphAttributes &GA) override
 Computes a circular layout for graph attributes GA. More...
 
bool scaleToInitialLayout () const
 Should the new layout scale be used or the initial scale? More...
 
void setScaleToInitialLayout (bool flag)
 Should the new layout scale be used or the initial scale? Default: inital. More...
 
- 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

void copyFromGraphAttributes (const GraphAttributes &graphAttributes, ProcrustesPointSet &pointSet)
 copysthe coords in graph attributes to the point set More...
 
void flipY (GraphAttributes &graphAttributes)
 Flips all y coordinates. More...
 
void reverseTransform (GraphAttributes &graphAttributes, const ProcrustesPointSet &pointSet)
 Does a reverse transform of graph attributes by using the origin, scale and angle in pointset. More...
 
void rotate (GraphAttributes &graphAttributes, double angle)
 Rotates all coords in graphAttributes by angle. More...
 
void scale (GraphAttributes &graphAttributes, double scale)
 Scales all coords in graphAttributes by scale. More...
 
void translate (GraphAttributes &graphAttributes, double dx, double dy)
 Moves all coords in graphAttributes by dx, dy. More...
 

Private Attributes

LayoutModule * m_pSubLayout
 The layout module to call for a new layout. More...
 
bool m_scaleToInitialLayout
 option for enabling/disabling scaling to initial layout scale More...
 

Detailed Description

A simple procrustes analysis implementation.

Definition at line 135 of file ProcrustesSubLayout.h.

Constructor & Destructor Documentation

◆ ProcrustesSubLayout()

ogdf::ProcrustesSubLayout::ProcrustesSubLayout ( LayoutModule *  pSubLayout)

Creates an instance of circular layout.

◆ ~ProcrustesSubLayout()

ogdf::ProcrustesSubLayout::~ProcrustesSubLayout ( )
inline

Definition at line 142 of file ProcrustesSubLayout.h.

Member Function Documentation

◆ call()

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

Computes a circular layout for graph attributes GA.

Implements ogdf::LayoutModule.

◆ copyFromGraphAttributes()

void ogdf::ProcrustesSubLayout::copyFromGraphAttributes ( const GraphAttributes &  graphAttributes,
ProcrustesPointSet &  pointSet 
)
private

copysthe coords in graph attributes to the point set

◆ flipY()

void ogdf::ProcrustesSubLayout::flipY ( GraphAttributes &  graphAttributes)
private

Flips all y coordinates.

◆ reverseTransform()

void ogdf::ProcrustesSubLayout::reverseTransform ( GraphAttributes &  graphAttributes,
const ProcrustesPointSet &  pointSet 
)
private

Does a reverse transform of graph attributes by using the origin, scale and angle in pointset.

◆ rotate()

void ogdf::ProcrustesSubLayout::rotate ( GraphAttributes &  graphAttributes,
double  angle 
)
private

Rotates all coords in graphAttributes by angle.

◆ scale()

void ogdf::ProcrustesSubLayout::scale ( GraphAttributes &  graphAttributes,
double  scale 
)
private

Scales all coords in graphAttributes by scale.

◆ scaleToInitialLayout()

bool ogdf::ProcrustesSubLayout::scaleToInitialLayout ( ) const
inline

Should the new layout scale be used or the initial scale?

Definition at line 154 of file ProcrustesSubLayout.h.

◆ setScaleToInitialLayout()

void ogdf::ProcrustesSubLayout::setScaleToInitialLayout ( bool  flag)
inline

Should the new layout scale be used or the initial scale? Default: inital.

Definition at line 148 of file ProcrustesSubLayout.h.

◆ translate()

void ogdf::ProcrustesSubLayout::translate ( GraphAttributes &  graphAttributes,
double  dx,
double  dy 
)
private

Moves all coords in graphAttributes by dx, dy.

Member Data Documentation

◆ m_pSubLayout

LayoutModule* ogdf::ProcrustesSubLayout::m_pSubLayout
private

The layout module to call for a new layout.

Definition at line 179 of file ProcrustesSubLayout.h.

◆ m_scaleToInitialLayout

bool ogdf::ProcrustesSubLayout::m_scaleToInitialLayout
private

option for enabling/disabling scaling to initial layout scale

Definition at line 182 of file ProcrustesSubLayout.h.


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