• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* -*-C-*-
2  ********************************************************************************
3  *
4  * File:        plotedges.h  (Formerly 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 #ifndef PLOTEDGES_H
26 #define PLOTEDGES_H
27 
28 #include "callcpp.h"
29 #include "oldlist.h"
30 #include "tessclas.h"
31 #include "split.h"
32 
33 /*----------------------------------------------------------------------
34               V a r i a b l e s
35 ----------------------------------------------------------------------*/
36 extern ScrollView *edge_window;        /* Window for edges */
37 
38 /*----------------------------------------------------------------------
39             Macros
40 ----------------------------------------------------------------------*/
41 /**********************************************************************
42  * update_edge_window
43  *
44  * Refresh the display of the edge window.
45  **********************************************************************/
46 #define update_edge_window()             \
47 if (wordrec_display_splits) {                  \
48 	c_make_current (edge_window);      \
49 }                                      \
50 
51 
52 /**********************************************************************
53  * edge_window_wait
54  *
55  * Wait for someone to click in the edges window.
56  **********************************************************************/
57 
58 #define edge_window_wait()  \
59 if (wordrec_display_splits) window_wait (edge_window)
60 
61 /*----------------------------------------------------------------------
62               F u n c t i o n s
63 ---------------------------------------------------------------------*/
64 void display_edgepts(LIST outlines);
65 
66 void draw_blob_edges(TBLOB *blob);
67 
68 void mark_outline(EDGEPT *edgept);
69 
70 void mark_split(SPLIT *split);
71 #endif
72