|
tesseract 3.04.01
|
00001 /* -*-C-*- 00002 ******************************************************************************** 00003 * 00004 * File: plotedges.h (Formerly plotedges.h) 00005 * Description: Convert the various data type into line lists 00006 * Author: Mark Seaman, OCR Technology 00007 * Created: Fri Jul 28 13:14:48 1989 00008 * Modified: Mon May 13 09:34:51 1991 (Mark Seaman) marks@hpgrlt 00009 * Language: C 00010 * Package: N/A 00011 * Status: Experimental (Do Not Distribute) 00012 * 00013 * (c) Copyright 1989, Hewlett-Packard Company. 00014 ** Licensed under the Apache License, Version 2.0 (the "License"); 00015 ** you may not use this file except in compliance with the License. 00016 ** You may obtain a copy of the License at 00017 ** http://www.apache.org/licenses/LICENSE-2.0 00018 ** Unless required by applicable law or agreed to in writing, software 00019 ** distributed under the License is distributed on an "AS IS" BASIS, 00020 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00021 ** See the License for the specific language governing permissions and 00022 ** limitations under the License. 00023 * 00024 *********************************************************************************/ 00025 #ifndef PLOTEDGES_H 00026 #define PLOTEDGES_H 00027 00028 #include "callcpp.h" 00029 #include "oldlist.h" 00030 #include "blobs.h" 00031 00032 /*---------------------------------------------------------------------- 00033 V a r i a b l e s 00034 ----------------------------------------------------------------------*/ 00035 extern ScrollView *edge_window; /* Window for edges */ 00036 00037 /*---------------------------------------------------------------------- 00038 Macros 00039 ----------------------------------------------------------------------*/ 00040 /********************************************************************** 00041 * update_edge_window 00042 * 00043 * Refresh the display of the edge window. 00044 **********************************************************************/ 00045 #define update_edge_window() \ 00046 if (wordrec_display_splits) { \ 00047 c_make_current (edge_window); \ 00048 } \ 00049 00050 00051 /********************************************************************** 00052 * edge_window_wait 00053 * 00054 * Wait for someone to click in the edges window. 00055 **********************************************************************/ 00056 00057 #define edge_window_wait() \ 00058 if (wordrec_display_splits) window_wait (edge_window) 00059 00060 /*---------------------------------------------------------------------- 00061 F u n c t i o n s 00062 ---------------------------------------------------------------------*/ 00063 void display_edgepts(LIST outlines); 00064 00065 void draw_blob_edges(TBLOB *blob); 00066 00067 void mark_outline(EDGEPT *edgept); 00068 00069 #endif