wordrec/drawfx.cpp File Reference

#include "mfcpch.h"
#include "debugwin.h"
#include "werd.h"
#include "drawfx.h"

Go to the source code of this file.

Defines

Functions

Variables


Define Documentation

#define BLN_MAX   512

Definition at line 30 of file drawfx.cpp.

Referenced by create_fx_win().

#define DEBUG_WIN_NAME   "FXDebug"

Definition at line 34 of file drawfx.cpp.

#define DEBUG_XPOS   0

Definition at line 35 of file drawfx.cpp.

#define DEBUG_XSIZE   80

Definition at line 37 of file drawfx.cpp.

#define DEBUG_YPOS   120

Definition at line 36 of file drawfx.cpp.

#define DEBUG_YSIZE   32

Definition at line 38 of file drawfx.cpp.

#define DECENT_WERD_WIDTH   (5*bln_x_height)

Definition at line 32 of file drawfx.cpp.

Referenced by create_fx_win().

#define EXTERN

Definition at line 43 of file drawfx.cpp.

#define FXDEMOWIN   "FXDemo"

Note:
File: drawfx.cpp (Formerly drawfx.c)
Draw things to do with feature extraction.
Author:
Ray Smith
Date:
Mon Jan 27 11:02:16 GMT 1992
 * (C) Copyright 1992, Hewlett-Packard Ltd.
 ** Licensed under the Apache License, Version 2.0 (the "License");
 ** you may not use this file except in compliance with the License.
 ** You may obtain a copy of the License at
 ** http://www.apache.org/licenses/LICENSE-2.0
 ** Unless required by applicable law or agreed to in writing, software
 ** distributed under the License is distributed on an "AS IS" BASIS,
 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 ** See the License for the specific language governing permissions and
 ** limitations under the License.

Definition at line 25 of file drawfx.cpp.

Referenced by create_fx_win().

#define FXDEMOXPOS   250

Definition at line 26 of file drawfx.cpp.

Referenced by create_fx_win().

#define FXDEMOXSIZE   400

Definition at line 28 of file drawfx.cpp.

Referenced by create_fx_win().

#define FXDEMOYPOS   0

Definition at line 27 of file drawfx.cpp.

Referenced by create_fx_win().

#define FXDEMOYSIZE   150

Definition at line 29 of file drawfx.cpp.

Referenced by create_fx_win().

#define MAXEDGELENGTH   1024

Definition at line 41 of file drawfx.cpp.

#define WERDWIDTH   (BLN_MAX*20)

Definition at line 31 of file drawfx.cpp.

Referenced by clear_fx_win(), and create_fx_win().

#define XMAX   2550

Definition at line 40 of file drawfx.cpp.

#define YMAX   3508

Definition at line 39 of file drawfx.cpp.


Function Documentation

void clear_fx_win (  ) 

Clear features win

Clear the fx window and draw on the base/mean lines.

Definition at line 76 of file drawfx.cpp.

References clear_view_surface, DIM_GREY, draw2d, fx_win, line_color_index, move2d, and WERDWIDTH.

Referenced by classify_word_pass2().

00076                     {  //make features win
00077   clear_view_surface(fx_win); 
00078   line_color_index(fx_win, DIM_GREY); 
00079   move2d (fx_win, -WERDWIDTH, bln_baseline_offset);
00080   draw2d(fx_win, WERDWIDTH, bln_baseline_offset); 
00081   move2d (fx_win, -WERDWIDTH, bln_x_height + bln_baseline_offset);
00082   draw2d (fx_win, WERDWIDTH, bln_x_height + bln_baseline_offset);
00083 }

void create_fx_win (  ) 

Create features win

Create the fx window used to show the fit.

Definition at line 59 of file drawfx.cpp.

References BLN_MAX, create_window, DECENT_WERD_WIDTH, FALSE, fx_win, FXDEMOWIN, FXDEMOXPOS, FXDEMOXSIZE, FXDEMOYPOS, FXDEMOYSIZE, SCROLLINGWIN, TRUE, vdc_extent, and WERDWIDTH.

Referenced by classify_word_pass2().

00059                      {  //make features win
00060   fx_win = create_window (FXDEMOWIN, SCROLLINGWIN,
00061     FXDEMOXPOS, FXDEMOYPOS, FXDEMOXSIZE, FXDEMOYSIZE,
00062     -WERDWIDTH, WERDWIDTH, -BLN_MAX, BLN_MAX,
00063     TRUE, FALSE, TRUE, TRUE);
00064   vdc_extent (fx_win, -DECENT_WERD_WIDTH,
00065     bln_baseline_offset - bln_x_height,
00066     DECENT_WERD_WIDTH, 2 * bln_x_height + bln_baseline_offset);
00067 }

void create_fxdebug_win (  ) 

NOP! Create the fx window used to show the fit.

Definition at line 91 of file drawfx.cpp.

00091                           {  //make gradients win
00092   //      if (strcmp(fx_debugfile.string(),DEBUG_WIN_NAME)==0)
00093   //              fx_debug=create_debug_window(fx_debugfile.string(),
00094   //                      DEBUG_XPOS,DEBUG_YPOS,
00095   //                      DEBUG_XSIZE,DEBUG_YSIZE);
00096   //      else
00097   //              fx_debug=fopen(fx_debugfile.string(),"w");
00098 }


Variable Documentation

EXTERN FILE* fx_debug = NULL

Definition at line 51 of file drawfx.cpp.

EXTERN WINDOW fx_win = NO_WINDOW

Definition at line 50 of file drawfx.cpp.

Referenced by classify_word_pass2(), clear_fx_win(), and create_fx_win().


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