#include <ogdf/misclayout/ProcrustesSubLayout.h>
|
| | ProcrustesPointSet (int numPoints) |
| | Constructor for allocating memory for numPoints points.
|
| |
| | ~ProcrustesPointSet () |
| | Destructor.
|
| |
| double | angle () const |
| | Returns the rotation angle.
|
| |
| double | compare (const ProcrustesPointSet &other) const |
| | Calculates a value how good the two point sets match.
|
| |
| double | getX (int i) const |
| | Returns i'th x-coordinate.
|
| |
| double | getY (int i) const |
| | Returns i'th y-coordinate.
|
| |
| bool | isFlipped () const |
| | Returns true if the point set is flipped by y coord.
|
| |
| void | normalize (bool flip=false) |
| | Translates and scales the set such that the average center is 0, 0 and the average size is 1.0.
|
| |
| double | originX () const |
| | Returns the origin's x.
|
| |
| double | originY () const |
| | Returns the origin's y.
|
| |
| void | rotateTo (const ProcrustesPointSet &other) |
| | Rotates the point set so it fits somehow on other.
|
| |
| double | scale () const |
| | Returns the scale factor.
|
| |
| void | set (int i, double x, double y) |
| | Sets i'th coordinate.
|
| |
|
| double | m_angle |
| | If rotated, the angle.
|
| |
| bool | m_flipped |
| |
| int | m_numPoints |
| | Number of points.
|
| |
| double | m_originX |
| | Original average center's x when normalized.
|
| |
| double | m_originY |
| | Original average center's y when normalized.
|
| |
| double | m_scale |
| | Scale factor.
|
| |
| double * | m_x |
| | X coordinates.
|
| |
| double * | m_y |
| | Y coordinates.
|
| |
Definition at line 40 of file ProcrustesSubLayout.h.
◆ ProcrustesPointSet()
| ogdf::ProcrustesPointSet::ProcrustesPointSet |
( |
int |
numPoints | ) |
|
|
explicit |
Constructor for allocating memory for numPoints points.
◆ ~ProcrustesPointSet()
| ogdf::ProcrustesPointSet::~ProcrustesPointSet |
( |
| ) |
|
◆ angle()
| double ogdf::ProcrustesPointSet::angle |
( |
| ) |
const |
|
inline |
◆ compare()
Calculates a value how good the two point sets match.
◆ getX()
| double ogdf::ProcrustesPointSet::getX |
( |
int |
i | ) |
const |
|
inline |
◆ getY()
| double ogdf::ProcrustesPointSet::getY |
( |
int |
i | ) |
const |
|
inline |
◆ isFlipped()
| bool ogdf::ProcrustesPointSet::isFlipped |
( |
| ) |
const |
|
inline |
◆ normalize()
| void ogdf::ProcrustesPointSet::normalize |
( |
bool |
flip = false | ) |
|
Translates and scales the set such that the average center is 0, 0 and the average size is 1.0.
◆ originX()
| double ogdf::ProcrustesPointSet::originX |
( |
| ) |
const |
|
inline |
◆ originY()
| double ogdf::ProcrustesPointSet::originY |
( |
| ) |
const |
|
inline |
◆ rotateTo()
Rotates the point set so it fits somehow on other.
◆ scale()
| double ogdf::ProcrustesPointSet::scale |
( |
| ) |
const |
|
inline |
◆ set()
| void ogdf::ProcrustesPointSet::set |
( |
int |
i, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
|
inline |
◆ m_angle
| double ogdf::ProcrustesPointSet::m_angle |
|
private |
◆ m_flipped
| bool ogdf::ProcrustesPointSet::m_flipped |
|
private |
◆ m_numPoints
| int ogdf::ProcrustesPointSet::m_numPoints |
|
private |
◆ m_originX
| double ogdf::ProcrustesPointSet::m_originX |
|
private |
◆ m_originY
| double ogdf::ProcrustesPointSet::m_originY |
|
private |
◆ m_scale
| double ogdf::ProcrustesPointSet::m_scale |
|
private |
◆ m_x
| double* ogdf::ProcrustesPointSet::m_x |
|
private |
◆ m_y
| double* ogdf::ProcrustesPointSet::m_y |
|
private |
The documentation for this class was generated from the following file: