00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef DRAWTORD_H
00021 #define DRAWTORD_H
00022
00023 #include "varable.h"
00024 #include "scrollview.h"
00025 #include "pitsync1.h"
00026 #include "blobbox.h"
00027 #include "notdll.h"
00028
00029 #define NO_SMD "none"
00030
00031 extern BOOL_VAR_H (textord_show_fixed_cuts, FALSE,
00032 "Draw fixed pitch cell boundaries");
00033 extern STRING_VAR_H (to_debugfile, DEBUG_WIN_NAME, "Name of debugfile");
00034 extern STRING_VAR_H (to_smdfile, NO_SMD, "Name of SMD file");
00035 extern ScrollView* to_win;
00036 extern FILE *to_debug;
00037 void create_to_win(
00038 ICOORD page_tr
00039 );
00040 void close_to_win();
00041 void create_todebug_win();
00042 void plot_box_list(
00043 ScrollView* win,
00044 BLOBNBOX_LIST *list,
00045 ScrollView::Color body_colour
00046 );
00047 void plot_to_row(
00048 TO_ROW *row,
00049 ScrollView::Color colour,
00050 FCOORD rotation
00051 );
00052 void plot_parallel_row(
00053 TO_ROW *row,
00054 float gradient,
00055 inT32 left,
00056 ScrollView::Color colour,
00057 FCOORD rotation
00058 );
00059 void draw_occupation (
00060 inT32 xleft,
00061 inT32 ybottom,
00062 inT32 min_y,
00063 inT32 max_y, inT32 occupation[],
00064 inT32 thresholds[]
00065 );
00066 void draw_meanlines(
00067 TO_BLOCK *block,
00068 float gradient,
00069 inT32 left,
00070 ScrollView::Color colour,
00071 FCOORD rotation
00072 );
00073 void plot_word_decisions(
00074 ScrollView* win,
00075 inT16 pitch,
00076 TO_ROW *row
00077 );
00078 void plot_fp_cells(
00079 ScrollView* win,
00080 ScrollView::Color colour,
00081 BLOBNBOX_IT *blob_it,
00082 inT16 pitch,
00083 inT16 blob_count,
00084 STATS *projection,
00085 inT16 projection_left,
00086 inT16 projection_right,
00087 float projection_scale);
00088 void plot_fp_cells2(
00089 ScrollView* win,
00090 ScrollView::Color colour,
00091 TO_ROW *row,
00092 FPSEGPT_LIST *seg_list
00093 );
00094 void plot_row_cells(
00095 ScrollView* win,
00096 ScrollView::Color colour,
00097 TO_ROW *row,
00098 float xshift,
00099 ICOORDELT_LIST *cells
00100 );
00101 #endif