Clears the given window and draws the featurespace guides for the appropriate normalization method.
| 1093 | /// Clears the given window and draws the featurespace guides for the |
| 1094 | /// appropriate normalization method. |
| 1095 | void ClearFeatureSpaceWindow(NORM_METHOD norm_method, ScrollView* window) { |
| 1096 | window->Clear(); |
| 1097 | |
| 1098 | window->Pen(ScrollView::GREY); |
| 1099 | // Draw the feature space limit rectangle. |
| 1100 | window->Rectangle(0, 0, INT_MAX_X, INT_MAX_Y); |
| 1101 | if (norm_method == baseline) { |
| 1102 | window->SetCursor(0, INT_DESCENDER); |
| 1103 | window->DrawTo(INT_MAX_X, INT_DESCENDER); |
| 1104 | window->SetCursor(0, INT_BASELINE); |
| 1105 | window->DrawTo(INT_MAX_X, INT_BASELINE); |
| 1106 | window->SetCursor(0, INT_XHEIGHT); |
| 1107 | window->DrawTo(INT_MAX_X, INT_XHEIGHT); |
| 1108 | window->SetCursor(0, INT_CAPHEIGHT); |
| 1109 | window->DrawTo(INT_MAX_X, INT_CAPHEIGHT); |
| 1110 | } else { |
| 1111 | window->Rectangle(INT_XCENTER - INT_XRADIUS, INT_YCENTER - INT_YRADIUS, |
| 1112 | INT_XCENTER + INT_XRADIUS, INT_YCENTER + INT_YRADIUS); |
| 1113 | } |
| 1114 | } |
| 1115 | #endif |
| 1116 | |
| 1117 | /** |