#include <blobs.h>
Definition at line 201 of file blobs.h.
◆ TESSLINE() [1/2]
◆ TESSLINE() [2/2]
TESSLINE::TESSLINE |
( |
const TESSLINE & |
src | ) |
|
|
inline |
◆ ~TESSLINE()
◆ BBArea()
int TESSLINE::BBArea |
( |
| ) |
const |
|
inline |
◆ bounding_box()
TBOX TESSLINE::bounding_box |
( |
| ) |
const |
◆ BuildFromOutlineList()
Definition at line 93 of file blobs.cpp.
95 result->loop = outline;
107 }
while (pt != outline);
109 result->SetupFromPos();
◆ Clear()
Definition at line 141 of file blobs.cpp.
142 if (
loop ==
nullptr)
return;
148 this_edge = next_edge;
149 }
while (this_edge !=
loop);
◆ ComputeBoundingBox()
void TESSLINE::ComputeBoundingBox |
( |
| ) |
|
Definition at line 212 of file blobs.cpp.
213 int minx = INT32_MAX;
214 int miny = INT32_MAX;
215 int maxx = -INT32_MAX;
216 int maxy = -INT32_MAX;
223 if (this_edge->
pos.
x < minx) minx = this_edge->
pos.
x;
224 if (this_edge->
pos.
y < miny) miny = this_edge->
pos.
y;
225 if (this_edge->
pos.
x > maxx) maxx = this_edge->
pos.
x;
226 if (this_edge->
pos.
y > maxy) maxy = this_edge->
pos.
y;
228 this_edge = this_edge->
next;
229 }
while (this_edge !=
loop);
◆ Contains()
bool TESSLINE::Contains |
( |
const TPOINT & |
pt | ) |
const |
|
inline |
◆ CopyFrom()
void TESSLINE::CopyFrom |
( |
const TESSLINE & |
src | ) |
|
Definition at line 114 of file blobs.cpp.
120 if (src.
loop !=
nullptr) {
125 newpt =
new EDGEPT(*srcpt);
126 if (prevpt ==
nullptr) {
129 newpt->
prev = prevpt;
130 prevpt->
next = newpt;
134 }
while (srcpt != src.
loop);
◆ FindBestStartPt()
EDGEPT * TESSLINE::FindBestStartPt |
( |
| ) |
const |
◆ MinMaxCrossProduct()
void TESSLINE::MinMaxCrossProduct |
( |
const TPOINT |
vec, |
|
|
int * |
min_xp, |
|
|
int * |
max_xp |
|
) |
| const |
Definition at line 242 of file blobs.cpp.
249 int product = this_edge->
pos.
cross(vec);
252 this_edge = this_edge->
next;
253 }
while (this_edge !=
loop);
◆ Move()
void TESSLINE::Move |
( |
const ICOORD |
vec | ) |
|
◆ Normalize()
void TESSLINE::Normalize |
( |
const DENORM & |
denorm | ) |
|
◆ operator=()
◆ plot()
Definition at line 261 of file blobs.cpp.
264 window->
Pen(child_color);
276 }
while (pt !=
loop);
◆ Rotate()
void TESSLINE::Rotate |
( |
const FCOORD |
rotation | ) |
|
Definition at line 164 of file blobs.cpp.
167 int tmp = static_cast<int>(
168 floor(pt->
pos.
x * rot.x() - pt->
pos.
y * rot.y() + 0.5));
169 pt->
pos.
y = static_cast<int>(
170 floor(pt->
pos.
y * rot.x() + pt->
pos.
x * rot.y() + 0.5));
173 }
while (pt !=
loop);
◆ SameBox()
bool TESSLINE::SameBox |
( |
const TESSLINE & |
other | ) |
const |
|
inline |
◆ Scale()
void TESSLINE::Scale |
( |
float |
factor | ) |
|
Definition at line 189 of file blobs.cpp.
192 pt->
pos.
x = static_cast<int>(floor(pt->
pos.
x * factor + 0.5));
193 pt->
pos.
y = static_cast<int>(floor(pt->
pos.
y * factor + 0.5));
195 }
while (pt !=
loop);
◆ SegmentCrosses()
bool TESSLINE::SegmentCrosses |
( |
const TPOINT & |
pt1, |
|
|
const TPOINT & |
pt2 |
|
) |
| const |
|
inline |
◆ SetupFromPos()
void TESSLINE::SetupFromPos |
( |
| ) |
|
◆ botright
◆ is_hole
◆ loop
◆ next
◆ start
◆ topleft
The documentation for this struct was generated from the following files: