tesseract  4.1.1
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  *
8  * (c) Copyright 1989, Hewlett-Packard Company.
9  ** Licensed under the Apache License, Version 2.0 (the "License");
10  ** you may not use this file except in compliance with the License.
11  ** You may obtain a copy of the License at
12  ** http://www.apache.org/licenses/LICENSE-2.0
13  ** Unless required by applicable law or agreed to in writing, software
14  ** distributed under the License is distributed on an "AS IS" BASIS,
15  ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  ** See the License for the specific language governing permissions and
17  ** limitations under the License.
18  *
19  *********************************************************************************/
20 
21 #ifndef PLOTEDGES_H
22 #define PLOTEDGES_H
23 
24 #include "oldlist.h" // for LIST
25 
26 class ScrollView;
27 
28 struct EDGEPT;
29 struct TBLOB;
30 
31 /*----------------------------------------------------------------------
32  V a r i a b l e s
33 ----------------------------------------------------------------------*/
34 extern ScrollView *edge_window; /* Window for edges */
35 
36 /*----------------------------------------------------------------------
37  Macros
38 ----------------------------------------------------------------------*/
39 /**********************************************************************
40  * update_edge_window
41  *
42  * Refresh the display of the edge window.
43  **********************************************************************/
44 #define update_edge_window() \
45 if (wordrec_display_splits) { \
46  c_make_current (edge_window); \
47 }
48 
49 
50 /**********************************************************************
51  * edge_window_wait
52  *
53  * Wait for someone to click in the edges window.
54  **********************************************************************/
55 
56 #define edge_window_wait() \
57 if (wordrec_display_splits) window_wait (edge_window)
58 
59 /*----------------------------------------------------------------------
60  F u n c t i o n s
61 ---------------------------------------------------------------------*/
63 
64 void draw_blob_edges(TBLOB *blob);
65 
66 void mark_outline(EDGEPT *edgept);
67 
68 #endif
edge_window
ScrollView * edge_window
Definition: plotedges.cpp:35
draw_blob_edges
void draw_blob_edges(TBLOB *blob)
Definition: plotedges.cpp:69
EDGEPT
Definition: blobs.h:99
display_edgepts
void display_edgepts(LIST outlines)
Definition: plotedges.cpp:45
ScrollView
Definition: scrollview.h:98
mark_outline
void mark_outline(EDGEPT *edgept)
Definition: plotedges.cpp:86
TBLOB
Definition: blobs.h:284
list_rec
Definition: oldlist.h:81
oldlist.h
TBLOB::outlines
TESSLINE * outlines
Definition: blobs.h:400