58 void set(
int i,
double x,
double y)
150 m_scaleToInitialLayout = flag;
156 return m_scaleToInitialLayout;
164 void translate(
GraphAttributes& graphAttributes,
double dx,
double dy);
void setScaleToInitialLayout(bool flag)
Should the new layout scale be used or the initial scale? Default: inital.
double m_originY
the original avg center's y when normalized
void normalize(bool flip=false)
translates and scales the set such that the avg center is 0, 0 and the avg size is 1...
double getX(int i) const
returns ith x-coordinate
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
double getY(int i) const
returns ith y-coordinate
void rotateTo(const ProcrustesPointSet &other)
rotates the point set so it fits somehow on other
double * m_x
x coordinates
bool m_scaleToInitialLayout
option for enabling/disabling scaling to initial layout scale
bool m_flipped
if flipped then this is true
double * m_y
y coordinates
ProcrustesPointSet(int numPoints)
Constructor for allocating mem for numPoints points.
bool scaleToInitialLayout() const
Should the new layout scale be used or the initial scale?
double m_angle
if rotated, the angle
double scale() const
returns the scale factor
double angle() const
returns the rotation angle
Stores additional attributes of a graph (like layout information).
double compare(const ProcrustesPointSet &other) const
calculates a value how good the two point sets match
LayoutModule * m_pSubLayout
The layout module to call for a new layout.
Declaration of interface for layout algorithms (class LayoutModule)
~ProcrustesPointSet()
Destructor which frees mem.
int m_numPoints
The number of points.
bool isFlipped() const
returns true if the point set is flipped by y coord
Interface of general layout algorithms.
double m_originX
the original avg center's x when normalized
double originY() const
returns the origins y
A simple procrustes analysis implementation.
double originX() const
returns the origins x
The namespace for all OGDF objects.
double m_scale
the scale factor