textord/drawtord.h

Go to the documentation of this file.
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(                //make features win
00053                    ICOORD page_tr  //size of page
00054                   );
00055 void close_to_win();  //make features win
00056 void create_todebug_win();  //make gradients win
00057 void plot_blob_list(                      //make gradients win
00058                     WINDOW win,           //window to draw in
00059                     BLOBNBOX_LIST *list,  //blob list
00060                     COLOUR body_colour,   //colour to draw
00061                     COLOUR child_colour   //colour of child
00062                    );
00063 void plot_box_list(                      //make gradients win
00064                    WINDOW win,           //window to draw in
00065                    BLOBNBOX_LIST *list,  //blob list
00066                    COLOUR body_colour    //colour to draw
00067                   );
00068 void plot_to_row(                 //draw a row
00069                  TO_ROW *row,     //row to draw
00070                  COLOUR colour,   //colour to draw in
00071                  FCOORD rotation  //rotation for line
00072                 );
00073 void plot_parallel_row(                 //draw a row
00074                        TO_ROW *row,     //row to draw
00075                        float gradient,  //gradients of lines
00076                        INT32 left,      //edge of block
00077                        COLOUR colour,   //colour to draw in
00078                        FCOORD rotation  //rotation for line
00079                       );
00080 void draw_occupation (           //draw projection
00081 INT32 xleft,                     //edge of block
00082 INT32 ybottom,                   //bottom of block
00083 INT32 min_y,                     //coordinate limits
00084 INT32 max_y, INT32 occupation[], //projection counts
00085 INT32 thresholds[]               //for drop out
00086 );
00087 void draw_meanlines(                  //draw a block
00088                     TO_BLOCK *block,  //block to draw
00089                     float gradient,   //gradients of lines
00090                     INT32 left,       //edge of block
00091                     COLOUR colour,    //colour to draw in
00092                     FCOORD rotation   //rotation for line
00093                    );
00094 void plot_word_decisions(              //draw words
00095                          WINDOW win,   //window tro draw in
00096                          INT16 pitch,  //of block
00097                          TO_ROW *row   //row to draw
00098                         );
00099 void plot_fp_cells(                        //draw words
00100                    WINDOW win,             //window tro draw in
00101                    COLOUR colour,          //colour of lines
00102                    BLOBNBOX_IT *blob_it,   //blobs
00103                    INT16 pitch,            //of block
00104                    INT16 blob_count,       //no of real blobs
00105                    STATS *projection,      //vertical
00106                    INT16 projection_left,  //edges //scale factor
00107                    INT16 projection_right,
00108                    float projection_scale);
00109 void plot_fp_cells2(                        //draw words
00110                     WINDOW win,             //window tro draw in
00111                     COLOUR colour,          //colour of lines
00112                     TO_ROW *row,            //for location
00113                     FPSEGPT_LIST *seg_list  //segments to plot
00114                    );
00115 void plot_row_cells(                       //draw words
00116                     WINDOW win,            //window tro draw in
00117                     COLOUR colour,         //colour of lines
00118                     TO_ROW *row,           //for location
00119                     float xshift,          //amount of shift
00120                     ICOORDELT_LIST *cells  //cells to draw
00121                    );
00122 #endif

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