tesseract  4.0.0-1-g2a2b
render.h
Go to the documentation of this file.
1 /* -*-C-*-
2  ********************************************************************************
3  *
4  * File: render.h (Formerly render.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: Fri Apr 26 09:59:45 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 RENDER_H
26 #define RENDER_H
27 
28 #include "callcpp.h" // for C_COL
29 #include "params.h" // for BOOL_VAR_H, BoolParam
30 
31 class ScrollView;
32 
33 struct EDGEPT;
34 struct TBLOB;
35 struct TESSLINE;
36 
37 /*----------------------------------------------------------------------
38  V a r i a b l e s
39 ----------------------------------------------------------------------*/
40 extern ScrollView *blob_window; /* Window for blobs */
41 extern C_COL color_list[]; /* Colors for outlines */
42 
43 extern BOOL_VAR_H(wordrec_display_all_blobs, 0, "Display Blobs");
44 
45 extern BOOL_VAR_H(wordrec_display_all_words, 0, "Display Words");
46 
47 extern BOOL_VAR_H(wordrec_blob_pause, 0, "Blob pause");
48 
49 #define NUM_COLORS 6
50 
51 /*----------------------------------------------------------------------
52  F u n c t i o n s
53 ----------------------------------------------------------------------*/
54 void display_blob(TBLOB *blob, C_COL color);
55 
56 void render_blob(void *window, TBLOB *blob, C_COL color);
57 
58 void render_edgepts(void *window, EDGEPT *edgept, C_COL color);
59 
60 void render_outline(void *window,
61  TESSLINE *outline,
62  C_COL color);
63 
64 #endif
C_COL color_list[]
Definition: render.cpp:42
ScrollView * blob_window
Definition: render.cpp:40
void render_edgepts(void *window, EDGEPT *edgept, C_COL color)
Definition: render.cpp:95
#define BOOL_VAR_H(name, val, comment)
Definition: params.h:267
bool wordrec_display_all_blobs
Definition: render.cpp:46
C_COL
Definition: callcpp.h:29
void render_blob(void *window, TBLOB *blob, C_COL color)
Definition: render.cpp:80
void display_blob(TBLOB *blob, C_COL color)
Definition: render.cpp:61
void render_outline(void *window, TESSLINE *outline, C_COL color)
Definition: render.cpp:121
Definition: blobs.h:83
bool wordrec_blob_pause
Definition: render.cpp:50
bool wordrec_display_all_words
Definition: render.cpp:48
Definition: blobs.h:268