#include "mfcpch.h"
#include <stdlib.h>
#include "blckerr.h"
#include "ocrblock.h"
#include "tprintf.h"
Go to the source code of this file.
#define BLOCK_LABEL_HEIGHT 150 |
* (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License.
Definition at line 26 of file ocrblock.cpp.
#define ROW_SPACING 5 |
int decreasing_top_order | ( | const void * | row1, | |
const void * | row2 | |||
) |
Sort Comparator: Return <0 if row1 top < row2 top
Definition at line 137 of file ocrblock.cpp.
00139 { 00140 return (*(ROW **) row2)->bounding_box ().top () - 00141 (*(ROW **) row1)->bounding_box ().top (); 00142 }
ELISTIZE_S | ( | BLOCK | ) |
Constructor for a simple rectangular block.
Definition at line 31 of file ocrblock.cpp.
References NULL.
00039 : 00040 PDBLK (xmin, ymin, xmax, ymax), 00041 filename(name) { //box(ICOORD(xmin,ymin),ICOORD(xmax,ymax)) 00042 //boundaries 00043 ICOORDELT_IT left_it = &leftside; 00044 ICOORDELT_IT right_it = &rightside; 00045 00046 proportional = prop; 00047 kerning = kern; 00048 spacing = space; 00049 font_class = -1; //not assigned 00050 hand_block = NULL; 00051 hand_poly = NULL; 00052 left_it.set_to_list (&leftside); 00053 right_it.set_to_list (&rightside); 00054 //make default box 00055 left_it.add_to_end (new ICOORDELT (xmin, ymin)); 00056 left_it.add_to_end (new ICOORDELT (xmin, ymax)); 00057 right_it.add_to_end (new ICOORDELT (xmax, ymin)); 00058 right_it.add_to_end (new ICOORDELT (xmax, ymax)); 00059 }