tesseract 4.1.1
Loading...
Searching...
No Matches
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
26class ScrollView;
27
28struct EDGEPT;
29struct TBLOB;
30
31/*----------------------------------------------------------------------
32 V a r i a b l e s
33----------------------------------------------------------------------*/
34extern 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() \
45if (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() \
57if (wordrec_display_splits) window_wait (edge_window)
58
59/*----------------------------------------------------------------------
60 F u n c t i o n s
61---------------------------------------------------------------------*/
63
64void draw_blob_edges(TBLOB *blob);
65
66void mark_outline(EDGEPT *edgept);
67
68#endif
ScrollView * edge_window
Definition: plotedges.cpp:35
void display_edgepts(LIST outlines)
Definition: plotedges.cpp:45
void mark_outline(EDGEPT *edgept)
Definition: plotedges.cpp:86
void draw_blob_edges(TBLOB *blob)
Definition: plotedges.cpp:69
Definition: blobs.h:99
Definition: blobs.h:284
TESSLINE * outlines
Definition: blobs.h:400