00001
00019 #ifndef DRAWTORD_H
00020 #define DRAWTORD_H
00021
00022 #include "varable.h"
00023 #include "grphics.h"
00024 #include "pitsync1.h"
00025 #include "blobbox.h"
00026 #include "notdll.h"
00027
00028 #define NO_SMD "none"
00029
00044 extern BOOL_VAR_H (textord_show_fixed_cuts, FALSE,
00045 "Draw fixed pitch cell boundaries");
00046 extern STRING_VAR_H (to_debugfile, DEBUG_WIN_NAME, "Name of debugfile");
00047 extern STRING_VAR_H (to_smdfile, NO_SMD, "Name of SMD file");
00050 extern WINDOW to_win;
00051 extern FILE *to_debug;
00052 void create_to_win(
00053 ICOORD page_tr
00054 );
00055 void close_to_win();
00056 void create_todebug_win();
00057 void plot_blob_list(
00058 WINDOW win,
00059 BLOBNBOX_LIST *list,
00060 COLOUR body_colour,
00061 COLOUR child_colour
00062 );
00063 void plot_box_list(
00064 WINDOW win,
00065 BLOBNBOX_LIST *list,
00066 COLOUR body_colour
00067 );
00068 void plot_to_row(
00069 TO_ROW *row,
00070 COLOUR colour,
00071 FCOORD rotation
00072 );
00073 void plot_parallel_row(
00074 TO_ROW *row,
00075 float gradient,
00076 INT32 left,
00077 COLOUR colour,
00078 FCOORD rotation
00079 );
00080 void draw_occupation (
00081 INT32 xleft,
00082 INT32 ybottom,
00083 INT32 min_y,
00084 INT32 max_y, INT32 occupation[],
00085 INT32 thresholds[]
00086 );
00087 void draw_meanlines(
00088 TO_BLOCK *block,
00089 float gradient,
00090 INT32 left,
00091 COLOUR colour,
00092 FCOORD rotation
00093 );
00094 void plot_word_decisions(
00095 WINDOW win,
00096 INT16 pitch,
00097 TO_ROW *row
00098 );
00099 void plot_fp_cells(
00100 WINDOW win,
00101 COLOUR colour,
00102 BLOBNBOX_IT *blob_it,
00103 INT16 pitch,
00104 INT16 blob_count,
00105 STATS *projection,
00106 INT16 projection_left,
00107 INT16 projection_right,
00108 float projection_scale);
00109 void plot_fp_cells2(
00110 WINDOW win,
00111 COLOUR colour,
00112 TO_ROW *row,
00113 FPSEGPT_LIST *seg_list
00114 );
00115 void plot_row_cells(
00116 WINDOW win,
00117 COLOUR colour,
00118 TO_ROW *row,
00119 float xshift,
00120 ICOORDELT_LIST *cells
00121 );
00122 #endif