#include <blobs.h>
List of all members.
Detailed Description
Definition at line 76 of file blobs.h.
Constructor & Destructor Documentation
| EDGEPT::EDGEPT |
( |
| ) |
[inline] |
| EDGEPT::EDGEPT |
( |
const EDGEPT & |
src | ) |
[inline] |
Member Function Documentation
| void EDGEPT::CopyFrom |
( |
const EDGEPT & |
src | ) |
[inline] |
| bool EDGEPT::EqualPos |
( |
const EDGEPT & |
other | ) |
const [inline] |
| void EDGEPT::Hide |
( |
| ) |
[inline] |
| bool EDGEPT::IsChopPt |
( |
| ) |
const [inline] |
| bool EDGEPT::IsHidden |
( |
| ) |
const [inline] |
| void EDGEPT::MarkChop |
( |
| ) |
[inline] |
| void EDGEPT::Reveal |
( |
| ) |
[inline] |
| int EDGEPT::SegmentArea |
( |
const EDGEPT * |
end | ) |
const [inline] |
| TBOX EDGEPT::SegmentBox |
( |
const EDGEPT * |
end | ) |
const [inline] |
Definition at line 108 of file blobs.h.
{
TBOX box(pos.x, pos.y, pos.x, pos.y);
const EDGEPT* pt = this;
do {
pt = pt->next;
if (pt->pos.x < box.left()) box.set_left(pt->pos.x);
if (pt->pos.x > box.right()) box.set_right(pt->pos.x);
if (pt->pos.y < box.bottom()) box.set_bottom(pt->pos.y);
if (pt->pos.y > box.top()) box.set_top(pt->pos.y);
} while (pt != end && pt != this);
return box;
}
| bool EDGEPT::ShortNonCircularSegment |
( |
int |
min_points, |
|
|
const EDGEPT * |
end |
|
) |
| const [inline] |
Definition at line 135 of file blobs.h.
{
int count = 0;
const EDGEPT* pt = this;
do {
if (pt == end) return true;
pt = pt->next;
++count;
} while (pt != this && count <= min_points);
return false;
}
| int EDGEPT::WeightedDistance |
( |
const EDGEPT & |
other, |
|
|
int |
x_factor |
|
) |
| const [inline] |
Definition at line 99 of file blobs.h.
{
int x_dist = pos.x - other.pos.x;
int y_dist = pos.y - other.pos.y;
return x_dist * x_dist * x_factor + y_dist * y_dist;
}
Member Data Documentation
The documentation for this struct was generated from the following file: