Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

ogdf::ProcrustesSubLayout Class Reference

Simple procrustes analysis. More...

#include <ogdf/misclayout/ProcrustesSubLayout.h>

+ Inheritance diagram for ogdf::ProcrustesSubLayout:

Public Member Functions

 ProcrustesSubLayout (LayoutModule *pSubLayout)
 Constructor. More...
 
virtual ~ProcrustesSubLayout ()
 Destructor. More...
 
virtual void call (GraphAttributes &GA) override
 Computes a layout of graph GA. More...
 
bool scaleToInitialLayout () const
 Should the new layout scale be used or the initial scale? Defaults to true. More...
 
void setScaleToInitialLayout (bool flag)
 Should the new layout scale be used or the initial scale? Defaults to true. 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)
 Copies the 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

LayoutModulem_pSubLayout
 Layout module to call for a new layout. More...
 
bool m_scaleToInitialLayout
 Option for enabling/disabling scaling to initial layout scale. More...
 

Detailed Description

Simple procrustes analysis.

Definition at line 131 of file ProcrustesSubLayout.h.

Constructor & Destructor Documentation

◆ ProcrustesSubLayout()

ogdf::ProcrustesSubLayout::ProcrustesSubLayout ( LayoutModule pSubLayout)
explicit

Constructor.

◆ ~ProcrustesSubLayout()

virtual ogdf::ProcrustesSubLayout::~ProcrustesSubLayout ( )
inlinevirtual

Destructor.

Definition at line 138 of file ProcrustesSubLayout.h.

Member Function Documentation

◆ call()

virtual void ogdf::ProcrustesSubLayout::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.

◆ copyFromGraphAttributes()

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

Copies the 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? Defaults to true.

Definition at line 151 of file ProcrustesSubLayout.h.

◆ setScaleToInitialLayout()

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

Should the new layout scale be used or the initial scale? Defaults to true.

Definition at line 145 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

Layout module to call for a new layout.

Definition at line 176 of file ProcrustesSubLayout.h.

◆ m_scaleToInitialLayout

bool ogdf::ProcrustesSubLayout::m_scaleToInitialLayout
private

Option for enabling/disabling scaling to initial layout scale.

Definition at line 179 of file ProcrustesSubLayout.h.


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