57 void set(
int i,
double x,
double y)
147 m_scaleToInitialLayout = flag;
153 return m_scaleToInitialLayout;
161 void translate(
GraphAttributes& graphAttributes,
double dx,
double dy);
void setScaleToInitialLayout(bool flag)
Should the new layout scale be used or the initial scale? Defaults to true.
double m_originY
Original average center's y when normalized.
void normalize(bool flip=false)
Translates and scales the set such that the average center is 0, 0 and the average size is 1...
double getX(int i) const
Returns i'th x-coordinate.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
double getY(int i) const
Returns i'th 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.
double * m_y
Y coordinates.
ProcrustesPointSet(int numPoints)
Constructor for allocating memory for numPoints points.
bool scaleToInitialLayout() const
Should the new layout scale be used or the initial scale? Defaults to true.
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
Layout module to call for a new layout.
Declaration of interface for layout algorithms (class LayoutModule)
~ProcrustesPointSet()
Destructor.
int m_numPoints
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
Original average center's x when normalized.
double originY() const
Returns the origin's y.
Simple procrustes analysis.
virtual ~ProcrustesSubLayout()
Destructor.
double originX() const
Returns the origin's x.
The namespace for all OGDF objects.
double m_scale
Scale factor.