#include "mfcpch.h"
#include "debugwin.h"
#include "werd.h"
#include "drawfx.h"
Go to the source code of this file.
#define BLN_MAX 512 |
#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) |
#define EXTERN |
Definition at line 43 of file drawfx.cpp.
#define FXDEMOWIN "FXDemo" |
* (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 |
#define FXDEMOXSIZE 400 |
#define FXDEMOYPOS 0 |
#define FXDEMOYSIZE 150 |
#define MAXEDGELENGTH 1024 |
Definition at line 41 of file drawfx.cpp.
#define WERDWIDTH (BLN_MAX*20) |
#define XMAX 2550 |
Definition at line 40 of file drawfx.cpp.
#define YMAX 3508 |
Definition at line 39 of file drawfx.cpp.
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 }
Definition at line 51 of file drawfx.cpp.
Definition at line 50 of file drawfx.cpp.
Referenced by classify_word_pass2(), clear_fx_win(), and create_fx_win().