#include <blobs.h>
Definition at line 99 of file blobs.h.
◆ EDGEPT() [1/2]
◆ EDGEPT() [2/2]
EDGEPT::EDGEPT |
( |
const EDGEPT & |
src | ) |
|
|
inline |
Definition at line 104 of file blobs.h.
106 }
void CopyFrom(const EDGEPT &src)
◆ CopyFrom()
void EDGEPT::CopyFrom |
( |
const EDGEPT & |
src | ) |
|
|
inline |
◆ EqualPos()
bool EDGEPT::EqualPos |
( |
const EDGEPT & |
other | ) |
const |
|
inline |
◆ Hide()
◆ IsChopPt()
bool EDGEPT::IsChopPt |
( |
| ) |
const |
|
inline |
Definition at line 182 of file blobs.h.
182 {
183 return flags[2] != 0;
184 }
◆ IsHidden()
bool EDGEPT::IsHidden |
( |
| ) |
const |
|
inline |
Definition at line 176 of file blobs.h.
176 {
177 return flags[0] != 0;
178 }
◆ MarkChop()
void EDGEPT::MarkChop |
( |
| ) |
|
|
inline |
◆ operator=()
Definition at line 107 of file blobs.h.
107 {
109 return *this;
110 }
◆ Reveal()
◆ SegmentArea()
int EDGEPT::SegmentArea |
( |
const EDGEPT * |
end | ) |
const |
|
inline |
Definition at line 145 of file blobs.h.
145 {
146 int area = 0;
148 do {
150 area += origin_vec.cross(pt->
vec);
152 } while (pt != end && pt != this);
153 return area;
154 }
◆ SegmentBox()
TBOX EDGEPT::SegmentBox |
( |
const EDGEPT * |
end | ) |
const |
|
inline |
Definition at line 131 of file blobs.h.
131 {
134 do {
136 if (pt->
pos.
x < box.left()) box.set_left(pt->
pos.
x);
137 if (pt->
pos.
x > box.right()) box.set_right(pt->
pos.
x);
138 if (pt->
pos.
y < box.bottom()) box.set_bottom(pt->
pos.
y);
139 if (pt->
pos.
y > box.top()) box.set_top(pt->
pos.
y);
140 } while (pt != end && pt != this);
141 return box;
142 }
◆ ShortNonCircularSegment()
bool EDGEPT::ShortNonCircularSegment |
( |
int |
min_points, |
|
|
const EDGEPT * |
end |
|
) |
| const |
|
inline |
Definition at line 158 of file blobs.h.
158 {
161 do {
162 if (pt == end) return true;
165 }
while (pt !=
this &&
count <= min_points);
166 return false;
167 }
◆ WeightedDistance()
int EDGEPT::WeightedDistance |
( |
const EDGEPT & |
other, |
|
|
int |
x_factor |
|
) |
| const |
|
inline |
Definition at line 122 of file blobs.h.
122 {
125 return x_dist * x_dist * x_factor + y_dist * y_dist;
126 }
◆ flags
◆ next
◆ pos
◆ prev
◆ src_outline
◆ start_step
◆ step_count
◆ vec
The documentation for this struct was generated from the following file: