tesseract  4.1.1
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_blob_pause, 0, "Blob pause");
41 
42 #define NUM_COLORS 6
43 
44 /*----------------------------------------------------------------------
45  F u n c t i o n s
46 ----------------------------------------------------------------------*/
47 void display_blob(TBLOB *blob, C_COL color);
48 
49 void render_blob(void *window, TBLOB *blob, C_COL color);
50 
51 void render_edgepts(void *window, EDGEPT *edgept, C_COL color);
52 
53 void render_outline(void *window,
54  TESSLINE *outline,
55  C_COL color);
56 
57 #endif
void render_blob(void *window, TBLOB *blob, C_COL color)
Definition: render.cpp:71
Definition: blobs.h:99
bool wordrec_display_all_blobs
Definition: render.cpp:39
C_COL
Definition: callcpp.h:27
Definition: blobs.h:284
C_COL color_list[]
Definition: render.cpp:35
#define BOOL_VAR_H(name, val, comment)
Definition: params.h:297
bool wordrec_blob_pause
Definition: render.cpp:41
void render_edgepts(void *window, EDGEPT *edgept, C_COL color)
Definition: render.cpp:86
void display_blob(TBLOB *blob, C_COL color)
Definition: render.cpp:52
void render_outline(void *window, TESSLINE *outline, C_COL color)
Definition: render.cpp:112
ScrollView * blob_window
Definition: render.cpp:33