All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 "host.h"
29 #include "callcpp.h"
30 #include "blobs.h"
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
Definition: blobs.h:261
void display_blob(TBLOB *blob, C_COL color)
Definition: render.cpp:64
bool wordrec_display_all_blobs
Definition: render.cpp:49
bool wordrec_blob_pause
Definition: render.cpp:53
void render_edgepts(void *window, EDGEPT *edgept, C_COL color)
Definition: render.cpp:98
C_COL color_list[]
Definition: render.cpp:45
bool wordrec_display_all_words
Definition: render.cpp:51
ScrollView * blob_window
Definition: render.cpp:43
void render_outline(void *window, TESSLINE *outline, C_COL color)
Definition: render.cpp:124
C_COL
Definition: callcpp.h:32
void render_blob(void *window, TBLOB *blob, C_COL color)
Definition: render.cpp:83
Definition: blobs.h:76
#define BOOL_VAR_H(name, val, comment)
Definition: params.h:268