#include <pdblock.h>
List of all members.
Detailed Description
Definition at line 124 of file pdblock.h.
Constructor & Destructor Documentation
BLOCK_RECT_IT::BLOCK_RECT_IT |
( |
PDBLK * |
blkptr | ) |
|
Member Function Documentation
void BLOCK_RECT_IT::bounding_box |
( |
ICOORD & |
bleft, |
|
|
ICOORD & |
tright |
|
) |
| |
|
inline |
current rectangle
- Parameters:
-
bleft | bottom left |
tright | top right |
Definition at line 149 of file pdblock.h.
{
bleft =
ICOORD (left_it.data ()->x (), ymin);
tright =
ICOORD (right_it.data ()->x (), ymax);
}
BOOL8 BLOCK_RECT_IT::cycled_rects |
( |
| ) |
|
|
inline |
test end
Definition at line 142 of file pdblock.h.
{
return left_it.cycled_list () && right_it.cycled_list ();
}
void BLOCK_RECT_IT::forward |
( |
| ) |
|
next rectangle
Definition at line 344 of file pdblock.cpp.
{
if (!left_it.empty ()) {
if (left_it.data_relative (1)->y () == ymax)
left_it.forward ();
if (right_it.data_relative (1)->y () == ymax)
right_it.forward ();
if (left_it.at_last () || right_it.at_last ()) {
left_it.move_to_first ();
right_it.move_to_first ();
ymin = left_it.data ()->y ();
}
else {
ymin = ymax;
}
ymax = left_it.data_relative (1)->y ();
if (right_it.data_relative (1)->y () < ymax)
ymax = right_it.data_relative (1)->y ();
}
}
void BLOCK_RECT_IT::set_to_block |
( |
PDBLK * |
blkptr | ) |
|
start (new) block
Definition at line 308 of file pdblock.cpp.
{
block = blkptr;
left_it.set_to_list (&blkptr->
leftside);
}
void BLOCK_RECT_IT::start_block |
( |
| ) |
|
start iteration
Definition at line 325 of file pdblock.cpp.
{
left_it.move_to_first ();
right_it.move_to_first ();
left_it.mark_cycle_pt ();
right_it.mark_cycle_pt ();
ymin = left_it.data ()->y ();
ymax = left_it.data_relative (1)->y ();
if (right_it.data_relative (1)->y () < ymax)
ymax = right_it.data_relative (1)->y ();
}
The documentation for this class was generated from the following files: