Debian Codegraph @

sys/Graphics_utils.cpp

raw symbols SCIP
1 /* Graphics_utils.cpp
2 *
3 * Copyright (C) 1992-2007,2009-2012,2015-2021,2026 Paul Boersma
4 *
5 * This code is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or (at
8 * your option) any later version.
9 *
10 * This code is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this work. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #include "GraphicsP.h"cxx . . $ `<file>/sys/GraphicsP.h`/
20
21 /***** UTILITIES: *****/
22 /***** THESE FUNCTIONS OUTPUT TO CURRENT GRAPHICS BY CALLING PRIMITIVES. *****/
23 /***** THE TWO UTILITIES "Graphics_grey" AND "Graphics_altitude" *****/
24 /***** ARE IN DIFFERENT FILES BECAUSE THEY NEED LOCAL SUBROUTINES. *****/
25
26 /********** Utility functions. **********/
27
28 /********** Drawing into margins. **********/
29
30 void Graphics_drawInnerBoxcxx . . $ Graphics_drawInnerBox(2d838ed765120c5d). (Graphicscxx . . $ Graphics# me) {
31 const double original_x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., original_x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., original_y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., original_y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
32 const int original_lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
33 const double original_lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
34 const MelderColourcxx . . $ MelderColour# original_colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
35
36 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
37 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, 0.0, 1.0, 0.0, 1.0);
38 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
39 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * original_lineWidth);
40 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
41 Graphics_rectanglecxx . . $ Graphics_rectangle(72bdb7937dbb13da). (me, 0.0, 1.0, 0.0, 1.0);
42 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
43
44 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, original_x1WC, original_x2WC, original_y1WC, original_y2WC);
45 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, original_lineType);
46 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, original_lineWidth);
47 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, original_colour);
48 }
49
50 void Graphics_textLeftcxx . . $ Graphics_textLeft(48cf1f690ec61203). (Graphicscxx . . $ Graphics# me, bool farr, conststring32cxx . . $ conststring32# text) {
51 const double original_x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., original_x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., original_y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., original_y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
52 const int vert = ( farr ? Graphics_TOPcxx . . $ `sys/Graphics.h:254:9`! : Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`! );
53 const MelderColourcxx . . $ MelderColour# original_colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
54
55 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
56 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, 0.0, 1.0, 0.0, 1.0);
57 Graphics_setTextRotationcxx . . $ Graphics_setTextRotation(2514a1c07b6be5e2). (me, 90.0);
58 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, vert);
59 if (! farr)
60 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
61 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, 0.0, 0.5, text);
62 if (! farr)
63 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
64
65 Graphics_setTextRotationcxx . . $ Graphics_setTextRotation(2514a1c07b6be5e2). (me, 0.0);
66 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, original_x1WC, original_x2WC, original_y1WC, original_y2WC);
67 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, original_colour);
68 }
69
70 void Graphics_textRightcxx . . $ Graphics_textRight(48cf1f690ec61203). (Graphicscxx . . $ Graphics# me, bool farr, conststring32cxx . . $ conststring32# text) {
71 const double original_x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., original_x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., original_y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., original_y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
72 const int vert = ( farr ? Graphics_TOPcxx . . $ `sys/Graphics.h:254:9`! : Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`! );
73 const MelderColourcxx . . $ MelderColour# original_colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
74
75 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, 0.0, 1.0, 0.0, 1.0);
76 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
77 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, vert);
78 Graphics_setTextRotationcxx . . $ Graphics_setTextRotation(2514a1c07b6be5e2). (me, 270.0);
79 if (! farr)
80 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
81 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, 1.0, 0.5, text);
82 if (! farr)
83 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
84
85 Graphics_setTextRotationcxx . . $ Graphics_setTextRotation(2514a1c07b6be5e2). (me, 0.0);
86 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, original_x1WC, original_x2WC, original_y1WC, original_y2WC);
87 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, original_colour);
88 }
89
90 void Graphics_textBottomcxx . . $ Graphics_textBottom(48cf1f690ec61203). (Graphicscxx . . $ Graphics# me, bool farr, conststring32cxx . . $ conststring32# text) {
91 const double original_x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., original_x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., original_y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., original_y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
92 const MelderColourcxx . . $ MelderColour# original_colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
93
94 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, 0.0, 1.0, 0.0, 1.0);
95 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
96 if (farr) {
97 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
98 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, 0.5, 0.0, text);
99 } else {
100 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_TOPcxx . . $ `sys/Graphics.h:254:9`!);
101 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
102 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, 0.5, - mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., text);
103 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
104 }
105
106 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, original_x1WC, original_x2WC, original_y1WC, original_y2WC);
107 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, original_colour);
108 }
109
110 void Graphics_textTopcxx . . $ Graphics_textTop(48cf1f690ec61203). (Graphicscxx . . $ Graphics# me, bool farr, conststring32cxx . . $ conststring32# text) {
111 const double original_x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., original_x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., original_y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., original_y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
112 const MelderColourcxx . . $ MelderColour# original_colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
113
114 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, 0.0, 1.0, 0.0, 1.0);
115 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
116 if (farr) {
117 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_TOPcxx . . $ `sys/Graphics.h:254:9`!);
118 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, 0.5, 1.0, text);
119 } else {
120 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
121 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
122 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, 0.5, 1.0 + mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., text);
123 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
124 }
125
126 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, original_x1WC, original_x2WC, original_y1WC, original_y2WC);
127 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, original_colour);
128 }
129
130 void Graphics_marksLeftcxx . . $ Graphics_marksLeft(c3a11a8a55b243ff). (Graphicscxx . . $ Graphics# me, integercxx . . $ integer# numberOfMarks, bool haveNumbers, bool haveTicks, bool haveDottedLines) {
131 const double original_x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., original_x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., original_y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., original_y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
132 const int original_lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
133 const double original_lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
134 const MelderColourcxx . . $ MelderColour# original_colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
135 if (numberOfMarks < 2)
136 return;
137
138 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, 0.0, 1.0, original_y1WC, original_y2WC);
139 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
140 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_RIGHTcxx . . $ `sys/Graphics.h:251:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!);
141 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
142 if (haveTicks) {
143 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
144 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * original_lineWidth);
145 }
146 for (int i = 1; i <= numberOfMarks; i ++) {
147 const double f = (i - 1.0) / (numberOfMarks - 1);
148 const double yWC = original_y1WC + (original_y2WC - original_y1WC) * f;
149 if (haveNumbers)
150 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, - mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., yWC, Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (yWC));
151 if (haveTicks)
152 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, - mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., yWC, 0, yWC);
153 }
154 if (haveTicks)
155 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, original_lineWidth);
156 if (haveDottedLines && numberOfMarks > 2) {
157 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
158 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * original_lineWidth);
159 for (int i = 2; i < numberOfMarks; i ++) {
160 const double f = (i - 1.0) / (numberOfMarks - 1);
161 const double yWC = original_y1WC + (original_y2WC - original_y1WC) * f;
162 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, 0.0, yWC, 1.0, yWC);
163 }
164 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, original_lineWidth);
165 }
166 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
167
168 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, original_x1WC, original_x2WC, original_y1WC, original_y2WC);
169 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, original_lineType);
170 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, original_colour);
171 }
172
173 void Graphics_marksRightcxx . . $ Graphics_marksRight(c3a11a8a55b243ff). (Graphicscxx . . $ Graphics# me, integercxx . . $ integer# numberOfMarks, bool haveNumbers, bool haveTicks, bool haveDottedLines) {
174 const double original_x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., original_x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., original_y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., original_y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
175 const int original_lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
176 const double original_lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
177 const MelderColourcxx . . $ MelderColour# original_colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
178 if (numberOfMarks < 2)
179 return;
180
181 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, 0.0, 1.0, original_y1WC, original_y2WC);
182 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
183 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_LEFTcxx . . $ `sys/Graphics.h:249:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!);
184 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
185 if (haveTicks) {
186 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
187 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * original_lineWidth);
188 }
189 for (int i = 1; i <= numberOfMarks; i ++) {
190 const double f = (i - 1.0) / (numberOfMarks - 1);
191 const double yWC = original_y1WC + (original_y2WC - original_y1WC) * f;
192 if (haveNumbers)
193 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, 1.0 + mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., yWC, Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (yWC));
194 if (haveTicks)
195 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, 1.0, yWC, 1.0 + mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., yWC);
196 }
197 if (haveTicks)
198 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, original_lineWidth);
199 if (haveDottedLines && numberOfMarks > 2) {
200 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
201 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * original_lineWidth);
202 for (int i = 2; i < numberOfMarks; i ++) {
203 const double f = (i - 1.0) / (numberOfMarks - 1);
204 const double yWC = original_y1WC + (original_y2WC - original_y1WC) * f;
205 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, 0.0, yWC, 1.0, yWC);
206 }
207 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, original_lineWidth);
208 }
209 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
210
211 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, original_x1WC, original_x2WC, original_y1WC, original_y2WC);
212 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, original_lineType);
213 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, original_colour);
214 }
215
216 void Graphics_marksBottomcxx . . $ Graphics_marksBottom(c3a11a8a55b243ff). (Graphicscxx . . $ Graphics# me, integercxx . . $ integer# numberOfMarks, bool haveNumbers, bool haveTicks, bool haveDottedLines) {
217 const double original_x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., original_x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., original_y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., original_y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
218 int original_lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
219 const double original_lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
220 const MelderColourcxx . . $ MelderColour# original_colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
221 if (numberOfMarks < 2)
222 return;
223
224 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, original_x1WC, original_x2WC, 0.0, 1.0);
225 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
226 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_TOPcxx . . $ `sys/Graphics.h:254:9`!);
227 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
228 if (haveTicks) {
229 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
230 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * original_lineWidth);
231 }
232 for (int i = 1; i <= numberOfMarks; i ++) {
233 const double f = (i - 1.0) / (numberOfMarks - 1);
234 const double xWC = original_x1WC + (original_x2WC - original_x1WC) * f;
235 if (haveNumbers)
236 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, xWC, - mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (xWC));
237 if (haveTicks)
238 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, xWC, - mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., xWC, 0);
239 }
240 if (haveTicks)
241 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, original_lineWidth);
242 if (haveDottedLines && numberOfMarks > 2) {
243 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
244 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * original_lineWidth);
245 for (int i = 2; i < numberOfMarks; i ++) {
246 const double f = (i - 1.0) / (numberOfMarks - 1);
247 const double xWC = original_x1WC + (original_x2WC - original_x1WC) * f;
248 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, xWC, 0.0, xWC, 1.0);
249 }
250 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, original_lineWidth);
251 }
252 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
253
254 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, original_x1WC, original_x2WC, original_y1WC, original_y2WC);
255 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, original_lineType);
256 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, original_colour);
257 }
258
259 void Graphics_marksTopcxx . . $ Graphics_marksTop(c3a11a8a55b243ff). (Graphicscxx . . $ Graphics# me, integercxx . . $ integer# numberOfMarks, bool haveNumbers, bool haveTicks, bool haveDottedLines) {
260 const double original_x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., original_x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., original_y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., original_y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
261 const int original_lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
262 const double original_lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
263 const MelderColourcxx . . $ MelderColour# original_colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
264 if (numberOfMarks < 2)
265 return;
266
267 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, original_x1WC, original_x2WC, 0.0, 1.0);
268 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
269 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
270 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
271 if (haveTicks) {
272 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
273 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * original_lineWidth);
274 }
275 for (int i = 1; i <= numberOfMarks; i ++) {
276 const double f = (i - 1.0) / (numberOfMarks - 1);
277 const double xWC = original_x1WC + (original_x2WC - original_x1WC) * f;
278 if (haveNumbers)
279 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, xWC, 1.0 + mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (xWC));
280 if (haveTicks)
281 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, xWC, 1.0, xWC, 1.0 + mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick.);
282 }
283 if (haveTicks)
284 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, original_lineWidth);
285 if (haveDottedLines && numberOfMarks > 2) {
286 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
287 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * original_lineWidth);
288 for (int i = 2; i < numberOfMarks; i ++) {
289 const double f = (i - 1.0) / (numberOfMarks - 1);
290 const double xWC = original_x1WC + (original_x2WC - original_x1WC) * f;
291 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, xWC, 0.0, xWC, 1.0);
292 }
293 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, original_lineWidth);
294 }
295 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
296
297 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, original_x1WC, original_x2WC, original_y1WC, original_y2WC);
298 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, original_lineType);
299 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, original_colour);
300 }
301
302 #define MAXNUM_MARKS_PER_DECADEcxx . . $ `sys/Graphics_utils.cpp:302:9`! 7
303 static double decade_ycxx . . $ decade_y. [1 + MAXNUM_MARKS_PER_DECADEcxx . . $ `sys/Graphics_utils.cpp:302:9`!] [1 + MAXNUM_MARKS_PER_DECADEcxx . . $ `sys/Graphics_utils.cpp:302:9`!] = {
304 { 0 },
305 { 0, 10 },
306 { 0, 10, 30 },
307 { 0, 10, 20, 50 },
308 { 0, 10, 20, 30, 50 },
309 { 0, 10, 20, 30, 50, 70 },
310 { 0, 10, 15, 20, 30, 50, 70 },
311 { 0, 10, 15, 20, 30, 40, 50, 70 }
312 };
313
314 void Graphics_marksLeftLogarithmiccxx . . $ Graphics_marksLeftLogarithmic(c3a11a8a55b243ff). (Graphicscxx . . $ Graphics# me, integercxx . . $ integer# numberOfMarksPerDecade, bool haveNumbers, bool haveTicks, bool haveDottedLines) {
315 const double x1 = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., x2 = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., y1 = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., y2 = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
316 const int lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
317 const double lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
318 const MelderColourcxx . . $ MelderColour# colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
319 Melder_clipcxx . . $ Melder_clip(971c667ea412f82c). (1_integercxx . . $ `operator""_integer`(85240eb457c3721a)., & numberOfMarksPerDecade, integercxx . . $ integer# (MAXNUM_MARKS_PER_DECADEcxx . . $ `sys/Graphics_utils.cpp:302:9`!));
320 if (y1 > 300.0 || y2 > 300.0)
321 return;
322
323 const double py1 = powcxx . . $ pow(b71928d39fde4295). (10.0, y1 + ( y1 < y2 ? -1e-6 : 1e-6 ));
324 const double py2 = powcxx . . $ pow(b71928d39fde4295). (10.0, y2 + ( y1 < y2 ? 1e-6 : -1e-6 ));
325 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, 0, 1, y1, y2);
326 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
327 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_RIGHTcxx . . $ `sys/Graphics.h:251:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!);
328 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
329 for (int i = 1; i <= numberOfMarksPerDecade; i ++) {
330 double y = decade_ycxx . . $ decade_y. [numberOfMarksPerDecade] [i];
331 while (y < (y1<y2?py1:py2))
332 y *= 10.0;
333 while (y >= (y1<y2?py1:py2))
334 y /= 10.0;
335 for (y *= 10.0; y <= (y1<y2?py2:py1); y *= 10.0) {
336 if (haveNumbers)
337 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, - mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., log10cxx . . $ log10(fee4f1d22bc8e617). (y), Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (y));
338 if (haveTicks) {
339 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * lineWidth);
340 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
341 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, - mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., log10cxx . . $ log10(fee4f1d22bc8e617). (y), 0, log10cxx . . $ log10(fee4f1d22bc8e617). (y));
342 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
343 }
344 if (haveDottedLines) {
345 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
346 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * lineWidth);
347 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, 0.0, log10cxx . . $ log10(fee4f1d22bc8e617). (y), 1.0, log10cxx . . $ log10(fee4f1d22bc8e617). (y));
348 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, lineType);
349 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
350 }
351 }
352 }
353 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
354
355 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1, x2, y1, y2);
356 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, colour);
357 }
358
359 void Graphics_marksRightLogarithmiccxx . . $ Graphics_marksRightLogarithmic(c3a11a8a55b243ff). (Graphicscxx . . $ Graphics# me, integercxx . . $ integer# numberOfMarksPerDecade, bool haveNumbers, bool haveTicks, bool haveDottedLines) {
360 const double x1 = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., x2 = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., y1 = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., y2 = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
361 const int lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
362 const double lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
363 const MelderColourcxx . . $ MelderColour# colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
364 Melder_clipcxx . . $ Melder_clip(971c667ea412f82c). (1_integercxx . . $ `operator""_integer`(85240eb457c3721a)., & numberOfMarksPerDecade, integercxx . . $ integer# (MAXNUM_MARKS_PER_DECADEcxx . . $ `sys/Graphics_utils.cpp:302:9`!));
365 if (y1 > 300.0 || y2 > 300.0)
366 return;
367
368 const double py1 = powcxx . . $ pow(b71928d39fde4295). (10.0, y1 + ( y1 < y2 ? -1e-6 : 1e-6 ));
369 const double py2 = powcxx . . $ pow(b71928d39fde4295). (10.0, y2 + ( y1 < y2 ? 1e-6 : -1e-6 ));
370 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, 0.0, 1.0, y1, y2);
371 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
372 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_LEFTcxx . . $ `sys/Graphics.h:249:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!);
373 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
374 for (int i = 1; i <= numberOfMarksPerDecade; i ++) {
375 double y = decade_ycxx . . $ decade_y. [numberOfMarksPerDecade] [i];
376 while (y < (y1<y2?py1:py2))
377 y *= 10.0;
378 while (y >= (y1<y2?py1:py2))
379 y /= 10.0;
380 for (y *= 10.0; y <= (y1<y2?py2:py1); y *= 10.0) {
381 if (haveNumbers)
382 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, 1.0 + mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., log10cxx . . $ log10(fee4f1d22bc8e617). (y), Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (y));
383 if (haveTicks) {
384 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * lineWidth);
385 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
386 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, 1.0, log10cxx . . $ log10(fee4f1d22bc8e617). (y), 1.0 + mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., log10cxx . . $ log10(fee4f1d22bc8e617). (y));
387 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
388 }
389 if (haveDottedLines) {
390 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
391 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * lineWidth);
392 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, 0.0, log10cxx . . $ log10(fee4f1d22bc8e617). (y), 1.0, log10cxx . . $ log10(fee4f1d22bc8e617). (y));
393 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, lineType);
394 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
395 }
396 }
397 }
398 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
399
400 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1, x2, y1, y2);
401 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, colour);
402 }
403
404 void Graphics_marksTopLogarithmiccxx . . $ Graphics_marksTopLogarithmic(c3a11a8a55b243ff). (Graphicscxx . . $ Graphics# me, integercxx . . $ integer# numberOfMarksPerDecade, bool haveNumbers, bool haveTicks, bool haveDottedLines) {
405 const double x1 = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., x2 = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., y1 = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., y2 = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
406 const int lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
407 const double lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
408 const MelderColourcxx . . $ MelderColour# colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
409 Melder_clipcxx . . $ Melder_clip(971c667ea412f82c). (1_integercxx . . $ `operator""_integer`(85240eb457c3721a)., & numberOfMarksPerDecade, integercxx . . $ integer# (MAXNUM_MARKS_PER_DECADEcxx . . $ `sys/Graphics_utils.cpp:302:9`!));
410 if (x1 > 300.0 || x2 > 300.0)
411 return;
412
413 const double px1 = powcxx . . $ pow(b71928d39fde4295). (10.0, x1 + ( x1 < x2 ? -1e-6 : 1e-6 ));
414 const double px2 = powcxx . . $ pow(b71928d39fde4295). (10.0, x2 + ( x1 < x2 ? 1e-6 : -1e-6 ));
415 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1, x2, 0.0, 1.0);
416 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
417 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
418 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
419 for (int i = 1; i <= numberOfMarksPerDecade; i ++) {
420 double x = decade_ycxx . . $ decade_y. [numberOfMarksPerDecade] [i];
421 while (x < (x1<x2?px1:px2))
422 x *= 10.0;
423 while (x >= (x1<x2?px1:px2))
424 x /= 10.0;
425 for (x *= 10.0; x <= (x1<x2?px2:px1); x *= 10.0) {
426 if (haveNumbers)
427 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, log10cxx . . $ log10(fee4f1d22bc8e617). (x), 1.0 + mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (x));
428 if (haveTicks) {
429 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * lineWidth);
430 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
431 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, log10cxx . . $ log10(fee4f1d22bc8e617). (x), 1.0, log10cxx . . $ log10(fee4f1d22bc8e617). (x), 1.0 + mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick.);
432 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
433 }
434 if (haveDottedLines) {
435 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
436 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * lineWidth);
437 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, log10cxx . . $ log10(fee4f1d22bc8e617). (x), 0.0, log10cxx . . $ log10(fee4f1d22bc8e617). (x), 1.0);
438 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, lineType);
439 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
440 }
441 }
442 }
443 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
444
445 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1, x2, y1, y2);
446 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, colour);
447 }
448
449 void Graphics_marksBottomLogarithmiccxx . . $ Graphics_marksBottomLogarithmic(c3a11a8a55b243ff). (Graphicscxx . . $ Graphics# me, integercxx . . $ integer# numberOfMarksPerDecade, bool haveNumbers, bool haveTicks, bool haveDottedLines) {
450 const double x1 = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., x2 = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., y1 = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., y2 = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
451 const int lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
452 const double lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
453 const MelderColourcxx . . $ MelderColour# colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
454 Melder_clipcxx . . $ Melder_clip(971c667ea412f82c). (1_integercxx . . $ `operator""_integer`(85240eb457c3721a)., & numberOfMarksPerDecade, integercxx . . $ integer# (MAXNUM_MARKS_PER_DECADEcxx . . $ `sys/Graphics_utils.cpp:302:9`!));
455 if (x1 > 300.0 || x2 > 300.0)
456 return;
457
458 const double px1 = powcxx . . $ pow(b71928d39fde4295). (10.0, x1 + ( x1 < x2 ? -1e-6 : 1e-6 ));
459 const double px2 = powcxx . . $ pow(b71928d39fde4295). (10.0, x2 + ( x1 < x2 ? 1e-6 : -1e-6 ));
460 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1, x2, 0, 1);
461 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
462 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_TOPcxx . . $ `sys/Graphics.h:254:9`!);
463 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
464 for (int i = 1; i <= numberOfMarksPerDecade; i ++) {
465 double x = decade_ycxx . . $ decade_y. [numberOfMarksPerDecade] [i];
466 while (x < (x1<x2?px1:px2))
467 x *= 10.0;
468 while (x >= (x1<x2?px1:px2))
469 x /= 10.0;
470 for (x *= 10.0; x <= (x1<x2?px2:px1); x *= 10.0) {
471 if (haveNumbers)
472 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, log10cxx . . $ log10(fee4f1d22bc8e617). (x), - mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (x));
473 if (haveTicks) {
474 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * lineWidth);
475 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
476 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, log10cxx . . $ log10(fee4f1d22bc8e617). (x), - mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., log10cxx . . $ log10(fee4f1d22bc8e617). (x), 0.0);
477 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
478 }
479 if (haveDottedLines) {
480 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
481 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * lineWidth);
482 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, log10cxx . . $ log10(fee4f1d22bc8e617). (x), 0.0, log10cxx . . $ log10(fee4f1d22bc8e617). (x), 1.0);
483 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, lineType);
484 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
485 }
486 }
487 }
488 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
489
490 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1, x2, y1, y2);
491 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, colour);
492 }
493
494 void Graphics_markLeftcxx . . $ Graphics_markLeft(e82cc8dc402e8bd7). (Graphicscxx . . $ Graphics# me, double position, bool hasNumber, bool hasTick, bool hasDottedLine, conststring32cxx . . $ conststring32# text /* cattable */) {
495 const double x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
496 const int lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
497 const double lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
498 const MelderColourcxx . . $ MelderColour# colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
499
500 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, 0.0, 1.0, y1WC, y2WC);
501 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
502 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_RIGHTcxx . . $ `sys/Graphics.h:251:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!);
503 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
504 if (hasNumber)
505 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, - mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., position, Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (position));
506 if (hasTick) {
507 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
508 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * lineWidth);
509 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, - mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., position, 0.0, position);
510 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
511 }
512 if (hasDottedLine) {
513 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
514 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * lineWidth);
515 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, 0.0, position, 1.0, position);
516 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
517 }
518 if (text && text [0])
519 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, - mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., position, text); // 'text' has to stay valid until here; no Graphics is allowed to use the cat buffer!
520 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
521
522 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1WC, x2WC, y1WC, y2WC);
523 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, lineType);
524 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, colour);
525 }
526
527 void Graphics_markRightcxx . . $ Graphics_markRight(e82cc8dc402e8bd7). (Graphicscxx . . $ Graphics# me, double position, bool hasNumber, bool hasTick, bool hasDottedLine, conststring32cxx . . $ conststring32# text /* cattable */) {
528 const double x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
529 const int lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
530 const double lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
531 const MelderColourcxx . . $ MelderColour# colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
532
533 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, 0.0, 1.0, y1WC, y2WC);
534 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
535 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_LEFTcxx . . $ `sys/Graphics.h:249:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!);
536 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
537 if (hasNumber)
538 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, 1.0 + mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., position, Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (position));
539 if (hasTick) {
540 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
541 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * lineWidth);
542 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, 1.0, position, 1.0 + mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., position);
543 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
544 }
545 if (hasDottedLine) {
546 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
547 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * lineWidth);
548 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, 0.0, position, 1.0, position);
549 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
550 }
551 if (text && text [0])
552 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, 1.0 + mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., position, text);
553 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
554
555 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1WC, x2WC, y1WC, y2WC);
556 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, lineType);
557 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, colour);
558 }
559
560 void Graphics_markTopcxx . . $ Graphics_markTop(e82cc8dc402e8bd7). (Graphicscxx . . $ Graphics# me, double position, bool hasNumber, bool hasTick, bool hasDottedLine, conststring32cxx . . $ conststring32# text /* cattable */) {
561 const double x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
562 const int lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
563 const double lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
564 const MelderColourcxx . . $ MelderColour# colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
565
566 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1WC, x2WC, 0.0, 1.0);
567 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
568 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
569 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
570 if (hasNumber)
571 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, position, 1.0 + mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., Melder_graphicalSinglecxx . . $ Melder_graphicalSingle(f05d861d9dbec9b2). (position));
572 if (hasTick) {
573 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
574 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * lineWidth);
575 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, position, 1.0, position, 1.0 + mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick.);
576 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
577 }
578 if (hasDottedLine) {
579 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
580 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * lineWidth);
581 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, position, 0.0, position, 1.0);
582 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
583 }
584 if (text && text [0])
585 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, position, 1.0 + mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., text);
586 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
587
588 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1WC, x2WC, y1WC, y2WC);
589 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, lineType);
590 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, colour);
591 }
592
593 void Graphics_markBottomcxx . . $ Graphics_markBottom(e82cc8dc402e8bd7). (Graphicscxx . . $ Graphics# me, double position, bool hasNumber, bool hasTick, bool hasDottedLine, conststring32cxx . . $ conststring32# text /* cattable */) {
594 const double x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
595 const int lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
596 const double lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
597 const MelderColourcxx . . $ MelderColour# colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
598
599 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1WC, x2WC, 0.0, 1.0);
600 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
601 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_TOPcxx . . $ `sys/Graphics.h:254:9`!);
602 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
603 if (hasNumber)
604 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, position, - mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., Melder_graphicalSinglecxx . . $ Melder_graphicalSingle(f05d861d9dbec9b2). (position));
605 if (hasTick) {
606 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
607 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * lineWidth);
608 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, position, - mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., position, 0.0);
609 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
610 }
611 if (hasDottedLine) {
612 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
613 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * lineWidth);
614 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, position, 0.0, position, 1.0);
615 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
616 }
617 if (text && text [0])
618 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, position, - mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., text);
619 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
620
621 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1WC, x2WC, y1WC, y2WC);
622 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, lineType);
623 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, colour);
624 }
625
626 void Graphics_markLeftLogarithmiccxx . . $ Graphics_markLeftLogarithmic(e82cc8dc402e8bd7). (Graphicscxx . . $ Graphics# me, double position, bool hasNumber, bool hasTick, bool hasDottedLine, conststring32cxx . . $ conststring32# text /* cattable */) {
627 const double x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
628 const int lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
629 const double lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
630 const MelderColourcxx . . $ MelderColour# colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
631 if (position <= 0.0)
632 return;
633
634 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, 0.0, 1.0, y1WC, y2WC);
635 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
636 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_RIGHTcxx . . $ `sys/Graphics.h:251:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!);
637 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
638 if (hasNumber)
639 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, - mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., log10cxx . . $ log10(fee4f1d22bc8e617). (position), Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (position));
640 if (hasTick) {
641 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
642 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * lineWidth);
643 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, - mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., log10cxx . . $ log10(fee4f1d22bc8e617). (position), 0.0, log10cxx . . $ log10(fee4f1d22bc8e617). (position));
644 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
645 }
646 if (hasDottedLine) {
647 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
648 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * lineWidth);
649 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, 0.0, log10cxx . . $ log10(fee4f1d22bc8e617). (position), 1.0, log10cxx . . $ log10(fee4f1d22bc8e617). (position));
650 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
651 }
652 if (text && text [0])
653 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, - mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., log10cxx . . $ log10(fee4f1d22bc8e617). (position), text);
654 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
655
656 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1WC, x2WC, y1WC, y2WC);
657 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, lineType);
658 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, colour);
659 }
660
661 void Graphics_markRightLogarithmiccxx . . $ Graphics_markRightLogarithmic(e82cc8dc402e8bd7). (Graphicscxx . . $ Graphics# me, double position, bool hasNumber, bool hasTick, bool hasDottedLine, conststring32cxx . . $ conststring32# text /* cattable */) {
662 const double x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
663 const int lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
664 const double lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
665 const MelderColourcxx . . $ MelderColour# colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
666 if (position <= 0.0)
667 return;
668
669 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, 0.0, 1.0, y1WC, y2WC);
670 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
671 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_LEFTcxx . . $ `sys/Graphics.h:249:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!);
672 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
673 if (hasNumber)
674 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, 1.0 + mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., log10cxx . . $ log10(fee4f1d22bc8e617). (position), Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (position));
675 if (hasTick) {
676 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
677 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * lineWidth);
678 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, 1.0, log10cxx . . $ log10(fee4f1d22bc8e617). (position), 1.0 + mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., log10cxx . . $ log10(fee4f1d22bc8e617). (position));
679 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
680 }
681 if (hasDottedLine) {
682 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
683 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * lineWidth);
684 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, 0.0, log10cxx . . $ log10(fee4f1d22bc8e617). (position), 1.0, log10cxx . . $ log10(fee4f1d22bc8e617). (position));
685 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
686 }
687 if (text && text [0])
688 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, 1.0 + mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., log10cxx . . $ log10(fee4f1d22bc8e617). (position), text);
689 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
690
691 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1WC, x2WC, y1WC, y2WC);
692 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, lineType);
693 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, colour);
694 }
695
696 void Graphics_markTopLogarithmiccxx . . $ Graphics_markTopLogarithmic(e82cc8dc402e8bd7). (Graphicscxx . . $ Graphics# me, double position, bool hasNumber, bool hasTick, bool hasDottedLine, conststring32cxx . . $ conststring32# text /* cattable */) {
697 const double x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
698 const int lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
699 const double lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
700 const MelderColourcxx . . $ MelderColour# colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
701 if (position <= 0.0)
702 return;
703
704 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1WC, x2WC, 0.0, 1.0);
705 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
706 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
707 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
708 if (hasNumber)
709 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, log10cxx . . $ log10(fee4f1d22bc8e617). (position), 1.0 + mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (position));
710 if (hasTick) {
711 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
712 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * lineWidth);
713 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, log10cxx . . $ log10(fee4f1d22bc8e617). (position), 1.0, log10cxx . . $ log10(fee4f1d22bc8e617). (position), 1.0 + mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick.);
714 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
715 }
716 if (hasDottedLine) {
717 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
718 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * lineWidth);
719 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, log10cxx . . $ log10(fee4f1d22bc8e617). (position), 0.0, log10cxx . . $ log10(fee4f1d22bc8e617). (position), 1.0);
720 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
721 }
722 if (text && text [0])
723 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, log10cxx . . $ log10(fee4f1d22bc8e617). (position), 1.0 + mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., text);
724 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
725
726 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1WC, x2WC, y1WC, y2WC);
727 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, lineType);
728 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, colour);
729 }
730
731 void Graphics_markBottomLogarithmiccxx . . $ Graphics_markBottomLogarithmic(e82cc8dc402e8bd7). (Graphicscxx . . $ Graphics# me, double position, bool hasNumber, bool hasTick, bool hasDottedLine, conststring32cxx . . $ conststring32# text /* cattable */) {
732 const double x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
733 const int lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
734 const double lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
735 const MelderColourcxx . . $ MelderColour# colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
736 if (position <= 0.0)
737 return;
738
739 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1WC, x2WC, 0.0, 1.0);
740 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
741 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_TOPcxx . . $ `sys/Graphics.h:254:9`!);
742 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
743 if (hasNumber)
744 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, log10cxx . . $ log10(fee4f1d22bc8e617). (position), - mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (position));
745 if (hasTick) {
746 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
747 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * lineWidth);
748 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, log10cxx . . $ log10(fee4f1d22bc8e617). (position), - mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., log10cxx . . $ log10(fee4f1d22bc8e617). (position), 0.0);
749 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
750 }
751 if (hasDottedLine) {
752 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
753 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * lineWidth);
754 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, log10cxx . . $ log10(fee4f1d22bc8e617). (position), 0.0, log10cxx . . $ log10(fee4f1d22bc8e617). (position), 1.0);
755 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
756 }
757 if (text && text [0])
758 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, log10cxx . . $ log10(fee4f1d22bc8e617). (position), - mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., text);
759 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
760
761 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1WC, x2WC, y1WC, y2WC);
762 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, lineType);
763 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, colour);
764 }
765
766 void Graphics_marksLeftEverycxx . . $ Graphics_marksLeftEvery(d1b58b4f93ec67ea). (Graphicscxx . . $ Graphics# me, double units, double distance, bool haveNumbers, bool haveTicks, bool haveDottedLines) {
767 const double x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
768 const int lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
769 const double lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
770 const MelderColourcxx . . $ MelderColour# colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
771 distance *= units;
772
773 const integercxx . . $ integer# first = Melder_iceilingcxx . . $ `melder/melder_ftoi.h:45:9`! (( y1WC < y2WC ? y1WC : y2WC ) / distance - 1e-5);
774 const integercxx . . $ integer# last = Melder_ifloorcxx . . $ `melder/melder_ftoi.h:33:9`! (( y1WC < y2WC ? y2WC : y1WC ) / distance + 1e-5);
775 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, 0.0, 1.0, y1WC, y2WC);
776 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
777 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_RIGHTcxx . . $ `sys/Graphics.h:251:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!);
778 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
779 if (haveTicks) {
780 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
781 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * lineWidth);
782 }
783 for (integercxx . . $ integer# i = first; i <= last; i ++) {
784 const double yWC = i * distance;
785 if (haveNumbers)
786 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, - mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., yWC, Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (yWC / units));
787 if (haveTicks)
788 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, - mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., yWC, 0.0, yWC);
789 }
790 if (haveTicks)
791 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
792 if (haveDottedLines) {
793 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
794 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * lineWidth);
795 for (integercxx . . $ integer# i = first; i <= last; i ++) {
796 const double yWC = i * distance;
797 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, 0.0, yWC, 1.0, yWC);
798 }
799 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
800 }
801 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
802
803 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1WC, x2WC, y1WC, y2WC);
804 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, lineType);
805 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, colour);
806 }
807
808 void Graphics_marksRightEverycxx . . $ Graphics_marksRightEvery(d1b58b4f93ec67ea). (Graphicscxx . . $ Graphics# me, double units, double distance, bool haveNumbers, bool haveTicks, bool haveDottedLines) {
809 const double x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
810 const int lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
811 const double lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
812 const MelderColourcxx . . $ MelderColour# colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
813 distance *= units;
814
815 const integercxx . . $ integer# first = Melder_iceilingcxx . . $ `melder/melder_ftoi.h:45:9`! (( y1WC < y2WC ? y1WC : y2WC ) / distance - 1e-5);
816 const integercxx . . $ integer# last = Melder_ifloorcxx . . $ `melder/melder_ftoi.h:33:9`! (( y1WC < y2WC ? y2WC : y1WC ) / distance + 1e-5);
817 if (first > last)
818 return; // TODO: describe why this is. ppgb 2020-10-01
819 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, 0.0, 1.0, y1WC, y2WC);
820 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
821 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_LEFTcxx . . $ `sys/Graphics.h:249:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!);
822 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
823 if (haveTicks) {
824 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
825 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * lineWidth);
826 }
827 for (integercxx . . $ integer# i = first; i <= last; i ++) {
828 const double yWC = i * distance;
829 if (haveNumbers)
830 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, 1.0 + mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., yWC, Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (yWC / units));
831 if (haveTicks)
832 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, 1.0, yWC, 1.0 + mycxx . . $ `melder/melder.h:44:9`! horTickcxx . . $ structGraphics#horTick., yWC);
833 }
834 if (haveTicks)
835 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
836 if (haveDottedLines) {
837 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
838 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * lineWidth);
839 for (integercxx . . $ integer# i = first; i <= last; i ++) {
840 const double yWC = i * distance;
841 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, 0.0, yWC, 1.0, yWC);
842 }
843 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
844 }
845 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
846
847 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1WC, x2WC, y1WC, y2WC);
848 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, lineType);
849 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, colour);
850 }
851
852 void Graphics_marksBottomEverycxx . . $ Graphics_marksBottomEvery(d1b58b4f93ec67ea). (Graphicscxx . . $ Graphics# me, double units, double distance, bool haveNumbers, bool haveTicks, bool haveDottedLines) {
853 const double x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
854 const int lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
855 const double lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
856 const MelderColourcxx . . $ MelderColour# colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
857 distance *= units;
858
859 const integercxx . . $ integer# first = Melder_iceilingcxx . . $ `melder/melder_ftoi.h:45:9`! (( x1WC < x2WC ? x1WC : x2WC ) / distance - 1e-5);
860 const integercxx . . $ integer# last = Melder_ifloorcxx . . $ `melder/melder_ftoi.h:33:9`! (( x1WC < x2WC ? x2WC : x1WC ) / distance + 1e-5);
861 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1WC, x2WC, 0.0, 1.0);
862 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
863 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_TOPcxx . . $ `sys/Graphics.h:254:9`!);
864 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
865 if (haveTicks) {
866 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
867 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * lineWidth);
868 }
869 for (integercxx . . $ integer# i = first; i <= last; i ++) {
870 const double xWC = i * distance;
871 if (haveNumbers)
872 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, xWC, - mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (xWC / units));
873 if (haveTicks)
874 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, xWC, - mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., xWC, 0.0);
875 }
876 if (haveTicks)
877 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
878 if (haveDottedLines) {
879 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
880 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * lineWidth);
881 for (integercxx . . $ integer# i = first; i <= last; i ++) {
882 const double xWC = i * distance;
883 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, xWC, 0.0, xWC, 1.0);
884 }
885 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
886 }
887 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
888
889 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1WC, x2WC, y1WC, y2WC);
890 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, lineType);
891 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, colour);
892 }
893
894 void Graphics_marksTopEverycxx . . $ Graphics_marksTopEvery(d1b58b4f93ec67ea). (Graphicscxx . . $ Graphics# me, double units, double distance, bool haveNumbers, bool haveTicks, bool haveDottedLines) {
895 const double x1WC = mycxx . . $ `melder/melder.h:44:9`! d_x1WCcxx . . $ structGraphics#d_x1WC., x2WC = mycxx . . $ `melder/melder.h:44:9`! d_x2WCcxx . . $ structGraphics#d_x2WC., y1WC = mycxx . . $ `melder/melder.h:44:9`! d_y1WCcxx . . $ structGraphics#d_y1WC., y2WC = mycxx . . $ `melder/melder.h:44:9`! d_y2WCcxx . . $ structGraphics#d_y2WC.;
896 const int lineType = mycxx . . $ `melder/melder.h:44:9`! lineTypecxx . . $ structGraphics#lineType.;
897 const double lineWidth = mycxx . . $ `melder/melder.h:44:9`! lineWidthcxx . . $ structGraphics#lineWidth.;
898 const MelderColourcxx . . $ MelderColour# colour = mycxx . . $ `melder/melder.h:44:9`! colourcxx . . $ structGraphics#colour.;
899 distance *= units;
900
901 const integercxx . . $ integer# first = Melder_iceilingcxx . . $ `melder/melder_ftoi.h:45:9`! (( x1WC < x2WC ? x1WC : x2WC ) / distance - 1e-5);
902 const integercxx . . $ integer# last = Melder_ifloorcxx . . $ `melder/melder_ftoi.h:33:9`! (( x1WC < x2WC ? x2WC : x1WC ) / distance + 1e-5);
903 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1WC, x2WC, 0.0, 1.0);
904 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, Melder_BLACKcxx . . $ Melder_BLACK.);
905 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!);
906 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (me);
907 if (haveTicks) {
908 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
909 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 2.0 * lineWidth);
910 }
911 for (integercxx . . $ integer# i = first; i <= last; i ++) {
912 const double xWC = i * distance;
913 if (haveNumbers)
914 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, xWC, 1.0 + mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick., Melder_graphicalHalfcxx . . $ Melder_graphicalHalf(f05d861d9dbec9b2). (xWC / units));
915 if (haveTicks)
916 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, xWC, 1.0, xWC, 1.0 + mycxx . . $ `melder/melder.h:44:9`! vertTickcxx . . $ structGraphics#vertTick.);
917 }
918 if (haveTicks)
919 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
920 if (haveDottedLines) {
921 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
922 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, 0.67 * lineWidth);
923 for (integercxx . . $ integer# i = first; i <= last; i ++) {
924 const double xWC = i * distance;
925 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, xWC, 0.0, xWC, 1.0);
926 }
927 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (me, lineWidth);
928 }
929 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (me);
930
931 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (me, x1WC, x2WC, y1WC, y2WC);
932 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (me, lineType);
933 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (me, colour);
934 }
935
936 void Graphics_markcxx . . $ Graphics_mark(406417efd31feba3). (Graphicscxx . . $ Graphics# me, double x, double y, double size_mm, conststring32cxx . . $ conststring32# markString /* cattable */) {
937 int mark;
938 if (! markString || ! markString [0])
939 mark = 0;
940 else if (! markString [1]) {
941 if (markString [0] == '+')
942 mark = 1;
943 else if (markString [0] == 'x')
944 mark = 2;
945 else if (markString [0] == 'o')
946 mark = 3;
947 else if (markString [0] == '.')
948 mark = 0;
949 else
950 mark = -1;
951 } else
952 mark = -1;
953 if (mark == -1) {
954 const double oldSize = mycxx . . $ `melder/melder.h:44:9`! fontSizecxx . . $ structGraphics#fontSize.;
955 const int oldHorizontalAlignment = mycxx . . $ `melder/melder.h:44:9`! horizontalTextAlignmentcxx . . $ structGraphics#horizontalTextAlignment.;
956 const int oldVerticalAlignment = mycxx . . $ `melder/melder.h:44:9`! verticalTextAlignmentcxx . . $ structGraphics#verticalTextAlignment.;
957 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (me, size_mm * 72.0 / 25.4);
958 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!);
959 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (me, x, y, markString);
960 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (me, oldSize);
961 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (me, (kGraphics_horizontalAlignmentcxx . . $ kGraphics_horizontalAlignment#) oldHorizontalAlignment, oldVerticalAlignment);
962 } else if (mark == 0) {
963 Graphics_fillCircle_mmcxx . . $ Graphics_fillCircle_mm(8752bb7a78272ca7). (me, x, y, size_mm);
964 } else if (mark == 1) {
965 const double dx = 0.5 * Graphics_dxMMtoWCcxx . . $ Graphics_dxMMtoWC(f042c24bcd87f07e). (me, size_mm);
966 const double dy = 0.5 * Graphics_dyMMtoWCcxx . . $ Graphics_dyMMtoWC(f042c24bcd87f07e). (me, size_mm);
967 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, x - dx, y, x + dx, y);
968 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, x, y - dy, x, y + dy);
969 } else if (mark == 2) {
970 const double dx = 0.4 * Graphics_dxMMtoWCcxx . . $ Graphics_dxMMtoWC(f042c24bcd87f07e). (me, size_mm);
971 const double dy = 0.4 * Graphics_dyMMtoWCcxx . . $ Graphics_dyMMtoWC(f042c24bcd87f07e). (me, size_mm);
972 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, x - dx, y - dy, x + dx, y + dy);
973 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (me, x + dx, y - dy, x - dx, y + dy);
974 } else {
975 Graphics_circle_mmcxx . . $ Graphics_circle_mm(8752bb7a78272ca7). (me, x, y, size_mm);
976 }
977 }
978
979 void Graphics_setTextRotation_vectorcxx . . $ Graphics_setTextRotation_vector(c84ba9158791aef6). (Graphicscxx . . $ Graphics# me, double dx, double dy) {
980 double angle;
981 if (dy == 0.0) {
982 angle = ( dx >= 0.0 ? 0.0 : 180.0 );
983 } else if (dx == 0.0) {
984 angle = ( dy > 0.0 ? 90.0 : 270.0 );
985 } else {
986 const double dxDC = dx * mycxx . . $ `melder/melder.h:44:9`! scaleXcxx . . $ structGraphics#scaleX.;
987 const double dyDC = ( mycxx . . $ `melder/melder.h:44:9`! yIsZeroAtTheTopcxx . . $ structGraphics#yIsZeroAtTheTop. ? -dy * mycxx . . $ `melder/melder.h:44:9`! scaleYcxx . . $ structGraphics#scaleY. : dy * mycxx . . $ `melder/melder.h:44:9`! scaleYcxx . . $ structGraphics#scaleY. );
988 angle = atan2cxx . . $ atan2(b71928d39fde4295). (dyDC, dxDC) * (180.0 / NUMpicxx . . $ NUMpi.);
989 }
990 Graphics_setTextRotationcxx . . $ Graphics_setTextRotation(2514a1c07b6be5e2). (me, angle);
991 }
992
993 /* End of file Graphics_utils.cpp */