Tesseract  3.02
tesseract-ocr/wordrec/plotedges.h
Go to the documentation of this file.
00001 /* -*-C-*-
00002  ********************************************************************************
00003  *
00004  * File:        plotedges.h  (Formerly plotedges.h)
00005  * Description:  Convert the various data type into line lists
00006  * Author:       Mark Seaman, OCR Technology
00007  * Created:      Fri Jul 28 13:14:48 1989
00008  * Modified:     Mon May 13 09:34:51 1991 (Mark Seaman) marks@hpgrlt
00009  * Language:     C
00010  * Package:      N/A
00011  * Status:       Experimental (Do Not Distribute)
00012  *
00013  * (c) Copyright 1989, Hewlett-Packard Company.
00014  ** Licensed under the Apache License, Version 2.0 (the "License");
00015  ** you may not use this file except in compliance with the License.
00016  ** You may obtain a copy of the License at
00017  ** http://www.apache.org/licenses/LICENSE-2.0
00018  ** Unless required by applicable law or agreed to in writing, software
00019  ** distributed under the License is distributed on an "AS IS" BASIS,
00020  ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00021  ** See the License for the specific language governing permissions and
00022  ** limitations under the License.
00023  *
00024  *********************************************************************************/
00025 #ifndef PLOTEDGES_H
00026 #define PLOTEDGES_H
00027 
00028 #include "callcpp.h"
00029 #include "oldlist.h"
00030 #include "blobs.h"
00031 #include "split.h"
00032 
00033 /*----------------------------------------------------------------------
00034               V a r i a b l e s
00035 ----------------------------------------------------------------------*/
00036 extern ScrollView *edge_window;        /* Window for edges */
00037 
00038 /*----------------------------------------------------------------------
00039             Macros
00040 ----------------------------------------------------------------------*/
00041 /**********************************************************************
00042  * update_edge_window
00043  *
00044  * Refresh the display of the edge window.
00045  **********************************************************************/
00046 #define update_edge_window()             \
00047 if (wordrec_display_splits) {                  \
00048         c_make_current (edge_window);      \
00049 }                                      \
00050 
00051 
00052 /**********************************************************************
00053  * edge_window_wait
00054  *
00055  * Wait for someone to click in the edges window.
00056  **********************************************************************/
00057 
00058 #define edge_window_wait()  \
00059 if (wordrec_display_splits) window_wait (edge_window)
00060 
00061 /*----------------------------------------------------------------------
00062               F u n c t i o n s
00063 ---------------------------------------------------------------------*/
00064 void display_edgepts(LIST outlines);
00065 
00066 void draw_blob_edges(TBLOB *blob);
00067 
00068 void mark_outline(EDGEPT *edgept);
00069 
00070 void mark_split(SPLIT *split);
00071 #endif