ccstruct/polyblk.cpp File Reference

#include "mfcpch.h"
#include <stdio.h>
#include <ctype.h>
#include <math.h>
#include "elst.h"
#include "polyblk.h"
#include "hpddef.h"

Go to the source code of this file.

Defines

Functions


Define Documentation

#define INTERSECTING   MAX_INT16

Definition at line 30 of file polyblk.cpp.

#define PBLOCK_LABEL_SIZE   150

Note:
File: polyblk.cpp (Formerly poly_block.c)
Polygonal blocks
Author:
Sheelagh Lloyd?
Date:
1993
 * (C) Copyright 1993, 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 polyblk.cpp.


Function Documentation

int lessthan ( const void *  first,
const void *  second 
)

Return 1 if x of first is less than x of second.

Definition at line 367 of file polyblk.cpp.

Referenced by PB_LINE_IT::get_line().

00367                                                     { 
00368   ICOORDELT *p1 = (*(ICOORDELT **) first);
00369   ICOORDELT *p2 = (*(ICOORDELT **) second);
00370 
00371   if (p1->x () < p2->x ())
00372     return (-1);
00373   else if (p1->x () > p2->x ())
00374     return (1);
00375   else
00376     return (0);
00377 }


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