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