ccstruct/pdblock.cpp File Reference

#include "mfcpch.h"
#include <stdlib.h>
#include "blckerr.h"
#include "pdblock.h"
#include "showim.h"
#include "hpddef.h"

Go to the source code of this file.

Defines

Functions


Define Documentation

#define BLOCK_LABEL_HEIGHT   150

char height of block id

Note:
File: pdblock.cpp (Formerly pdblk.c)
PDBLK member functions and iterator functions.
Author:
Ray Smith
Date:
Fri Mar 15 09:41:28 GMT 1991
 * (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 29 of file pdblock.cpp.


Function Documentation

CLISTIZE ( PDBLK   ) 

Constructor for a simple rectangular block.

Definition at line 31 of file pdblock.cpp.

References NULL.

00038            :    box (ICOORD (xmin, ymin), ICOORD (xmax, ymax)) {
00039                                  //boundaries
00040   ICOORDELT_IT left_it = &leftside;
00041   ICOORDELT_IT right_it = &rightside;
00042 
00043   hand_block = NULL;
00044   hand_poly = NULL;
00045   left_it.set_to_list (&leftside);
00046   right_it.set_to_list (&rightside);
00047                                  //make default box
00048   left_it.add_to_end (new ICOORDELT (xmin, ymin));
00049   left_it.add_to_end (new ICOORDELT (xmin, ymax));
00050   right_it.add_to_end (new ICOORDELT (xmax, ymin));
00051   right_it.add_to_end (new ICOORDELT (xmax, ymax));
00052 }


Generated on Wed Feb 28 19:49:16 2007 for Tesseract by  doxygen 1.5.1