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