tesseract  4.0.0-1-g2a2b
plotedges.h
Go to the documentation of this file.
1 /* -*-C-*-
2  ********************************************************************************
3  *
4  * File: plotedges.h
5  * Description: Convert the various data type into line lists
6  * Author: Mark Seaman, OCR Technology
7  * Created: Fri Jul 28 13:14:48 1989
8  * Modified: Mon May 13 09:34:51 1991 (Mark Seaman) marks@hpgrlt
9  * Language: C
10  * Package: N/A
11  * Status: Experimental (Do Not Distribute)
12  *
13  * (c) Copyright 1989, Hewlett-Packard Company.
14  ** Licensed under the Apache License, Version 2.0 (the "License");
15  ** you may not use this file except in compliance with the License.
16  ** You may obtain a copy of the License at
17  ** http://www.apache.org/licenses/LICENSE-2.0
18  ** Unless required by applicable law or agreed to in writing, software
19  ** distributed under the License is distributed on an "AS IS" BASIS,
20  ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  ** See the License for the specific language governing permissions and
22  ** limitations under the License.
23  *
24  *********************************************************************************/
25 
26 #ifndef PLOTEDGES_H
27 #define PLOTEDGES_H
28 
29 #include "oldlist.h" // for LIST
30 
31 class ScrollView;
32 
33 struct EDGEPT;
34 struct TBLOB;
35 
36 /*----------------------------------------------------------------------
37  V a r i a b l e s
38 ----------------------------------------------------------------------*/
39 extern ScrollView *edge_window; /* Window for edges */
40 
41 /*----------------------------------------------------------------------
42  Macros
43 ----------------------------------------------------------------------*/
44 /**********************************************************************
45  * update_edge_window
46  *
47  * Refresh the display of the edge window.
48  **********************************************************************/
49 #define update_edge_window() \
50 if (wordrec_display_splits) { \
51  c_make_current (edge_window); \
52 }
53 
54 
55 /**********************************************************************
56  * edge_window_wait
57  *
58  * Wait for someone to click in the edges window.
59  **********************************************************************/
60 
61 #define edge_window_wait() \
62 if (wordrec_display_splits) window_wait (edge_window)
63 
64 /*----------------------------------------------------------------------
65  F u n c t i o n s
66 ---------------------------------------------------------------------*/
68 
69 void draw_blob_edges(TBLOB *blob);
70 
71 void mark_outline(EDGEPT *edgept);
72 
73 #endif
void display_edgepts(LIST outlines)
Definition: plotedges.cpp:50
void mark_outline(EDGEPT *edgept)
Definition: plotedges.cpp:92
void draw_blob_edges(TBLOB *blob)
Definition: plotedges.cpp:74
Definition: blobs.h:83
ScrollView * edge_window
Definition: plotedges.cpp:40
Definition: blobs.h:268
TESSLINE * outlines
Definition: blobs.h:384