ccstruct/werd.cpp File Reference

#include "mfcpch.h"
#include "blckerr.h"
#include "linlsq.h"
#include "werd.h"

Go to the source code of this file.

Defines

Functions

Variables


Define Documentation

#define CHILD_COLOUR   BROWN

Definition at line 28 of file werd.cpp.

Referenced by WERD::plot().

#define EXTERN

Definition at line 33 of file werd.cpp.

#define FIRST_COLOUR   RED

Note:
File: werd.cpp (Formerly word.c)
Code for the WERD class.
Author:
Ray Smith
Date:
Tue Oct 08 14:32:12 BST 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 25 of file werd.cpp.

Referenced by WERD::plot().

#define LAST_COLOUR   AQUAMARINE

Definition at line 27 of file werd.cpp.

Referenced by WERD::plot().


Function Documentation

int word_comparator ( const void *  word1p,
const void *  word2p 
)

Definition at line 962 of file werd.cpp.

References WERD::bounding_box(), and BOX::left().

Referenced by re_segment_word(), ROW::recalc_bounding_box(), and tidy_up().

00965                      {
00966   WERD *
00967     word1 = *(WERD **) word1p;
00968   WERD *
00969     word2 = *(WERD **) word2p;
00970 
00971   return word1->bounding_box ().left () - word2->bounding_box ().left ();
00972 }


Variable Documentation

const ERRCODE CANT_SCALE_EDGESTEPS

Initial value:

"Attempted to scale an edgestep format word"

Definition at line 30 of file werd.cpp.

Referenced by WERD::scale().


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