wordrec/render.h

Go to the documentation of this file.
00001 
00020 #ifndef RENDER_H
00021 #define RENDER_H
00022 
00023 #include "host.h"
00024 #include "callcpp.h"
00025 #include "tessclas.h"
00026 
00027 /*----------------------------------------------------------------------
00028               V a r i a b l e s
00029 ----------------------------------------------------------------------*/
00031 extern void *blob_window;
00033 extern C_COL color_list[];
00035 extern int blob_pause;
00037 extern int display_all_blobs;
00039 extern int display_all_words;
00040 
00042 #define NUM_COLORS 6
00043 
00044 /*----------------------------------------------------------------------
00045               F u n c t i o n s
00046 ----------------------------------------------------------------------*/
00047 void display_blob(TBLOB *blob, C_COL color); 
00048 
00049 void init_render_vars(); 
00050 
00051 void render_blob(void *window, TBLOB *blob, TPOINT origin, C_COL color); 
00052 
00053 void render_edgepts(void *window, EDGEPT *edgept, C_COL color); 
00054 
00055 void render_outline(void *window,
00056                     TESSLINE *outline,
00057                     TPOINT origin,
00058                     C_COL color);
00059 
00060 /*
00061 #if defined(__STDC__) || defined(__cplusplus)
00062 # define _ARGS(s) s
00063 #else
00064 # define _ARGS(s) ()
00065 #endif*/
00066 
00067 /* render.c
00068 void display_blob
00069   _ARGS((BLOB *blob,
00070   char *color));
00071 
00072 void render_blob
00073   _ARGS((X_WINDOW *window,
00074   BLOB *blob,
00075   TPOINT origin,
00076   char *color));
00077 
00078 void render_edgepts
00079   _ARGS((X_WINDOW *window,
00080   EDGEPT *edgept,
00081   char *color));
00082 
00083 void render_outline
00084   _ARGS((X_WINDOW *window,
00085   TESSLINE *outline,
00086   TPOINT origin,
00087   char *color));
00088 
00089 #undef _ARGS
00090 */
00091 #endif

Generated on Wed Feb 28 19:49:13 2007 for Tesseract by  doxygen 1.5.1