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

filter: Statementstmt 0.0% 0 / 349 Branchbran 0.0% 0 / 90 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 53 Podpod 0.0% 0 / 49 totaltotal 0.0% 0 / 541 CC 46 SCAR 17.4
CC
46
Cov
0%
axescolor
6.0
bclip
6.0
bperc
6.0
CRAP 5.7
1 package App::SeismicUnixGui::sunix::plot::psmovie;
2  
3 =head2 SYNOPSIS
4  
5 PERL PROGRAM NAME:
6  
7 AUTHOR: Juan Lorenzo (Perl module only)
8  
9 DATE:
10  
11 DESCRIPTION:
12  
13 Version:
14  
15 =head2 USE
16  
17 =head3 NOTES
18  
19 =head4 Examples
20  
21 =head2 SYNOPSIS
22  
23 =head3 SEISMIC UNIX NOTES
24 PSMOVIE - PostScript MOVIE plot of a uniformly-sampled function f(x1,x2,x3)
25  
26  
27  
28 psmovie n1= [optional parameters] <binaryfile >postscriptfile
29  
30  
31  
32 Required Parameters:
33  
34 n1 number of samples in 1st (fast) dimension
35  
36  
37  
38 Optional Parameters:
39  
40 d1=1.0 sampling interval in 1st dimension
41  
42 f1=0.0 first sample in 1st dimension
43  
44 n2=all number of samples in 2nd (slow) dimension
45  
46 d2=1.0 sampling interval in 2nd dimension
47  
48 f2=0.0 first sample in 2nd dimension
49  
50 perc=100.0 percentile used to determine clip
51  
52 clip=(perc percentile) clip used to determine bclip and wclip
53  
54 bperc=perc percentile for determining black clip value
55  
56 wperc=100.0-perc percentile for determining white clip value
57  
58 bclip=clip data values outside of [bclip,wclip] are clipped
59  
60 wclip=-clip data values outside of [bclip,wclip] are clipped
61  
62 d1s=1.0 factor by which to scale d1 before imaging
63  
64 d2s=1.0 factor by which to scale d2 before imaging
65  
66 verbose=1 =1 for info printed on stderr (0 for no info)
67  
68 xbox=1.0 offset in inches of left side of axes box
69  
70 ybox=1.5 offset in inches of bottom side of axes box
71  
72 wbox=6.0 width in inches of axes box
73  
74 hbox=8.0 height in inches of axes box
75  
76 x1beg=x1min value at which axis 1 begins
77  
78 x1end=x1max value at which axis 1 ends
79  
80 d1num=0.0 numbered tic interval on axis 1 (0.0 for automatic)
81  
82 f1num=x1min first numbered tic on axis 1 (used if d1num not 0.0)
83  
84 n1tic=1 number of tics per numbered tic on axis 1
85  
86 grid1=none grid lines on axis 1 - none, dot, dash, or solid
87  
88 label1= label on axis 1
89  
90 x2beg=x2min value at which axis 2 begins
91  
92 x2end=x2max value at which axis 2 ends
93  
94 d2num=0.0 numbered tic interval on axis 2 (0.0 for automatic)
95  
96 f2num=x2min first numbered tic on axis 2 (used if d2num not 0.0)
97  
98 n2tic=1 number of tics per numbered tic on axis 2
99  
100 grid2=none grid lines on axis 2 - none, dot, dash, or solid
101  
102 label2= label on axis 2
103  
104 labelfont=Helvetica font name for axes labels
105  
106 labelsize=18 font size for axes labels
107  
108 title= title of plot
109  
110 titlefont=Helvetica-Bold font name for title
111  
112 titlesize=24 font size for title
113  
114 style=seismic normal (axis 1 horizontal, axis 2 vertical) or
115  
116 seismic (axis 1 vertical, axis 2 horizontal)
117  
118 n3=1 number of samples in third dimension
119  
120 title2= second title to annotate different frames
121  
122 loopdsp=3 display loop type (1=loop over n1; 2=loop over n2;
123  
124 3 = loop over n3)
125  
126 d3=1.0 sampling interval in 3rd dimension
127  
128 f3=d3 first sample in 3rd dimension
129  
130  
131  
132 NeXT: view movie via: psmovie < infile n1= [optional params...] | open
133  
134 Note: currently only the Preview Application can handle the multipage
135  
136 PostScript output by this program.
137  
138  
139  
140 All color specifications may also be made in X Window style Hex format
141  
142 example: axescolor=#255
143  
144  
145  
146 Legal font names are:
147  
148 AvantGarde-Book AvantGarde-BookOblique AvantGarde-Demi AvantGarde-DemiOblique"
149  
150 Bookman-Demi Bookman-DemiItalic Bookman-Light Bookman-LightItalic
151  
152 Courier Courier-Bold Courier-BoldOblique Courier-Oblique
153  
154 Helvetica Helvetica-Bold Helvetica-BoldOblique Helvetica-Oblique
155  
156 Helvetica-Narrow Helvetica-Narrow-Bold Helvetica-Narrow-BoldOblique
157  
158 Helvetica-Narrow-Oblique NewCentrySchlbk-Bold"
159  
160 NewCenturySchlbk-BoldItalic NewCenturySchlbk-Roman Palatino-Bold
161  
162 Palatino-BoldItalic Palatino-Italics Palatino-Roman
163  
164 SanSerif-Bold SanSerif-BoldItalic SanSerif-Roman
165  
166 Symbol Times-Bold Times-BoldItalic
167  
168 Times-Roman Times-Italic ZapfChancery-MediumItalic
169  
170  
171  
172 =head2 User's notes (Juan Lorenzo)
173 untested
174  
175 =cut
176  
177  
178 =head2 CHANGES and their DATES
179  
180 =cut
181  
182 use Moose;
183 our $VERSION = '0.0.1';
184  
185  
186 =head2 Import packages
187  
188 =cut
189  
190 use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants';
191  
192 use App::SeismicUnixGui::misc::SeismicUnix qw($in $out $on $go $to $suffix_ascii $off $suffix_su $suffix_bin);
193 use aliased 'App::SeismicUnixGui::configs::big_streams::Project_config';
194  
195  
196 =head2 instantiation of packages
197  
198 =cut
199  
200 my $get = L_SU_global_constants->new();
201 my $Project = Project_config->new();
202 my $DATA_SEISMIC_SU = $Project->DATA_SEISMIC_SU();
203 my $DATA_SEISMIC_BIN = $Project->DATA_SEISMIC_BIN();
204 my $DATA_SEISMIC_TXT = $Project->DATA_SEISMIC_TXT();
205  
206 my $var = $get->var();
207 my $on = $var->{_on};
208 my $off = $var->{_off};
209 my $true = $var->{_true};
210 my $false = $var->{_false};
211 my $empty_string = $var->{_empty_string};
212  
213 =head2 Encapsulated
214 hash of private variables
215  
216 =cut
217  
218 my $psmovie = {
219 _axescolor => '',
220 _bclip => '',
221 _bperc => '',
222 _clip => '',
223 _d1 => '',
224 _d1num => '',
225 _d1s => '',
226 _d2 => '',
227 _d2num => '',
228 _d2s => '',
229 _d3 => '',
230 _f1 => '',
231 _f1num => '',
232 _f2 => '',
233 _f2num => '',
234 _f3 => '',
235 _grid1 => '',
236 _grid2 => '',
237 _hbox => '',
238 _label1 => '',
239 _label2 => '',
240 _labelfont => '',
241 _labelsize => '',
242 _loopdsp => '',
243 _n1 => '',
244 _n1tic => '',
245 _n2 => '',
246 _n2tic => '',
247 _n3 => '',
248 _perc => '',
249 _style => '',
250 _title => '',
251 _title2 => '',
252 _titlefont => '',
253 _titlesize => '',
254 _verbose => '',
255 _wbox => '',
256 _wclip => '',
257 _wperc => '',
258 _x1beg => '',
259 _x1end => '',
260 _x2beg => '',
261 _x2end => '',
262 _xbox => '',
263 _ybox => '',
264 _Step => '',
265 _note => '',
266  
267 };
268  
269 =head2 sub Step
270  
271 collects switches and assembles bash instructions
272 by adding the program name
273  
274 =cut
275  
276 sub Step {
277  
278 $psmovie->{_Step} = 'psmovie'.$psmovie->{_Step};
279 return ( $psmovie->{_Step} );
280  
281 }
282  
283  
284 =head2 sub note
285  
286 collects switches and assembles bash instructions
287 by adding the program name
288  
289 =cut
290  
291 sub note {
292  
293 $psmovie->{_note} = 'psmovie'.$psmovie->{_note};
294 return ( $psmovie->{_note} );
295  
296 }
297  
298  
299  
300 =head2 sub clear
301  
302 =cut
303  
304 sub clear {
305  
306 $psmovie->{_axescolor} = '';
307 $psmovie->{_bclip} = '';
308 $psmovie->{_bperc} = '';
309 $psmovie->{_clip} = '';
310 $psmovie->{_d1} = '';
311 $psmovie->{_d1num} = '';
312 $psmovie->{_d1s} = '';
313 $psmovie->{_d2} = '';
314 $psmovie->{_d2num} = '';
315 $psmovie->{_d2s} = '';
316 $psmovie->{_d3} = '';
317 $psmovie->{_f1} = '';
318 $psmovie->{_f1num} = '';
319 $psmovie->{_f2} = '';
320 $psmovie->{_f2num} = '';
321 $psmovie->{_f3} = '';
322 $psmovie->{_grid1} = '';
323 $psmovie->{_grid2} = '';
324 $psmovie->{_hbox} = '';
325 $psmovie->{_label1} = '';
326 $psmovie->{_label2} = '';
327 $psmovie->{_labelfont} = '';
328 $psmovie->{_labelsize} = '';
329 $psmovie->{_loopdsp} = '';
330 $psmovie->{_n1} = '';
331 $psmovie->{_n1tic} = '';
332 $psmovie->{_n2} = '';
333 $psmovie->{_n2tic} = '';
334 $psmovie->{_n3} = '';
335 $psmovie->{_perc} = '';
336 $psmovie->{_style} = '';
337 $psmovie->{_title} = '';
338 $psmovie->{_title2} = '';
339 $psmovie->{_titlefont} = '';
340 $psmovie->{_titlesize} = '';
341 $psmovie->{_verbose} = '';
342 $psmovie->{_wbox} = '';
343 $psmovie->{_wclip} = '';
344 $psmovie->{_wperc} = '';
345 $psmovie->{_x1beg} = '';
346 $psmovie->{_x1end} = '';
347 $psmovie->{_x2beg} = '';
348 $psmovie->{_x2end} = '';
349 $psmovie->{_xbox} = '';
350 $psmovie->{_ybox} = '';
351 $psmovie->{_Step} = '';
352 $psmovie->{_note} = '';
353 }
354  
355  
356  
357 =head2 sub axescolor
358  
359  
360 =cut
361  
362 sub axescolor {
363  
364 my ( $self,$axescolor ) = @_;
365 if ( $axescolor ne $empty_string ) {
366  
367 $psmovie->{_axescolor} = $axescolor;
368 $psmovie->{_note} = $psmovie->{_note}.' axescolor='.$psmovie->{_axescolor};
369 $psmovie->{_Step} = $psmovie->{_Step}.' axescolor='.$psmovie->{_axescolor};
370  
371 } else {
372 print("psmovie, axescolor, missing axescolor,\n");
373 }
374 }
375  
376  
377 =head2 sub bclip
378  
379  
380 =cut
381  
382 sub bclip {
383  
384 my ( $self,$bclip ) = @_;
385 if ( $bclip ne $empty_string ) {
386  
387 $psmovie->{_bclip} = $bclip;
388 $psmovie->{_note} = $psmovie->{_note}.' bclip='.$psmovie->{_bclip};
389 $psmovie->{_Step} = $psmovie->{_Step}.' bclip='.$psmovie->{_bclip};
390  
391 } else {
392 print("psmovie, bclip, missing bclip,\n");
393 }
394 }
395  
396  
397 =head2 sub bperc
398  
399  
400 =cut
401  
402 sub bperc {
403  
404 my ( $self,$bperc ) = @_;
405 if ( $bperc ne $empty_string ) {
406  
407 $psmovie->{_bperc} = $bperc;
408 $psmovie->{_note} = $psmovie->{_note}.' bperc='.$psmovie->{_bperc};
409 $psmovie->{_Step} = $psmovie->{_Step}.' bperc='.$psmovie->{_bperc};
410  
411 } else {
412 print("psmovie, bperc, missing bperc,\n");
413 }
414 }
415  
416  
417 =head2 sub clip
418  
419  
420 =cut
421  
422 sub clip {
423  
424 my ( $self,$clip ) = @_;
425 if ( $clip ne $empty_string ) {
426  
427 $psmovie->{_clip} = $clip;
428 $psmovie->{_note} = $psmovie->{_note}.' clip='.$psmovie->{_clip};
429 $psmovie->{_Step} = $psmovie->{_Step}.' clip='.$psmovie->{_clip};
430  
431 } else {
432 print("psmovie, clip, missing clip,\n");
433 }
434 }
435  
436  
437 =head2 sub d1
438  
439  
440 =cut
441  
442 sub d1 {
443  
444 my ( $self,$d1 ) = @_;
445 if ( $d1 ne $empty_string ) {
446  
447 $psmovie->{_d1} = $d1;
448 $psmovie->{_note} = $psmovie->{_note}.' d1='.$psmovie->{_d1};
449 $psmovie->{_Step} = $psmovie->{_Step}.' d1='.$psmovie->{_d1};
450  
451 } else {
452 print("psmovie, d1, missing d1,\n");
453 }
454 }
455  
456  
457 =head2 sub d1num
458  
459  
460 =cut
461  
462 sub d1num {
463  
464 my ( $self,$d1num ) = @_;
465 if ( $d1num ne $empty_string ) {
466  
467 $psmovie->{_d1num} = $d1num;
468 $psmovie->{_note} = $psmovie->{_note}.' d1num='.$psmovie->{_d1num};
469 $psmovie->{_Step} = $psmovie->{_Step}.' d1num='.$psmovie->{_d1num};
470  
471 } else {
472 print("psmovie, d1num, missing d1num,\n");
473 }
474 }
475  
476  
477 =head2 sub d1s
478  
479  
480 =cut
481  
482 sub d1s {
483  
484 my ( $self,$d1s ) = @_;
485 if ( $d1s ne $empty_string ) {
486  
487 $psmovie->{_d1s} = $d1s;
488 $psmovie->{_note} = $psmovie->{_note}.' d1s='.$psmovie->{_d1s};
489 $psmovie->{_Step} = $psmovie->{_Step}.' d1s='.$psmovie->{_d1s};
490  
491 } else {
492 print("psmovie, d1s, missing d1s,\n");
493 }
494 }
495  
496  
497 =head2 sub d2
498  
499  
500 =cut
501  
502 sub d2 {
503  
504 my ( $self,$d2 ) = @_;
505 if ( $d2 ne $empty_string ) {
506  
507 $psmovie->{_d2} = $d2;
508 $psmovie->{_note} = $psmovie->{_note}.' d2='.$psmovie->{_d2};
509 $psmovie->{_Step} = $psmovie->{_Step}.' d2='.$psmovie->{_d2};
510  
511 } else {
512 print("psmovie, d2, missing d2,\n");
513 }
514 }
515  
516  
517 =head2 sub d2num
518  
519  
520 =cut
521  
522 sub d2num {
523  
524 my ( $self,$d2num ) = @_;
525 if ( $d2num ne $empty_string ) {
526  
527 $psmovie->{_d2num} = $d2num;
528 $psmovie->{_note} = $psmovie->{_note}.' d2num='.$psmovie->{_d2num};
529 $psmovie->{_Step} = $psmovie->{_Step}.' d2num='.$psmovie->{_d2num};
530  
531 } else {
532 print("psmovie, d2num, missing d2num,\n");
533 }
534 }
535  
536  
537 =head2 sub d2s
538  
539  
540 =cut
541  
542 sub d2s {
543  
544 my ( $self,$d2s ) = @_;
545 if ( $d2s ne $empty_string ) {
546  
547 $psmovie->{_d2s} = $d2s;
548 $psmovie->{_note} = $psmovie->{_note}.' d2s='.$psmovie->{_d2s};
549 $psmovie->{_Step} = $psmovie->{_Step}.' d2s='.$psmovie->{_d2s};
550  
551 } else {
552 print("psmovie, d2s, missing d2s,\n");
553 }
554 }
555  
556  
557 =head2 sub d3
558  
559  
560 =cut
561  
562 sub d3 {
563  
564 my ( $self,$d3 ) = @_;
565 if ( $d3 ne $empty_string ) {
566  
567 $psmovie->{_d3} = $d3;
568 $psmovie->{_note} = $psmovie->{_note}.' d3='.$psmovie->{_d3};
569 $psmovie->{_Step} = $psmovie->{_Step}.' d3='.$psmovie->{_d3};
570  
571 } else {
572 print("psmovie, d3, missing d3,\n");
573 }
574 }
575  
576  
577 =head2 sub f1
578  
579  
580 =cut
581  
582 sub f1 {
583  
584 my ( $self,$f1 ) = @_;
585 if ( $f1 ne $empty_string ) {
586  
587 $psmovie->{_f1} = $f1;
588 $psmovie->{_note} = $psmovie->{_note}.' f1='.$psmovie->{_f1};
589 $psmovie->{_Step} = $psmovie->{_Step}.' f1='.$psmovie->{_f1};
590  
591 } else {
592 print("psmovie, f1, missing f1,\n");
593 }
594 }
595  
596  
597 =head2 sub f1num
598  
599  
600 =cut
601  
602 sub f1num {
603  
604 my ( $self,$f1num ) = @_;
605 if ( $f1num ne $empty_string ) {
606  
607 $psmovie->{_f1num} = $f1num;
608 $psmovie->{_note} = $psmovie->{_note}.' f1num='.$psmovie->{_f1num};
609 $psmovie->{_Step} = $psmovie->{_Step}.' f1num='.$psmovie->{_f1num};
610  
611 } else {
612 print("psmovie, f1num, missing f1num,\n");
613 }
614 }
615  
616  
617 =head2 sub f2
618  
619  
620 =cut
621  
622 sub f2 {
623  
624 my ( $self,$f2 ) = @_;
625 if ( $f2 ne $empty_string ) {
626  
627 $psmovie->{_f2} = $f2;
628 $psmovie->{_note} = $psmovie->{_note}.' f2='.$psmovie->{_f2};
629 $psmovie->{_Step} = $psmovie->{_Step}.' f2='.$psmovie->{_f2};
630  
631 } else {
632 print("psmovie, f2, missing f2,\n");
633 }
634 }
635  
636  
637 =head2 sub f2num
638  
639  
640 =cut
641  
642 sub f2num {
643  
644 my ( $self,$f2num ) = @_;
645 if ( $f2num ne $empty_string ) {
646  
647 $psmovie->{_f2num} = $f2num;
648 $psmovie->{_note} = $psmovie->{_note}.' f2num='.$psmovie->{_f2num};
649 $psmovie->{_Step} = $psmovie->{_Step}.' f2num='.$psmovie->{_f2num};
650  
651 } else {
652 print("psmovie, f2num, missing f2num,\n");
653 }
654 }
655  
656  
657 =head2 sub f3
658  
659  
660 =cut
661  
662 sub f3 {
663  
664 my ( $self,$f3 ) = @_;
665 if ( $f3 ne $empty_string ) {
666  
667 $psmovie->{_f3} = $f3;
668 $psmovie->{_note} = $psmovie->{_note}.' f3='.$psmovie->{_f3};
669 $psmovie->{_Step} = $psmovie->{_Step}.' f3='.$psmovie->{_f3};
670  
671 } else {
672 print("psmovie, f3, missing f3,\n");
673 }
674 }
675  
676  
677 =head2 sub grid1
678  
679  
680 =cut
681  
682 sub grid1 {
683  
684 my ( $self,$grid1 ) = @_;
685 if ( $grid1 ne $empty_string ) {
686  
687 $psmovie->{_grid1} = $grid1;
688 $psmovie->{_note} = $psmovie->{_note}.' grid1='.$psmovie->{_grid1};
689 $psmovie->{_Step} = $psmovie->{_Step}.' grid1='.$psmovie->{_grid1};
690  
691 } else {
692 print("psmovie, grid1, missing grid1,\n");
693 }
694 }
695  
696  
697 =head2 sub grid2
698  
699  
700 =cut
701  
702 sub grid2 {
703  
704 my ( $self,$grid2 ) = @_;
705 if ( $grid2 ne $empty_string ) {
706  
707 $psmovie->{_grid2} = $grid2;
708 $psmovie->{_note} = $psmovie->{_note}.' grid2='.$psmovie->{_grid2};
709 $psmovie->{_Step} = $psmovie->{_Step}.' grid2='.$psmovie->{_grid2};
710  
711 } else {
712 print("psmovie, grid2, missing grid2,\n");
713 }
714 }
715  
716  
717 =head2 sub hbox
718  
719  
720 =cut
721  
722 sub hbox {
723  
724 my ( $self,$hbox ) = @_;
725 if ( $hbox ne $empty_string ) {
726  
727 $psmovie->{_hbox} = $hbox;
728 $psmovie->{_note} = $psmovie->{_note}.' hbox='.$psmovie->{_hbox};
729 $psmovie->{_Step} = $psmovie->{_Step}.' hbox='.$psmovie->{_hbox};
730  
731 } else {
732 print("psmovie, hbox, missing hbox,\n");
733 }
734 }
735  
736  
737 =head2 sub label1
738  
739  
740 =cut
741  
742 sub label1 {
743  
744 my ( $self,$label1 ) = @_;
745 if ( $label1 ne $empty_string ) {
746  
747 $psmovie->{_label1} = $label1;
748 $psmovie->{_note} = $psmovie->{_note}.' label1='.$psmovie->{_label1};
749 $psmovie->{_Step} = $psmovie->{_Step}.' label1='.$psmovie->{_label1};
750  
751 } else {
752 print("psmovie, label1, missing label1,\n");
753 }
754 }
755  
756  
757 =head2 sub label2
758  
759  
760 =cut
761  
762 sub label2 {
763  
764 my ( $self,$label2 ) = @_;
765 if ( $label2 ne $empty_string ) {
766  
767 $psmovie->{_label2} = $label2;
768 $psmovie->{_note} = $psmovie->{_note}.' label2='.$psmovie->{_label2};
769 $psmovie->{_Step} = $psmovie->{_Step}.' label2='.$psmovie->{_label2};
770  
771 } else {
772 print("psmovie, label2, missing label2,\n");
773 }
774 }
775  
776  
777 =head2 sub labelfont
778  
779  
780 =cut
781  
782 sub labelfont {
783  
784 my ( $self,$labelfont ) = @_;
785 if ( $labelfont ne $empty_string ) {
786  
787 $psmovie->{_labelfont} = $labelfont;
788 $psmovie->{_note} = $psmovie->{_note}.' labelfont='.$psmovie->{_labelfont};
789 $psmovie->{_Step} = $psmovie->{_Step}.' labelfont='.$psmovie->{_labelfont};
790  
791 } else {
792 print("psmovie, labelfont, missing labelfont,\n");
793 }
794 }
795  
796  
797 =head2 sub labelsize
798  
799  
800 =cut
801  
802 sub labelsize {
803  
804 my ( $self,$labelsize ) = @_;
805 if ( $labelsize ne $empty_string ) {
806  
807 $psmovie->{_labelsize} = $labelsize;
808 $psmovie->{_note} = $psmovie->{_note}.' labelsize='.$psmovie->{_labelsize};
809 $psmovie->{_Step} = $psmovie->{_Step}.' labelsize='.$psmovie->{_labelsize};
810  
811 } else {
812 print("psmovie, labelsize, missing labelsize,\n");
813 }
814 }
815  
816  
817 =head2 sub loopdsp
818  
819  
820 =cut
821  
822 sub loopdsp {
823  
824 my ( $self,$loopdsp ) = @_;
825 if ( $loopdsp ne $empty_string ) {
826  
827 $psmovie->{_loopdsp} = $loopdsp;
828 $psmovie->{_note} = $psmovie->{_note}.' loopdsp='.$psmovie->{_loopdsp};
829 $psmovie->{_Step} = $psmovie->{_Step}.' loopdsp='.$psmovie->{_loopdsp};
830  
831 } else {
832 print("psmovie, loopdsp, missing loopdsp,\n");
833 }
834 }
835  
836  
837 =head2 sub n1
838  
839  
840 =cut
841  
842 sub n1 {
843  
844 my ( $self,$n1 ) = @_;
845 if ( $n1 ne $empty_string ) {
846  
847 $psmovie->{_n1} = $n1;
848 $psmovie->{_note} = $psmovie->{_note}.' n1='.$psmovie->{_n1};
849 $psmovie->{_Step} = $psmovie->{_Step}.' n1='.$psmovie->{_n1};
850  
851 } else {
852 print("psmovie, n1, missing n1,\n");
853 }
854 }
855  
856  
857 =head2 sub n1tic
858  
859  
860 =cut
861  
862 sub n1tic {
863  
864 my ( $self,$n1tic ) = @_;
865 if ( $n1tic ne $empty_string ) {
866  
867 $psmovie->{_n1tic} = $n1tic;
868 $psmovie->{_note} = $psmovie->{_note}.' n1tic='.$psmovie->{_n1tic};
869 $psmovie->{_Step} = $psmovie->{_Step}.' n1tic='.$psmovie->{_n1tic};
870  
871 } else {
872 print("psmovie, n1tic, missing n1tic,\n");
873 }
874 }
875  
876  
877 =head2 sub n2
878  
879  
880 =cut
881  
882 sub n2 {
883  
884 my ( $self,$n2 ) = @_;
885 if ( $n2 ne $empty_string ) {
886  
887 $psmovie->{_n2} = $n2;
888 $psmovie->{_note} = $psmovie->{_note}.' n2='.$psmovie->{_n2};
889 $psmovie->{_Step} = $psmovie->{_Step}.' n2='.$psmovie->{_n2};
890  
891 } else {
892 print("psmovie, n2, missing n2,\n");
893 }
894 }
895  
896  
897 =head2 sub n2tic
898  
899  
900 =cut
901  
902 sub n2tic {
903  
904 my ( $self,$n2tic ) = @_;
905 if ( $n2tic ne $empty_string ) {
906  
907 $psmovie->{_n2tic} = $n2tic;
908 $psmovie->{_note} = $psmovie->{_note}.' n2tic='.$psmovie->{_n2tic};
909 $psmovie->{_Step} = $psmovie->{_Step}.' n2tic='.$psmovie->{_n2tic};
910  
911 } else {
912 print("psmovie, n2tic, missing n2tic,\n");
913 }
914 }
915  
916  
917 =head2 sub n3
918  
919  
920 =cut
921  
922 sub n3 {
923  
924 my ( $self,$n3 ) = @_;
925 if ( $n3 ne $empty_string ) {
926  
927 $psmovie->{_n3} = $n3;
928 $psmovie->{_note} = $psmovie->{_note}.' n3='.$psmovie->{_n3};
929 $psmovie->{_Step} = $psmovie->{_Step}.' n3='.$psmovie->{_n3};
930  
931 } else {
932 print("psmovie, n3, missing n3,\n");
933 }
934 }
935  
936  
937 =head2 sub perc
938  
939  
940 =cut
941  
942 sub perc {
943  
944 my ( $self,$perc ) = @_;
945 if ( $perc ne $empty_string ) {
946  
947 $psmovie->{_perc} = $perc;
948 $psmovie->{_note} = $psmovie->{_note}.' perc='.$psmovie->{_perc};
949 $psmovie->{_Step} = $psmovie->{_Step}.' perc='.$psmovie->{_perc};
950  
951 } else {
952 print("psmovie, perc, missing perc,\n");
953 }
954 }
955  
956  
957 =head2 sub style
958  
959  
960 =cut
961  
962 sub style {
963  
964 my ( $self,$style ) = @_;
965 if ( $style ne $empty_string ) {
966  
967 $psmovie->{_style} = $style;
968 $psmovie->{_note} = $psmovie->{_note}.' style='.$psmovie->{_style};
969 $psmovie->{_Step} = $psmovie->{_Step}.' style='.$psmovie->{_style};
970  
971 } else {
972 print("psmovie, style, missing style,\n");
973 }
974 }
975  
976  
977 =head2 sub title
978  
979  
980 =cut
981  
982 sub title {
983  
984 my ( $self,$title ) = @_;
985 if ( $title ne $empty_string ) {
986  
987 $psmovie->{_title} = $title;
988 $psmovie->{_note} = $psmovie->{_note}.' title='.$psmovie->{_title};
989 $psmovie->{_Step} = $psmovie->{_Step}.' title='.$psmovie->{_title};
990  
991 } else {
992 print("psmovie, title, missing title,\n");
993 }
994 }
995  
996  
997 =head2 sub title2
998  
999  
1000 =cut
1001  
1002 sub title2 {
1003  
1004 my ( $self,$title2 ) = @_;
1005 if ( $title2 ne $empty_string ) {
1006  
1007 $psmovie->{_title2} = $title2;
1008 $psmovie->{_note} = $psmovie->{_note}.' title2='.$psmovie->{_title2};
1009 $psmovie->{_Step} = $psmovie->{_Step}.' title2='.$psmovie->{_title2};
1010  
1011 } else {
1012 print("psmovie, title2, missing title2,\n");
1013 }
1014 }
1015  
1016  
1017 =head2 sub titlefont
1018  
1019  
1020 =cut
1021  
1022 sub titlefont {
1023  
1024 my ( $self,$titlefont ) = @_;
1025 if ( $titlefont ne $empty_string ) {
1026  
1027 $psmovie->{_titlefont} = $titlefont;
1028 $psmovie->{_note} = $psmovie->{_note}.' titlefont='.$psmovie->{_titlefont};
1029 $psmovie->{_Step} = $psmovie->{_Step}.' titlefont='.$psmovie->{_titlefont};
1030  
1031 } else {
1032 print("psmovie, titlefont, missing titlefont,\n");
1033 }
1034 }
1035  
1036  
1037 =head2 sub titlesize
1038  
1039  
1040 =cut
1041  
1042 sub titlesize {
1043  
1044 my ( $self,$titlesize ) = @_;
1045 if ( $titlesize ne $empty_string ) {
1046  
1047 $psmovie->{_titlesize} = $titlesize;
1048 $psmovie->{_note} = $psmovie->{_note}.' titlesize='.$psmovie->{_titlesize};
1049 $psmovie->{_Step} = $psmovie->{_Step}.' titlesize='.$psmovie->{_titlesize};
1050  
1051 } else {
1052 print("psmovie, titlesize, missing titlesize,\n");
1053 }
1054 }
1055  
1056  
1057 =head2 sub verbose
1058  
1059  
1060 =cut
1061  
1062 sub verbose {
1063  
1064 my ( $self,$verbose ) = @_;
1065 if ( $verbose ne $empty_string ) {
1066  
1067 $psmovie->{_verbose} = $verbose;
1068 $psmovie->{_note} = $psmovie->{_note}.' verbose='.$psmovie->{_verbose};
1069 $psmovie->{_Step} = $psmovie->{_Step}.' verbose='.$psmovie->{_verbose};
1070  
1071 } else {
1072 print("psmovie, verbose, missing verbose,\n");
1073 }
1074 }
1075  
1076  
1077 =head2 sub wbox
1078  
1079  
1080 =cut
1081  
1082 sub wbox {
1083  
1084 my ( $self,$wbox ) = @_;
1085 if ( $wbox ne $empty_string ) {
1086  
1087 $psmovie->{_wbox} = $wbox;
1088 $psmovie->{_note} = $psmovie->{_note}.' wbox='.$psmovie->{_wbox};
1089 $psmovie->{_Step} = $psmovie->{_Step}.' wbox='.$psmovie->{_wbox};
1090  
1091 } else {
1092 print("psmovie, wbox, missing wbox,\n");
1093 }
1094 }
1095  
1096  
1097 =head2 sub wclip
1098  
1099  
1100 =cut
1101  
1102 sub wclip {
1103  
1104 my ( $self,$wclip ) = @_;
1105 if ( $wclip ne $empty_string ) {
1106  
1107 $psmovie->{_wclip} = $wclip;
1108 $psmovie->{_note} = $psmovie->{_note}.' wclip='.$psmovie->{_wclip};
1109 $psmovie->{_Step} = $psmovie->{_Step}.' wclip='.$psmovie->{_wclip};
1110  
1111 } else {
1112 print("psmovie, wclip, missing wclip,\n");
1113 }
1114 }
1115  
1116  
1117 =head2 sub wperc
1118  
1119  
1120 =cut
1121  
1122 sub wperc {
1123  
1124 my ( $self,$wperc ) = @_;
1125 if ( $wperc ne $empty_string ) {
1126  
1127 $psmovie->{_wperc} = $wperc;
1128 $psmovie->{_note} = $psmovie->{_note}.' wperc='.$psmovie->{_wperc};
1129 $psmovie->{_Step} = $psmovie->{_Step}.' wperc='.$psmovie->{_wperc};
1130  
1131 } else {
1132 print("psmovie, wperc, missing wperc,\n");
1133 }
1134 }
1135  
1136  
1137 =head2 sub x1beg
1138  
1139  
1140 =cut
1141  
1142 sub x1beg {
1143  
1144 my ( $self,$x1beg ) = @_;
1145 if ( $x1beg ne $empty_string ) {
1146  
1147 $psmovie->{_x1beg} = $x1beg;
1148 $psmovie->{_note} = $psmovie->{_note}.' x1beg='.$psmovie->{_x1beg};
1149 $psmovie->{_Step} = $psmovie->{_Step}.' x1beg='.$psmovie->{_x1beg};
1150  
1151 } else {
1152 print("psmovie, x1beg, missing x1beg,\n");
1153 }
1154 }
1155  
1156  
1157 =head2 sub x1end
1158  
1159  
1160 =cut
1161  
1162 sub x1end {
1163  
1164 my ( $self,$x1end ) = @_;
1165 if ( $x1end ne $empty_string ) {
1166  
1167 $psmovie->{_x1end} = $x1end;
1168 $psmovie->{_note} = $psmovie->{_note}.' x1end='.$psmovie->{_x1end};
1169 $psmovie->{_Step} = $psmovie->{_Step}.' x1end='.$psmovie->{_x1end};
1170  
1171 } else {
1172 print("psmovie, x1end, missing x1end,\n");
1173 }
1174 }
1175  
1176  
1177 =head2 sub x2beg
1178  
1179  
1180 =cut
1181  
1182 sub x2beg {
1183  
1184 my ( $self,$x2beg ) = @_;
1185 if ( $x2beg ne $empty_string ) {
1186  
1187 $psmovie->{_x2beg} = $x2beg;
1188 $psmovie->{_note} = $psmovie->{_note}.' x2beg='.$psmovie->{_x2beg};
1189 $psmovie->{_Step} = $psmovie->{_Step}.' x2beg='.$psmovie->{_x2beg};
1190  
1191 } else {
1192 print("psmovie, x2beg, missing x2beg,\n");
1193 }
1194 }
1195  
1196  
1197 =head2 sub x2end
1198  
1199  
1200 =cut
1201  
1202 sub x2end {
1203  
1204 my ( $self,$x2end ) = @_;
1205 if ( $x2end ne $empty_string ) {
1206  
1207 $psmovie->{_x2end} = $x2end;
1208 $psmovie->{_note} = $psmovie->{_note}.' x2end='.$psmovie->{_x2end};
1209 $psmovie->{_Step} = $psmovie->{_Step}.' x2end='.$psmovie->{_x2end};
1210  
1211 } else {
1212 print("psmovie, x2end, missing x2end,\n");
1213 }
1214 }
1215  
1216  
1217 =head2 sub xbox
1218  
1219  
1220 =cut
1221  
1222 sub xbox {
1223  
1224 my ( $self,$xbox ) = @_;
1225 if ( $xbox ne $empty_string ) {
1226  
1227 $psmovie->{_xbox} = $xbox;
1228 $psmovie->{_note} = $psmovie->{_note}.' xbox='.$psmovie->{_xbox};
1229 $psmovie->{_Step} = $psmovie->{_Step}.' xbox='.$psmovie->{_xbox};
1230  
1231 } else {
1232 print("psmovie, xbox, missing xbox,\n");
1233 }
1234 }
1235  
1236  
1237 =head2 sub ybox
1238  
1239  
1240 =cut
1241  
1242 sub ybox {
1243  
1244 my ( $self,$ybox ) = @_;
1245 if ( $ybox ne $empty_string ) {
1246  
1247 $psmovie->{_ybox} = $ybox;
1248 $psmovie->{_note} = $psmovie->{_note}.' ybox='.$psmovie->{_ybox};
1249 $psmovie->{_Step} = $psmovie->{_Step}.' ybox='.$psmovie->{_ybox};
1250  
1251 } else {
1252 print("psmovie, ybox, missing ybox,\n");
1253 }
1254 }
1255  
1256  
1257 =head2 sub get_max_index
1258  
1259 max index = number of input variables -1
1260
1261 =cut
1262
1263 sub get_max_index {
1264 my ($self) = @_;
1265 my $max_index = 44;
1266  
1267 return($max_index);
1268 }
1269
1270
1271 1;