lib/App/SeismicUnixGui/sunix/plot/xwigb.pm untested

filter: Statementstmt 0.0% 0 / 356 Branchbran 0.0% 0 / 96 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 54 Podpod 0.0% 0 / 52 totaltotal 0.0% 0 / 558 CC 49 SCAR 17.5
CC
49
Cov
0%
bias
6.0
clip
6.0
curve
6.0
CRAP 5.8
1 package App::SeismicUnixGui::sunix::plot::xwigb;
2  
3 =head1 DOCUMENTATION
4  
5 =head2 SYNOPSIS
6  
7 PERL PROGRAM NAME: XWIGB - X WIGgle-trace plot of f(x1,x2) via Bitmap
8 AUTHOR: Juan Lorenzo (Perl module only)
9 DATE:
10 DESCRIPTION:
11 Version:
12  
13 =head2 USE
14  
15 =head3 NOTES
16  
17 =head4 Examples
18  
19 =head3 SEISMIC UNIX NOTES
20  
21 XWIGB - X WIGgle-trace plot of f(x1,x2) via Bitmap
22  
23 xwigb n1= [optional parameters] <binaryfile
24  
25 X Functionality:
26 Button 1 Zoom with rubberband box
27 Button 2 Show mouse (x1,x2) coordinates while pressed
28 q or Q key Quit
29 s key Save current mouse (x1,x2) location to file
30 p or P key Plot current window with pswigb (only from disk files)
31 a or page up keys enhance clipping by 10%
32 c or page down keys reduce clipping by 10%
33 up,down,left,right keys move zoom window by half width/height
34 i or +(keypad) zoom in by factor 2
35 o or -(keypad) zoom out by factor 2
36 l lock the zoom while moving the coursor
37 u unlock the zoom
38 1,2,...,9 Zoom/Move factor of the window size
39  
40 Notes:
41 Reaching the window limits while moving within changes the zoom
42 factor in this direction. The use of zoom locking(l) disables it
43  
44 Required Parameters:
45 n1 number of samples in 1st (fast) dimension
46  
47 Optional Parameters:
48 d1=1.0 sampling interval in 1st dimension
49 f1=0.0 first sample in 1st dimension
50 n2=all number of samples in 2nd (slow) dimension
51 d2=1.0 sampling interval in 2nd dimension
52 f2=0.0 first sample in 2nd dimension
53 x2=f2,f2+d2,... array of sampled values in 2nd dimension
54 mpicks=/dev/tty file to save mouse picks in
55 bias=0.0 data value corresponding to location along axis 2
56 perc=100.0 percentile for determining clip
57 clip=(perc percentile) data values < bias+clip and > bias-clip are clipped
58 xcur=1.0 wiggle excursion in traces corresponding to clip
59 wt=1 =0 for no wiggle-trace; =1 for wiggle-trace
60 va=1 =0 for no variable-area; =1 for variable-area fill
61 =2 for variable area, solid/grey fill
62 SHADING: 2<=va<=5 va=2 light grey, va=5 black
63 verbose=0 =1 for info printed on stderr (0 for no info)
64 xbox=50 x in pixels of upper left corner of window
65 ybox=50 y in pixels of upper left corner of window
66 wbox=550 width in pixels of window
67 hbox=700 height in pixels of window
68 x1beg=x1min value at which axis 1 begins
69 x1end=x1max value at which axis 1 ends
70 d1num=0.0 numbered tic interval on axis 1 (0.0 for automatic)
71 f1num=x1min first numbered tic on axis 1 (used if d1num not 0.0)
72 n1tic=1 number of tics per numbered tic on axis 1
73 grid1=none grid lines on axis 1 - none, dot, dash, or solid
74 x2beg=x2min value at which axis 2 begins
75 x2end=x2max value at which axis 2 ends
76 d2num=0.0 numbered tic interval on axis 2 (0.0 for automatic)
77 f2num=x2min first numbered tic on axis 2 (used if d2num not 0.0)
78 n2tic=1 number of tics per numbered tic on axis 2
79 grid2=none grid lines on axis 2 - none, dot, dash, or solid
80 label2= label on axis 2
81 labelfont=Erg14 font name for axes labels
82 title= title of plot
83 titlefont=Rom22 font name for title
84 windowtitle=xwigb title on window
85 labelcolor=blue color for axes labels
86 titlecolor=red color for title
87 gridcolor=blue color for grid lines
88 style=seismic normal (axis 1 horizontal, axis 2 vertical) or
89 seismic (axis 1 vertical, axis 2 horizontal)
90 endian= =0 little endian =1 big endian
91 interp=0 no interpolation in display
92 =1 use 8 point sinc interpolation
93 wigclip=0 If 0, the plot box is expanded to accommodate
94 the larger wiggles created by xcur>1. If this
95 flag is non-zero, the extra-large wiggles are
96 are clipped at the boundary of the plot box.
97 plotfile=plotfile.ps filename for interactive ploting (P)
98 curve=curve1,curve2,... file(s) containing points to draw curve(s)
99 npair=n1,n2,n2,... number(s) of pairs in each file
100 curvecolor=color1,color2,... color(s) for curve(s)
101  
102 Notes:
103 Xwigb will try to detect the endian value of the X-display and will
104 set it to the right value. If it gets obviously wrong information the
105 endian value will be set to the endian value of the machine that is
106 given at compile time as the value of CWPENDIAN defined in cwp.h
107 and set via the compile time flag ENDIANFLAG in Makefile.config.
108  
109 The only time that you might want to change the value of the endian
110 variable is if you are viewing traces on a machine with a different
111 byte order than the machine you are creating the traces on AND if for
112 some reason the automaic detection of the display byte order fails.
113 Set endian to that of the machine you are viewing the traces on.
114  
115 The interp flag is useful for making better quality wiggle trace for
116 making plots from screen dumps. However, this flag assumes that the
117 data are purely oscillatory. This option may not be appropriate for all
118 data sets.
119  
120 The curve file is an ascii file with the points specified as x1 x2
121 pairs, separated by a space, one pair to a line. A "vector" of curve
122 files and curve colors may be specified as curvefile=file1,file2,etc.
123 and curvecolor=color1,color2,etc, and the number of pairs of values
124 in each file as npair=npair1,npair2,... .
125  
126  
127 Author: Dave Hale, Colorado School of Mines, 08/09/90
128  
129 Endian stuff by:
130 Morten Wendell Pedersen, Aarhus University (visiting CSM, June 1995)
131 & John Stockwell, Colorado School of Mines, 5 June 1995
132  
133 Stewart A. Levin, Mobil - Added ps print option
134 John Stockwell - Added optional sinc interpolation
135 Stewart A. Levin, Mobil - protect title, labels in pswigb call
136  
137 Brian J. Zook, SwRI - Added style=normal and wigclip flag
138  
139 Brian K. Macy, Phillips Petroleum, 11/27/98, added curve plotting option
140 Curve plotting notes:
141 MODIFIED: P. Michaels, Boise State Univeristy 29 December 2000
142 Added solid/grey color scheme for peaks/troughs
143
144 G.Klein, IFG Kiel University, 2002-09-29, added cursor scrolling and
145 interactive change of zoom and clipping.
146 IFM-GEOMAR Kiel, 2004-03-12, added zoom locking
147 IFM-GEOMAR Kiel, 2004-03-25, interactive plotting fixed
148  
149 =head2 CHANGES and their DATES
150  
151 =cut
152  
153 use Moose;
154 our $VERSION = '0.0.1';
155 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
156  
157 my $get = L_SU_global_constants->new();
158  
159 my $var = $get->var();
160 my $empty_string = $var->{_empty_string};
161  
162 my $xwigb = {
163 _bias => '',
164 _clip => '',
165 _curve => '',
166 _curvecolor => '',
167 _curvefile => '',
168 _d1 => '',
169 _d1num => '',
170 _d2 => '',
171 _d2num => '',
172 _endian => '',
173 _f1 => '',
174 _f1num => '',
175 _f2 => '',
176 _f2num => '',
177 _grid1 => '',
178 _grid2 => '',
179 _gridcolor => '',
180 _hbox => '',
181 _interp => '',
182 _label2 => '',
183 _labelcolor => '',
184 _labelfont => '',
185 _mpicks => '',
186 _n1 => '',
187 _n1tic => '',
188 _n2 => '',
189 _n2tic => '',
190 _npair => '',
191 _perc => '',
192 _plotfile => '',
193 _style => '',
194 _title => '',
195 _titlecolor => '',
196 _titlefont => '',
197 _va => '',
198 _verbose => '',
199 _wbox => '',
200 _wigclip => '',
201 _windowtitle => '',
202 _wt => '',
203 _x1beg => '',
204 _x1end => '',
205 _x2 => '',
206 _x2beg => '',
207 _x2end => '',
208 _xbox => '',
209 _xcur => '',
210 _ybox => '',
211 _Step => '',
212 _note => '',
213 };
214  
215 =head2 sub Step
216  
217 collects switches and assembles bash instructions
218 by adding the program name
219  
220 =cut
221  
222 sub Step {
223  
224 $xwigb->{_Step} = 'xwigb' . $xwigb->{_Step};
225 return ( $xwigb->{_Step} );
226  
227 }
228  
229 =head2 sub note
230  
231 collects switches and assembles bash instructions
232 by adding the program name
233  
234 =cut
235  
236 sub note {
237  
238 $xwigb->{_note} = 'xwigb' . $xwigb->{_note};
239 return ( $xwigb->{_note} );
240  
241 }
242  
243 =head2 sub clear
244  
245 =cut
246  
247 sub clear {
248  
249 $xwigb->{_bias} = '';
250 $xwigb->{_clip} = '';
251 $xwigb->{_curve} = '';
252 $xwigb->{_curvecolor} = '';
253 $xwigb->{_curvefile} = '';
254 $xwigb->{_d1} = '';
255 $xwigb->{_d1num} = '';
256 $xwigb->{_d2} = '';
257 $xwigb->{_d2num} = '';
258 $xwigb->{_endian} = '';
259 $xwigb->{_f1} = '';
260 $xwigb->{_f1num} = '';
261 $xwigb->{_f2} = '';
262 $xwigb->{_f2num} = '';
263 $xwigb->{_grid1} = '';
264 $xwigb->{_grid2} = '';
265 $xwigb->{_gridcolor} = '';
266 $xwigb->{_hbox} = '';
267 $xwigb->{_interp} = '';
268 $xwigb->{_label2} = '';
269 $xwigb->{_labelcolor} = '';
270 $xwigb->{_labelfont} = '';
271 $xwigb->{_mpicks} = '';
272 $xwigb->{_n1} = '';
273 $xwigb->{_n1tic} = '';
274 $xwigb->{_n2} = '';
275 $xwigb->{_n2tic} = '';
276 $xwigb->{_npair} = '';
277 $xwigb->{_perc} = '';
278 $xwigb->{_plotfile} = '';
279 $xwigb->{_style} = '';
280 $xwigb->{_title} = '';
281 $xwigb->{_titlecolor} = '';
282 $xwigb->{_titlefont} = '';
283 $xwigb->{_va} = '';
284 $xwigb->{_verbose} = '';
285 $xwigb->{_wbox} = '';
286 $xwigb->{_wigclip} = '';
287 $xwigb->{_windowtitle} = '';
288 $xwigb->{_wt} = '';
289 $xwigb->{_x1beg} = '';
290 $xwigb->{_x1end} = '';
291 $xwigb->{_x2} = '';
292 $xwigb->{_x2beg} = '';
293 $xwigb->{_x2end} = '';
294 $xwigb->{_xbox} = '';
295 $xwigb->{_xcur} = '';
296 $xwigb->{_ybox} = '';
297 $xwigb->{_Step} = '';
298 $xwigb->{_note} = '';
299 }
300  
301 =head2 sub bias
302  
303  
304 =cut
305  
306 sub bias {
307  
308 my ( $self, $bias ) = @_;
309 if ( $bias ne $empty_string ) {
310  
311 $xwigb->{_bias} = $bias;
312 $xwigb->{_note} = $xwigb->{_note} . ' bias=' . $xwigb->{_bias};
313 $xwigb->{_Step} = $xwigb->{_Step} . ' bias=' . $xwigb->{_bias};
314  
315 }
316 else {
317 print("xwigb, bias, missing bias,\n");
318 }
319 }
320  
321 =head2 sub clip
322  
323  
324 =cut
325  
326 sub clip {
327  
328 my ( $self, $clip ) = @_;
329 if ( $clip ne $empty_string ) {
330  
331 $xwigb->{_clip} = $clip;
332 $xwigb->{_note} = $xwigb->{_note} . ' clip=' . $xwigb->{_clip};
333 $xwigb->{_Step} = $xwigb->{_Step} . ' clip=' . $xwigb->{_clip};
334  
335 }
336 else {
337 print("xwigb, clip, missing clip,\n");
338 }
339 }
340  
341 =head2 sub curve
342  
343  
344 =cut
345  
346 sub curve {
347  
348 my ( $self, $curve ) = @_;
349 if ( $curve ne $empty_string ) {
350  
351 $xwigb->{_curve} = $curve;
352 $xwigb->{_note} = $xwigb->{_note} . ' curve=' . $xwigb->{_curve};
353 $xwigb->{_Step} = $xwigb->{_Step} . ' curve=' . $xwigb->{_curve};
354  
355 }
356 else {
357 print("xwigb, curve, missing curve,\n");
358 }
359 }
360  
361 =head2 sub curvecolor
362  
363  
364 =cut
365  
366 sub curvecolor {
367  
368 my ( $self, $curvecolor ) = @_;
369 if ( $curvecolor ne $empty_string ) {
370  
371 $xwigb->{_curvecolor} = $curvecolor;
372 $xwigb->{_note} =
373 $xwigb->{_note} . ' curvecolor=' . $xwigb->{_curvecolor};
374 $xwigb->{_Step} =
375 $xwigb->{_Step} . ' curvecolor=' . $xwigb->{_curvecolor};
376  
377 }
378 else {
379 print("xwigb, curvecolor, missing curvecolor,\n");
380 }
381 }
382  
383 =head2 sub curvefile
384  
385  
386 =cut
387  
388 sub curvefile {
389  
390 my ( $self, $curvefile ) = @_;
391 if ( $curvefile ne $empty_string ) {
392  
393 $xwigb->{_curvefile} = $curvefile;
394 $xwigb->{_note} =
395 $xwigb->{_note} . ' curvefile=' . $xwigb->{_curvefile};
396 $xwigb->{_Step} =
397 $xwigb->{_Step} . ' curvefile=' . $xwigb->{_curvefile};
398  
399 }
400 else {
401 print("xwigb, curvefile, missing curvefile,\n");
402 }
403 }
404  
405 =head2 sub d1
406  
407  
408 =cut
409  
410 sub d1 {
411  
412 my ( $self, $d1 ) = @_;
413 if ( $d1 ne $empty_string ) {
414  
415 $xwigb->{_d1} = $d1;
416 $xwigb->{_note} = $xwigb->{_note} . ' d1=' . $xwigb->{_d1};
417 $xwigb->{_Step} = $xwigb->{_Step} . ' d1=' . $xwigb->{_d1};
418  
419 }
420 else {
421 print("xwigb, d1, missing d1,\n");
422 }
423 }
424  
425 =head2 sub d1num
426  
427  
428 =cut
429  
430 sub d1num {
431  
432 my ( $self, $d1num ) = @_;
433 if ( $d1num ne $empty_string ) {
434  
435 $xwigb->{_d1num} = $d1num;
436 $xwigb->{_note} = $xwigb->{_note} . ' d1num=' . $xwigb->{_d1num};
437 $xwigb->{_Step} = $xwigb->{_Step} . ' d1num=' . $xwigb->{_d1num};
438  
439 }
440 else {
441 print("xwigb, d1num, missing d1num,\n");
442 }
443 }
444  
445 =head2 sub d2
446  
447  
448 =cut
449  
450 sub d2 {
451  
452 my ( $self, $d2 ) = @_;
453 if ( $d2 ne $empty_string ) {
454  
455 $xwigb->{_d2} = $d2;
456 $xwigb->{_note} = $xwigb->{_note} . ' d2=' . $xwigb->{_d2};
457 $xwigb->{_Step} = $xwigb->{_Step} . ' d2=' . $xwigb->{_d2};
458  
459 }
460 else {
461 print("xwigb, d2, missing d2,\n");
462 }
463 }
464  
465 =head2 sub d2num
466  
467  
468 =cut
469  
470 sub d2num {
471  
472 my ( $self, $d2num ) = @_;
473 if ( $d2num ne $empty_string ) {
474  
475 $xwigb->{_d2num} = $d2num;
476 $xwigb->{_note} = $xwigb->{_note} . ' d2num=' . $xwigb->{_d2num};
477 $xwigb->{_Step} = $xwigb->{_Step} . ' d2num=' . $xwigb->{_d2num};
478  
479 }
480 else {
481 print("xwigb, d2num, missing d2num,\n");
482 }
483 }
484  
485 =head2 sub endian
486  
487  
488 =cut
489  
490 sub endian {
491  
492 my ( $self, $endian ) = @_;
493 if ( $endian ne $empty_string ) {
494  
495 $xwigb->{_endian} = $endian;
496 $xwigb->{_note} = $xwigb->{_note} . ' endian=' . $xwigb->{_endian};
497 $xwigb->{_Step} = $xwigb->{_Step} . ' endian=' . $xwigb->{_endian};
498  
499 }
500 else {
501 print("xwigb, endian, missing endian,\n");
502 }
503 }
504  
505 =head2 sub f1
506  
507  
508 =cut
509  
510 sub f1 {
511  
512 my ( $self, $f1 ) = @_;
513 if ( $f1 ne $empty_string ) {
514  
515 $xwigb->{_f1} = $f1;
516 $xwigb->{_note} = $xwigb->{_note} . ' f1=' . $xwigb->{_f1};
517 $xwigb->{_Step} = $xwigb->{_Step} . ' f1=' . $xwigb->{_f1};
518  
519 }
520 else {
521 print("xwigb, f1, missing f1,\n");
522 }
523 }
524  
525 =head2 sub f1num
526  
527  
528 =cut
529  
530 sub f1num {
531  
532 my ( $self, $f1num ) = @_;
533 if ( $f1num ne $empty_string ) {
534  
535 $xwigb->{_f1num} = $f1num;
536 $xwigb->{_note} = $xwigb->{_note} . ' f1num=' . $xwigb->{_f1num};
537 $xwigb->{_Step} = $xwigb->{_Step} . ' f1num=' . $xwigb->{_f1num};
538  
539 }
540 else {
541 print("xwigb, f1num, missing f1num,\n");
542 }
543 }
544  
545 =head2 sub f2
546  
547  
548 =cut
549  
550 sub f2 {
551  
552 my ( $self, $f2 ) = @_;
553 if ( $f2 ne $empty_string ) {
554  
555 $xwigb->{_f2} = $f2;
556 $xwigb->{_note} = $xwigb->{_note} . ' f2=' . $xwigb->{_f2};
557 $xwigb->{_Step} = $xwigb->{_Step} . ' f2=' . $xwigb->{_f2};
558  
559 }
560 else {
561 print("xwigb, f2, missing f2,\n");
562 }
563 }
564  
565 =head2 sub f2num
566  
567  
568 =cut
569  
570 sub f2num {
571  
572 my ( $self, $f2num ) = @_;
573 if ( $f2num ne $empty_string ) {
574  
575 $xwigb->{_f2num} = $f2num;
576 $xwigb->{_note} = $xwigb->{_note} . ' f2num=' . $xwigb->{_f2num};
577 $xwigb->{_Step} = $xwigb->{_Step} . ' f2num=' . $xwigb->{_f2num};
578  
579 }
580 else {
581 print("xwigb, f2num, missing f2num,\n");
582 }
583 }
584  
585 =head2 sub grid1
586  
587  
588 =cut
589  
590 sub grid1 {
591  
592 my ( $self, $grid1 ) = @_;
593 if ( $grid1 ne $empty_string ) {
594  
595 $xwigb->{_grid1} = $grid1;
596 $xwigb->{_note} = $xwigb->{_note} . ' grid1=' . $xwigb->{_grid1};
597 $xwigb->{_Step} = $xwigb->{_Step} . ' grid1=' . $xwigb->{_grid1};
598  
599 }
600 else {
601 print("xwigb, grid1, missing grid1,\n");
602 }
603 }
604  
605 =head2 sub grid2
606  
607  
608 =cut
609  
610 sub grid2 {
611  
612 my ( $self, $grid2 ) = @_;
613 if ( $grid2 ne $empty_string ) {
614  
615 $xwigb->{_grid2} = $grid2;
616 $xwigb->{_note} = $xwigb->{_note} . ' grid2=' . $xwigb->{_grid2};
617 $xwigb->{_Step} = $xwigb->{_Step} . ' grid2=' . $xwigb->{_grid2};
618  
619 }
620 else {
621 print("xwigb, grid2, missing grid2,\n");
622 }
623 }
624  
625 =head2 sub gridcolor
626  
627  
628 =cut
629  
630 sub gridcolor {
631  
632 my ( $self, $gridcolor ) = @_;
633 if ( $gridcolor ne $empty_string ) {
634  
635 $xwigb->{_gridcolor} = $gridcolor;
636 $xwigb->{_note} =
637 $xwigb->{_note} . ' gridcolor=' . $xwigb->{_gridcolor};
638 $xwigb->{_Step} =
639 $xwigb->{_Step} . ' gridcolor=' . $xwigb->{_gridcolor};
640  
641 }
642 else {
643 print("xwigb, gridcolor, missing gridcolor,\n");
644 }
645 }
646  
647 =head2 sub hbox
648  
649  
650 =cut
651  
652 sub hbox {
653  
654 my ( $self, $hbox ) = @_;
655 if ( $hbox ne $empty_string ) {
656  
657 $xwigb->{_hbox} = $hbox;
658 $xwigb->{_note} = $xwigb->{_note} . ' hbox=' . $xwigb->{_hbox};
659 $xwigb->{_Step} = $xwigb->{_Step} . ' hbox=' . $xwigb->{_hbox};
660  
661 }
662 else {
663 print("xwigb, hbox, missing hbox,\n");
664 }
665 }
666  
667 =head2 sub interp
668  
669  
670 =cut
671  
672 sub interp {
673  
674 my ( $self, $interp ) = @_;
675 if ( $interp ne $empty_string ) {
676  
677 $xwigb->{_interp} = $interp;
678 $xwigb->{_note} = $xwigb->{_note} . ' interp=' . $xwigb->{_interp};
679 $xwigb->{_Step} = $xwigb->{_Step} . ' interp=' . $xwigb->{_interp};
680  
681 }
682 else {
683 print("xwigb, interp, missing interp,\n");
684 }
685 }
686  
687 =head2 sub label2
688  
689  
690 =cut
691  
692 sub label2 {
693  
694 my ( $self, $label2 ) = @_;
695 if ( $label2 ne $empty_string ) {
696  
697 $xwigb->{_label2} = $label2;
698 $xwigb->{_note} = $xwigb->{_note} . ' label2=' . $xwigb->{_label2};
699 $xwigb->{_Step} = $xwigb->{_Step} . ' label2=' . $xwigb->{_label2};
700  
701 }
702 else {
703 print("xwigb, label2, missing label2,\n");
704 }
705 }
706  
707 =head2 sub labelcolor
708  
709  
710 =cut
711  
712 sub labelcolor {
713  
714 my ( $self, $labelcolor ) = @_;
715 if ( $labelcolor ne $empty_string ) {
716  
717 $xwigb->{_labelcolor} = $labelcolor;
718 $xwigb->{_note} =
719 $xwigb->{_note} . ' labelcolor=' . $xwigb->{_labelcolor};
720 $xwigb->{_Step} =
721 $xwigb->{_Step} . ' labelcolor=' . $xwigb->{_labelcolor};
722  
723 }
724 else {
725 print("xwigb, labelcolor, missing labelcolor,\n");
726 }
727 }
728  
729 =head2 sub labelfont
730  
731  
732 =cut
733  
734 sub labelfont {
735  
736 my ( $self, $labelfont ) = @_;
737 if ( $labelfont ne $empty_string ) {
738  
739 $xwigb->{_labelfont} = $labelfont;
740 $xwigb->{_note} =
741 $xwigb->{_note} . ' labelfont=' . $xwigb->{_labelfont};
742 $xwigb->{_Step} =
743 $xwigb->{_Step} . ' labelfont=' . $xwigb->{_labelfont};
744  
745 }
746 else {
747 print("xwigb, labelfont, missing labelfont,\n");
748 }
749 }
750  
751 =head2 sub mpicks
752  
753  
754 =cut
755  
756 sub mpicks {
757  
758 my ( $self, $mpicks ) = @_;
759 if ( $mpicks ne $empty_string ) {
760  
761 $xwigb->{_mpicks} = $mpicks;
762 $xwigb->{_note} = $xwigb->{_note} . ' mpicks=' . $xwigb->{_mpicks};
763 $xwigb->{_Step} = $xwigb->{_Step} . ' mpicks=' . $xwigb->{_mpicks};
764  
765 }
766 else {
767 print("xwigb, mpicks, missing mpicks,\n");
768 }
769 }
770  
771 =head2 sub n1
772  
773  
774 =cut
775  
776 sub n1 {
777  
778 my ( $self, $n1 ) = @_;
779 if ( $n1 ne $empty_string ) {
780  
781 $xwigb->{_n1} = $n1;
782 $xwigb->{_note} = $xwigb->{_note} . ' n1=' . $xwigb->{_n1};
783 $xwigb->{_Step} = $xwigb->{_Step} . ' n1=' . $xwigb->{_n1};
784  
785 }
786 else {
787 print("xwigb, n1, missing n1,\n");
788 }
789 }
790  
791 =head2 sub n1tic
792  
793  
794 =cut
795  
796 sub n1tic {
797  
798 my ( $self, $n1tic ) = @_;
799 if ( $n1tic ne $empty_string ) {
800  
801 $xwigb->{_n1tic} = $n1tic;
802 $xwigb->{_note} = $xwigb->{_note} . ' n1tic=' . $xwigb->{_n1tic};
803 $xwigb->{_Step} = $xwigb->{_Step} . ' n1tic=' . $xwigb->{_n1tic};
804  
805 }
806 else {
807 print("xwigb, n1tic, missing n1tic,\n");
808 }
809 }
810  
811 =head2 sub n2
812  
813  
814 =cut
815  
816 sub n2 {
817  
818 my ( $self, $n2 ) = @_;
819 if ( $n2 ne $empty_string ) {
820  
821 $xwigb->{_n2} = $n2;
822 $xwigb->{_note} = $xwigb->{_note} . ' n2=' . $xwigb->{_n2};
823 $xwigb->{_Step} = $xwigb->{_Step} . ' n2=' . $xwigb->{_n2};
824  
825 }
826 else {
827 print("xwigb, n2, missing n2,\n");
828 }
829 }
830  
831 =head2 sub n2tic
832  
833  
834 =cut
835  
836 sub n2tic {
837  
838 my ( $self, $n2tic ) = @_;
839 if ( $n2tic ne $empty_string ) {
840  
841 $xwigb->{_n2tic} = $n2tic;
842 $xwigb->{_note} = $xwigb->{_note} . ' n2tic=' . $xwigb->{_n2tic};
843 $xwigb->{_Step} = $xwigb->{_Step} . ' n2tic=' . $xwigb->{_n2tic};
844  
845 }
846 else {
847 print("xwigb, n2tic, missing n2tic,\n");
848 }
849 }
850  
851 =head2 sub npair
852  
853  
854 =cut
855  
856 sub npair {
857  
858 my ( $self, $npair ) = @_;
859 if ( $npair ne $empty_string ) {
860  
861 $xwigb->{_npair} = $npair;
862 $xwigb->{_note} = $xwigb->{_note} . ' npair=' . $xwigb->{_npair};
863 $xwigb->{_Step} = $xwigb->{_Step} . ' npair=' . $xwigb->{_npair};
864  
865 }
866 else {
867 print("xwigb, npair, missing npair,\n");
868 }
869 }
870  
871 =head2 sub perc
872  
873  
874 =cut
875  
876 sub perc {
877  
878 my ( $self, $perc ) = @_;
879 if ( $perc ne $empty_string ) {
880  
881 $xwigb->{_perc} = $perc;
882 $xwigb->{_note} = $xwigb->{_note} . ' perc=' . $xwigb->{_perc};
883 $xwigb->{_Step} = $xwigb->{_Step} . ' perc=' . $xwigb->{_perc};
884  
885 }
886 else {
887 print("xwigb, perc, missing perc,\n");
888 }
889 }
890  
891 =head2 sub plotfile
892  
893  
894 =cut
895  
896 sub plotfile {
897  
898 my ( $self, $plotfile ) = @_;
899 if ( $plotfile ne $empty_string ) {
900  
901 $xwigb->{_plotfile} = $plotfile;
902 $xwigb->{_note} =
903 $xwigb->{_note} . ' plotfile=' . $xwigb->{_plotfile};
904 $xwigb->{_Step} =
905 $xwigb->{_Step} . ' plotfile=' . $xwigb->{_plotfile};
906  
907 }
908 else {
909 print("xwigb, plotfile, missing plotfile,\n");
910 }
911 }
912  
913 =head2 sub style
914  
915  
916 =cut
917  
918 sub style {
919  
920 my ( $self, $style ) = @_;
921 if ( $style ne $empty_string ) {
922  
923 $xwigb->{_style} = $style;
924 $xwigb->{_note} = $xwigb->{_note} . ' style=' . $xwigb->{_style};
925 $xwigb->{_Step} = $xwigb->{_Step} . ' style=' . $xwigb->{_style};
926  
927 }
928 else {
929 print("xwigb, style, missing style,\n");
930 }
931 }
932  
933 =head2 sub title
934  
935  
936 =cut
937  
938 sub title {
939  
940 my ( $self, $title ) = @_;
941 if ( $title ne $empty_string ) {
942  
943 $xwigb->{_title} = $title;
944 $xwigb->{_note} = $xwigb->{_note} . ' title=' . $xwigb->{_title};
945 $xwigb->{_Step} = $xwigb->{_Step} . ' title=' . $xwigb->{_title};
946  
947 }
948 else {
949 print("xwigb, title, missing title,\n");
950 }
951 }
952  
953 =head2 sub titlecolor
954  
955  
956 =cut
957  
958 sub titlecolor {
959  
960 my ( $self, $titlecolor ) = @_;
961 if ( $titlecolor ne $empty_string ) {
962  
963 $xwigb->{_titlecolor} = $titlecolor;
964 $xwigb->{_note} =
965 $xwigb->{_note} . ' titlecolor=' . $xwigb->{_titlecolor};
966 $xwigb->{_Step} =
967 $xwigb->{_Step} . ' titlecolor=' . $xwigb->{_titlecolor};
968  
969 }
970 else {
971 print("xwigb, titlecolor, missing titlecolor,\n");
972 }
973 }
974  
975 =head2 sub titlefont
976  
977  
978 =cut
979  
980 sub titlefont {
981  
982 my ( $self, $titlefont ) = @_;
983 if ( $titlefont ne $empty_string ) {
984  
985 $xwigb->{_titlefont} = $titlefont;
986 $xwigb->{_note} =
987 $xwigb->{_note} . ' titlefont=' . $xwigb->{_titlefont};
988 $xwigb->{_Step} =
989 $xwigb->{_Step} . ' titlefont=' . $xwigb->{_titlefont};
990  
991 }
992 else {
993 print("xwigb, titlefont, missing titlefont,\n");
994 }
995 }
996  
997 =head2 sub va
998  
999  
1000 =cut
1001  
1002 sub va {
1003  
1004 my ( $self, $va ) = @_;
1005 if ( $va ne $empty_string ) {
1006  
1007 $xwigb->{_va} = $va;
1008 $xwigb->{_note} = $xwigb->{_note} . ' va=' . $xwigb->{_va};
1009 $xwigb->{_Step} = $xwigb->{_Step} . ' va=' . $xwigb->{_va};
1010  
1011 }
1012 else {
1013 print("xwigb, va, missing va,\n");
1014 }
1015 }
1016  
1017 =head2 sub verbose
1018  
1019  
1020 =cut
1021  
1022 sub verbose {
1023  
1024 my ( $self, $verbose ) = @_;
1025 if ( $verbose ne $empty_string ) {
1026  
1027 $xwigb->{_verbose} = $verbose;
1028 $xwigb->{_note} = $xwigb->{_note} . ' verbose=' . $xwigb->{_verbose};
1029 $xwigb->{_Step} = $xwigb->{_Step} . ' verbose=' . $xwigb->{_verbose};
1030  
1031 }
1032 else {
1033 print("xwigb, verbose, missing verbose,\n");
1034 }
1035 }
1036  
1037 =head2 sub wbox
1038  
1039  
1040 =cut
1041  
1042 sub wbox {
1043  
1044 my ( $self, $wbox ) = @_;
1045 if ( $wbox ne $empty_string ) {
1046  
1047 $xwigb->{_wbox} = $wbox;
1048 $xwigb->{_note} = $xwigb->{_note} . ' wbox=' . $xwigb->{_wbox};
1049 $xwigb->{_Step} = $xwigb->{_Step} . ' wbox=' . $xwigb->{_wbox};
1050  
1051 }
1052 else {
1053 print("xwigb, wbox, missing wbox,\n");
1054 }
1055 }
1056  
1057 =head2 sub wigclip
1058  
1059  
1060 =cut
1061  
1062 sub wigclip {
1063  
1064 my ( $self, $wigclip ) = @_;
1065 if ( $wigclip ne $empty_string ) {
1066  
1067 $xwigb->{_wigclip} = $wigclip;
1068 $xwigb->{_note} = $xwigb->{_note} . ' wigclip=' . $xwigb->{_wigclip};
1069 $xwigb->{_Step} = $xwigb->{_Step} . ' wigclip=' . $xwigb->{_wigclip};
1070  
1071 }
1072 else {
1073 print("xwigb, wigclip, missing wigclip,\n");
1074 }
1075 }
1076  
1077 =head2 sub windowtitle
1078  
1079  
1080 =cut
1081  
1082 sub windowtitle {
1083  
1084 my ( $self, $windowtitle ) = @_;
1085 if ( $windowtitle ne $empty_string ) {
1086  
1087 $xwigb->{_windowtitle} = $windowtitle;
1088 $xwigb->{_note} =
1089 $xwigb->{_note} . ' windowtitle=' . $xwigb->{_windowtitle};
1090 $xwigb->{_Step} =
1091 $xwigb->{_Step} . ' windowtitle=' . $xwigb->{_windowtitle};
1092  
1093 }
1094 else {
1095 print("xwigb, windowtitle, missing windowtitle,\n");
1096 }
1097 }
1098  
1099 =head2 sub wt
1100  
1101  
1102 =cut
1103  
1104 sub wt {
1105  
1106 my ( $self, $wt ) = @_;
1107 if ( $wt ne $empty_string ) {
1108  
1109 $xwigb->{_wt} = $wt;
1110 $xwigb->{_note} = $xwigb->{_note} . ' wt=' . $xwigb->{_wt};
1111 $xwigb->{_Step} = $xwigb->{_Step} . ' wt=' . $xwigb->{_wt};
1112  
1113 }
1114 else {
1115 print("xwigb, wt, missing wt,\n");
1116 }
1117 }
1118  
1119 =head2 sub x1beg
1120  
1121  
1122 =cut
1123  
1124 sub x1beg {
1125  
1126 my ( $self, $x1beg ) = @_;
1127 if ( $x1beg ne $empty_string ) {
1128  
1129 $xwigb->{_x1beg} = $x1beg;
1130 $xwigb->{_note} = $xwigb->{_note} . ' x1beg=' . $xwigb->{_x1beg};
1131 $xwigb->{_Step} = $xwigb->{_Step} . ' x1beg=' . $xwigb->{_x1beg};
1132  
1133 }
1134 else {
1135 print("xwigb, x1beg, missing x1beg,\n");
1136 }
1137 }
1138  
1139 =head2 sub x1end
1140  
1141  
1142 =cut
1143  
1144 sub x1end {
1145  
1146 my ( $self, $x1end ) = @_;
1147 if ( $x1end ne $empty_string ) {
1148  
1149 $xwigb->{_x1end} = $x1end;
1150 $xwigb->{_note} = $xwigb->{_note} . ' x1end=' . $xwigb->{_x1end};
1151 $xwigb->{_Step} = $xwigb->{_Step} . ' x1end=' . $xwigb->{_x1end};
1152  
1153 }
1154 else {
1155 print("xwigb, x1end, missing x1end,\n");
1156 }
1157 }
1158  
1159 =head2 sub x2
1160  
1161  
1162 =cut
1163  
1164 sub x2 {
1165  
1166 my ( $self, $x2 ) = @_;
1167 if ( $x2 ne $empty_string ) {
1168  
1169 $xwigb->{_x2} = $x2;
1170 $xwigb->{_note} = $xwigb->{_note} . ' x2=' . $xwigb->{_x2};
1171 $xwigb->{_Step} = $xwigb->{_Step} . ' x2=' . $xwigb->{_x2};
1172  
1173 }
1174 else {
1175 print("xwigb, x2, missing x2,\n");
1176 }
1177 }
1178  
1179 =head2 sub x2beg
1180  
1181  
1182 =cut
1183  
1184 sub x2beg {
1185  
1186 my ( $self, $x2beg ) = @_;
1187 if ( $x2beg ne $empty_string ) {
1188  
1189 $xwigb->{_x2beg} = $x2beg;
1190 $xwigb->{_note} = $xwigb->{_note} . ' x2beg=' . $xwigb->{_x2beg};
1191 $xwigb->{_Step} = $xwigb->{_Step} . ' x2beg=' . $xwigb->{_x2beg};
1192  
1193 }
1194 else {
1195 print("xwigb, x2beg, missing x2beg,\n");
1196 }
1197 }
1198  
1199 =head2 sub x2end
1200  
1201  
1202 =cut
1203  
1204 sub x2end {
1205  
1206 my ( $self, $x2end ) = @_;
1207 if ( $x2end ne $empty_string ) {
1208  
1209 $xwigb->{_x2end} = $x2end;
1210 $xwigb->{_note} = $xwigb->{_note} . ' x2end=' . $xwigb->{_x2end};
1211 $xwigb->{_Step} = $xwigb->{_Step} . ' x2end=' . $xwigb->{_x2end};
1212  
1213 }
1214 else {
1215 print("xwigb, x2end, missing x2end,\n");
1216 }
1217 }
1218  
1219 =head2 sub xbox
1220  
1221  
1222 =cut
1223  
1224 sub xbox {
1225  
1226 my ( $self, $xbox ) = @_;
1227 if ( $xbox ne $empty_string ) {
1228  
1229 $xwigb->{_xbox} = $xbox;
1230 $xwigb->{_note} = $xwigb->{_note} . ' xbox=' . $xwigb->{_xbox};
1231 $xwigb->{_Step} = $xwigb->{_Step} . ' xbox=' . $xwigb->{_xbox};
1232  
1233 }
1234 else {
1235 print("xwigb, xbox, missing xbox,\n");
1236 }
1237 }
1238  
1239 =head2 sub xcur
1240  
1241  
1242 =cut
1243  
1244 sub xcur {
1245  
1246 my ( $self, $xcur ) = @_;
1247 if ( $xcur ne $empty_string ) {
1248  
1249 $xwigb->{_xcur} = $xcur;
1250 $xwigb->{_note} = $xwigb->{_note} . ' xcur=' . $xwigb->{_xcur};
1251 $xwigb->{_Step} = $xwigb->{_Step} . ' xcur=' . $xwigb->{_xcur};
1252  
1253 }
1254 else {
1255 print("xwigb, xcur, missing xcur,\n");
1256 }
1257 }
1258  
1259 =head2 sub ybox
1260  
1261  
1262 =cut
1263  
1264 sub ybox {
1265  
1266 my ( $self, $ybox ) = @_;
1267 if ( $ybox ne $empty_string ) {
1268  
1269 $xwigb->{_ybox} = $ybox;
1270 $xwigb->{_note} = $xwigb->{_note} . ' ybox=' . $xwigb->{_ybox};
1271 $xwigb->{_Step} = $xwigb->{_Step} . ' ybox=' . $xwigb->{_ybox};
1272  
1273 }
1274 else {
1275 print("xwigb, ybox, missing ybox,\n");
1276 }
1277 }
1278  
1279 =head2 sub get_max_index
1280
1281 max index = number of input variables -1
1282
1283 =cut
1284  
1285 sub get_max_index {
1286 my ($self) = @_;
1287 my $max_index = 47;
1288  
1289 return ($max_index);
1290 }
1291  
1292 1;