« lib/App/SeismicUnixGui/sunix/plot/pscubecontour.pm
↑ Summary
lib/App/SeismicUnixGui/sunix/plot/xwigb.pm »
| 1 | package App::SeismicUnixGui::sunix::plot::xmovie; | ||
| 2 | |||
| 3 | =head1 DOCUMENTATION | ||
| 4 | |||
| 5 | =head2 SYNOPSIS | ||
| 6 | |||
| 7 | PERL PROGRAM NAME: XMOVIE - image one or more frames of a uniformly sampled function f(x1,x2) | ||
| 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 | XMOVIE - image one or more frames of a uniformly sampled function f(x1,x2) | ||
| 22 | |||
| 23 | xmovie n1= n2= [optional parameters] <fileoffloats | ||
| 24 | |||
| 25 | X Functionality: | ||
| 26 | Button 1 Zoom with rubberband box | ||
| 27 | Button 2 reverse the direction of the movie. | ||
| 28 | Button 3 stop and start the movie. | ||
| 29 | q or Q key Quit | ||
| 30 | s or S key stop display and switch to Step mode | ||
| 31 | b or B key set frame direction to Backward | ||
| 32 | f or F key set frame direction to Forward | ||
| 33 | n or N key same as 'f' | ||
| 34 | c or C key set display mode to Continuous mode | ||
| 35 | |||
| 36 | Required Parameters: | ||
| 37 | n1= number of samples in 1st (fast) dimension | ||
| 38 | n2= number of samples in 2nd (slow) dimension | ||
| 39 | |||
| 40 | Optional Parameters: | ||
| 41 | d1=1.0 sampling interval in 1st dimension | ||
| 42 | f1=0.0 first sample in 1st dimension | ||
| 43 | d2=1.0 sampling interval in 2nd dimension | ||
| 44 | f2=0.0 first sample in 2nd dimension | ||
| 45 | perc=100.0 percentile used to determine clip | ||
| 46 | clip=(perc percentile) clip used to determine bclip and wclip | ||
| 47 | bperc=perc percentile for determining black clip value | ||
| 48 | wperc=100.0-perc percentile for determining white clip value | ||
| 49 | bclip=clip data values outside of [bclip,wclip] are clipped | ||
| 50 | wclip=-clip data values outside of [bclip,wclip] are clipped | ||
| 51 | x1beg=x1min value at which axis 1 begins | ||
| 52 | x1end=x1max value at which axis 1 ends | ||
| 53 | x2beg=x2min value at which axis 2 begins | ||
| 54 | x2end=x2max value at which axis 2 ends | ||
| 55 | fframe=1 value corresponding to first frame | ||
| 56 | dframe=1 frame sampling interval | ||
| 57 | loop=0 =1 to loop over frames after last frame is input | ||
| 58 | =2 to run movie back and forth | ||
| 59 | interp=1 =0 for a non-interpolated, blocky image | ||
| 60 | verbose=1 =1 for info printed on stderr (0 for no info) | ||
| 61 | idm=0 =1 to set initial display mode to stepmode | ||
| 62 | |||
| 63 | Optional resource parameters (defaults taken from resource database): | ||
| 64 | windowtitle= title on window and icon | ||
| 65 | width= width in pixels of window | ||
| 66 | height= height in pixels of window | ||
| 67 | nTic1= number of tics per numbered tic on axis 1 | ||
| 68 | grid1= grid lines on axis 1 - none, dot, dash, or solid | ||
| 69 | label1= label on axis 1 | ||
| 70 | nTic2= number of tics per numbered tic on axis 2 | ||
| 71 | grid2= grid lines on axis 2 - none, dot, dash, or solid | ||
| 72 | label2= label on axis 2 | ||
| 73 | labelFont= font name for axes labels | ||
| 74 | title= title of plot | ||
| 75 | titleFont= font name for title | ||
| 76 | titleColor= color for title | ||
| 77 | axesColor= color for axes | ||
| 78 | gridColor= color for grid lines | ||
| 79 | style= normal (axis 1 horizontal, axis 2 vertical) or | ||
| 80 | seismic (axis 1 vertical, axis 2 horizontal) | ||
| 81 | sleep= delay between frames in seconds (integer) | ||
| 82 | |||
| 83 | Color options: | ||
| 84 | cmap=gray gray, hue, saturation, or default colormaps may be specified | ||
| 85 | bhue=0 hue mapped to bclip (hue and saturation maps) | ||
| 86 | whue=240 hue mapped to wclip (hue and saturation maps) | ||
| 87 | sat=1 saturation (hue map only) | ||
| 88 | bright=1 brightness (hue and saturation maps) | ||
| 89 | white=(bclip+wclip)/2 data value mapped to white (saturation map only) | ||
| 90 | |||
| 91 | Notes: | ||
| 92 | Colors are specified using the HSV color wheel model: | ||
| 93 | Hue: 0=360=red, 60=yellow, 120=green, 180=cyan, 240=blue, 300=magenta | ||
| 94 | Saturation: 0=white, 1=pure color | ||
| 95 | Value (brightness): 0=black, 1=maximum intensity | ||
| 96 | For the saturation mapping (cmap=sat), data values between white and bclip | ||
| 97 | are mapped to bhue, with saturation varying from white to the pure color. | ||
| 98 | Values between wclip and white are similarly mapped to whue. | ||
| 99 | For the hue mapping (cmap=hue), data values between wclip and bclip are | ||
| 100 | mapped to hues between whue and bhue. Intermediate hues are found by | ||
| 101 | moving counterclockwise around the circle from bhue to whue. To reverse | ||
| 102 | the polarity of the image, exchange bhue and whue. Equivalently, | ||
| 103 | exchange bclip and wclip (setting perc=0 is an easy way to do this). | ||
| 104 | Hues in excess of 360 degrees can be specified in order to reach the | ||
| 105 | opposite side of the color circle, or to wrap around the circle more | ||
| 106 | than once. | ||
| 107 | |||
| 108 | The title string may contain a C printf format string containing a | ||
| 109 | conversion character for the frame number. The frame number is | ||
| 110 | computed from dframe and fframe. E.g., try setting title="Frame 0". | ||
| 111 | |||
| 112 | =head2 CHANGES and their DATES | ||
| 113 | |||
| 114 | =cut | ||
| 115 | |||
| 116 | use Moose; | ||
| 117 | our $VERSION = '0.0.1'; | ||
| 118 | use aliased 'App::SeismicUnixGui::misc::L_SU_global_constants'; | ||
| 119 | |||
| 120 | my $get = L_SU_global_constants->new(); | ||
| 121 | |||
| 122 | my $var = $get->var(); | ||
| 123 | my $empty_string = $var->{_empty_string}; | ||
| 124 | |||
| 125 | my $xmovie = { | ||
| 126 | _axesColor => '', | ||
| 127 | _bclip => '', | ||
| 128 | _bhue => '', | ||
| 129 | _bperc => '', | ||
| 130 | _bright => '', | ||
| 131 | _clip => '', | ||
| 132 | _cmap => '', | ||
| 133 | _d1 => '', | ||
| 134 | _d2 => '', | ||
| 135 | _dframe => '', | ||
| 136 | _f1 => '', | ||
| 137 | _f2 => '', | ||
| 138 | _fframe => '', | ||
| 139 | _grid1 => '', | ||
| 140 | _grid2 => '', | ||
| 141 | _gridColor => '', | ||
| 142 | _height => '', | ||
| 143 | _idm => '', | ||
| 144 | _interp => '', | ||
| 145 | _label1 => '', | ||
| 146 | _label2 => '', | ||
| 147 | _labelFont => '', | ||
| 148 | _loop => '', | ||
| 149 | _n1 => '', | ||
| 150 | _n2 => '', | ||
| 151 | _nTic1 => '', | ||
| 152 | _nTic2 => '', | ||
| 153 | _perc => '', | ||
| 154 | _sat => '', | ||
| 155 | _sleep => '', | ||
| 156 | _style => '', | ||
| 157 | _title => '', | ||
| 158 | _titleColor => '', | ||
| 159 | _titleFont => '', | ||
| 160 | _verbose => '', | ||
| 161 | _wclip => '', | ||
| 162 | _white => '', | ||
| 163 | _whue => '', | ||
| 164 | _width => '', | ||
| 165 | _windowtitle => '', | ||
| 166 | _wperc => '', | ||
| 167 | _x1beg => '', | ||
| 168 | _x1end => '', | ||
| 169 | _x2beg => '', | ||
| 170 | _x2end => '', | ||
| 171 | _Step => '', | ||
| 172 | _note => '', | ||
| 173 | }; | ||
| 174 | |||
| 175 | =head2 sub Step | ||
| 176 | |||
| 177 | collects switches and assembles bash instructions | ||
| 178 | by adding the program name | ||
| 179 | |||
| 180 | =cut | ||
| 181 | |||
| 182 | sub Step { | ||
| 183 | |||
| 184 | $xmovie->{_Step} = 'xmovie' . $xmovie->{_Step}; | ||
| 185 | return ( $xmovie->{_Step} ); | ||
| 186 | |||
| 187 | } | ||
| 188 | |||
| 189 | =head2 sub note | ||
| 190 | |||
| 191 | collects switches and assembles bash instructions | ||
| 192 | by adding the program name | ||
| 193 | |||
| 194 | =cut | ||
| 195 | |||
| 196 | sub note { | ||
| 197 | |||
| 198 | $xmovie->{_note} = 'xmovie' . $xmovie->{_note}; | ||
| 199 | return ( $xmovie->{_note} ); | ||
| 200 | |||
| 201 | } | ||
| 202 | |||
| 203 | =head2 sub clear | ||
| 204 | |||
| 205 | =cut | ||
| 206 | |||
| 207 | sub clear { | ||
| 208 | |||
| 209 | $xmovie->{_axesColor} = ''; | ||
| 210 | $xmovie->{_bclip} = ''; | ||
| 211 | $xmovie->{_bhue} = ''; | ||
| 212 | $xmovie->{_bperc} = ''; | ||
| 213 | $xmovie->{_bright} = ''; | ||
| 214 | $xmovie->{_clip} = ''; | ||
| 215 | $xmovie->{_cmap} = ''; | ||
| 216 | $xmovie->{_d1} = ''; | ||
| 217 | $xmovie->{_d2} = ''; | ||
| 218 | $xmovie->{_dframe} = ''; | ||
| 219 | $xmovie->{_f1} = ''; | ||
| 220 | $xmovie->{_f2} = ''; | ||
| 221 | $xmovie->{_fframe} = ''; | ||
| 222 | $xmovie->{_grid1} = ''; | ||
| 223 | $xmovie->{_grid2} = ''; | ||
| 224 | $xmovie->{_gridColor} = ''; | ||
| 225 | $xmovie->{_height} = ''; | ||
| 226 | $xmovie->{_idm} = ''; | ||
| 227 | $xmovie->{_interp} = ''; | ||
| 228 | $xmovie->{_label1} = ''; | ||
| 229 | $xmovie->{_label2} = ''; | ||
| 230 | $xmovie->{_labelFont} = ''; | ||
| 231 | $xmovie->{_loop} = ''; | ||
| 232 | $xmovie->{_n1} = ''; | ||
| 233 | $xmovie->{_n2} = ''; | ||
| 234 | $xmovie->{_nTic1} = ''; | ||
| 235 | $xmovie->{_nTic2} = ''; | ||
| 236 | $xmovie->{_perc} = ''; | ||
| 237 | $xmovie->{_sat} = ''; | ||
| 238 | $xmovie->{_sleep} = ''; | ||
| 239 | $xmovie->{_style} = ''; | ||
| 240 | $xmovie->{_title} = ''; | ||
| 241 | $xmovie->{_titleColor} = ''; | ||
| 242 | $xmovie->{_titleFont} = ''; | ||
| 243 | $xmovie->{_verbose} = ''; | ||
| 244 | $xmovie->{_wclip} = ''; | ||
| 245 | $xmovie->{_white} = ''; | ||
| 246 | $xmovie->{_whue} = ''; | ||
| 247 | $xmovie->{_width} = ''; | ||
| 248 | $xmovie->{_windowtitle} = ''; | ||
| 249 | $xmovie->{_wperc} = ''; | ||
| 250 | $xmovie->{_x1beg} = ''; | ||
| 251 | $xmovie->{_x1end} = ''; | ||
| 252 | $xmovie->{_x2beg} = ''; | ||
| 253 | $xmovie->{_x2end} = ''; | ||
| 254 | $xmovie->{_Step} = ''; | ||
| 255 | $xmovie->{_note} = ''; | ||
| 256 | } | ||
| 257 | |||
| 258 | =head2 sub axesColor | ||
| 259 | |||
| 260 | |||
| 261 | =cut | ||
| 262 | |||
| 263 | sub axesColor { | ||
| 264 | |||
| 265 | my ( $self, $axesColor ) = @_; | ||
| 266 | if ( $axesColor ne $empty_string ) { | ||
| 267 | |||
| 268 | $xmovie->{_axesColor} = $axesColor; | ||
| 269 | $xmovie->{_note} = | ||
| 270 | $xmovie->{_note} . ' axesColor=' . $xmovie->{_axesColor}; | ||
| 271 | $xmovie->{_Step} = | ||
| 272 | $xmovie->{_Step} . ' axesColor=' . $xmovie->{_axesColor}; | ||
| 273 | |||
| 274 | } | ||
| 275 | else { | ||
| 276 | print("xmovie, axesColor, missing axesColor,\n"); | ||
| 277 | } | ||
| 278 | } | ||
| 279 | |||
| 280 | =head2 sub bclip | ||
| 281 | |||
| 282 | subs bclip or loclip or low_clip | ||
| 283 | |||
| 284 | =cut | ||
| 285 | |||
| 286 | sub bclip { | ||
| 287 | |||
| 288 | my ( $self, $bclip ) = @_; | ||
| 289 | if ( $bclip ne $empty_string ) { | ||
| 290 | |||
| 291 | $xmovie->{_bclip} = $bclip; | ||
| 292 | $xmovie->{_note} = $xmovie->{_note} . ' bclip=' . $xmovie->{_bclip}; | ||
| 293 | $xmovie->{_Step} = $xmovie->{_Step} . ' bclip=' . $xmovie->{_bclip}; | ||
| 294 | |||
| 295 | } | ||
| 296 | else { | ||
| 297 | print("xmovie, bclip, missing bclip,\n"); | ||
| 298 | } | ||
| 299 | } | ||
| 300 | |||
| 301 | =head2 sub bhue | ||
| 302 | |||
| 303 | |||
| 304 | =cut | ||
| 305 | |||
| 306 | sub bhue { | ||
| 307 | |||
| 308 | my ( $self, $bhue ) = @_; | ||
| 309 | if ( $bhue ne $empty_string ) { | ||
| 310 | |||
| 311 | $xmovie->{_bhue} = $bhue; | ||
| 312 | $xmovie->{_note} = $xmovie->{_note} . ' bhue=' . $xmovie->{_bhue}; | ||
| 313 | $xmovie->{_Step} = $xmovie->{_Step} . ' bhue=' . $xmovie->{_bhue}; | ||
| 314 | |||
| 315 | } | ||
| 316 | else { | ||
| 317 | print("xmovie, bhue, missing bhue,\n"); | ||
| 318 | } | ||
| 319 | } | ||
| 320 | |||
| 321 | =head2 sub bperc | ||
| 322 | |||
| 323 | |||
| 324 | =cut | ||
| 325 | |||
| 326 | sub bperc { | ||
| 327 | |||
| 328 | my ( $self, $bperc ) = @_; | ||
| 329 | if ( $bperc ne $empty_string ) { | ||
| 330 | |||
| 331 | $xmovie->{_bperc} = $bperc; | ||
| 332 | $xmovie->{_note} = $xmovie->{_note} . ' bperc=' . $xmovie->{_bperc}; | ||
| 333 | $xmovie->{_Step} = $xmovie->{_Step} . ' bperc=' . $xmovie->{_bperc}; | ||
| 334 | |||
| 335 | } | ||
| 336 | else { | ||
| 337 | print("xmovie, bperc, missing bperc,\n"); | ||
| 338 | } | ||
| 339 | } | ||
| 340 | |||
| 341 | =head2 sub bright | ||
| 342 | |||
| 343 | |||
| 344 | =cut | ||
| 345 | |||
| 346 | sub bright { | ||
| 347 | |||
| 348 | my ( $self, $bright ) = @_; | ||
| 349 | if ( $bright ne $empty_string ) { | ||
| 350 | |||
| 351 | $xmovie->{_bright} = $bright; | ||
| 352 | $xmovie->{_note} = $xmovie->{_note} . ' bright=' . $xmovie->{_bright}; | ||
| 353 | $xmovie->{_Step} = $xmovie->{_Step} . ' bright=' . $xmovie->{_bright}; | ||
| 354 | |||
| 355 | } | ||
| 356 | else { | ||
| 357 | print("xmovie, bright, missing bright,\n"); | ||
| 358 | } | ||
| 359 | } | ||
| 360 | |||
| 361 | =head2 sub clip | ||
| 362 | |||
| 363 | |||
| 364 | =cut | ||
| 365 | |||
| 366 | sub clip { | ||
| 367 | |||
| 368 | my ( $self, $clip ) = @_; | ||
| 369 | if ( $clip ne $empty_string ) { | ||
| 370 | |||
| 371 | $xmovie->{_clip} = $clip; | ||
| 372 | $xmovie->{_note} = $xmovie->{_note} . ' clip=' . $xmovie->{_clip}; | ||
| 373 | $xmovie->{_Step} = $xmovie->{_Step} . ' clip=' . $xmovie->{_clip}; | ||
| 374 | |||
| 375 | } | ||
| 376 | else { | ||
| 377 | print("xmovie, clip, missing clip,\n"); | ||
| 378 | } | ||
| 379 | } | ||
| 380 | |||
| 381 | =head2 sub cmap | ||
| 382 | |||
| 383 | |||
| 384 | =cut | ||
| 385 | |||
| 386 | sub cmap { | ||
| 387 | |||
| 388 | my ( $self, $cmap ) = @_; | ||
| 389 | if ( $cmap ne $empty_string ) { | ||
| 390 | |||
| 391 | $xmovie->{_cmap} = $cmap; | ||
| 392 | $xmovie->{_note} = $xmovie->{_note} . ' cmap=' . $xmovie->{_cmap}; | ||
| 393 | $xmovie->{_Step} = $xmovie->{_Step} . ' cmap=' . $xmovie->{_cmap}; | ||
| 394 | |||
| 395 | } | ||
| 396 | else { | ||
| 397 | print("xmovie, cmap, missing cmap,\n"); | ||
| 398 | } | ||
| 399 | } | ||
| 400 | |||
| 401 | =head2 sub d1 | ||
| 402 | |||
| 403 | |||
| 404 | =cut | ||
| 405 | |||
| 406 | sub d1 { | ||
| 407 | |||
| 408 | my ( $self, $d1 ) = @_; | ||
| 409 | if ( $d1 ne $empty_string ) { | ||
| 410 | |||
| 411 | $xmovie->{_d1} = $d1; | ||
| 412 | $xmovie->{_note} = $xmovie->{_note} . ' d1=' . $xmovie->{_d1}; | ||
| 413 | $xmovie->{_Step} = $xmovie->{_Step} . ' d1=' . $xmovie->{_d1}; | ||
| 414 | |||
| 415 | } | ||
| 416 | else { | ||
| 417 | print("xmovie, d1, missing d1,\n"); | ||
| 418 | } | ||
| 419 | } | ||
| 420 | |||
| 421 | =head2 sub d2 | ||
| 422 | |||
| 423 | |||
| 424 | =cut | ||
| 425 | |||
| 426 | sub d2 { | ||
| 427 | |||
| 428 | my ( $self, $d2 ) = @_; | ||
| 429 | if ( $d2 ne $empty_string ) { | ||
| 430 | |||
| 431 | $xmovie->{_d2} = $d2; | ||
| 432 | $xmovie->{_note} = $xmovie->{_note} . ' d2=' . $xmovie->{_d2}; | ||
| 433 | $xmovie->{_Step} = $xmovie->{_Step} . ' d2=' . $xmovie->{_d2}; | ||
| 434 | |||
| 435 | } | ||
| 436 | else { | ||
| 437 | print("xmovie, d2, missing d2,\n"); | ||
| 438 | } | ||
| 439 | } | ||
| 440 | |||
| 441 | =head2 sub dframe | ||
| 442 | |||
| 443 | |||
| 444 | =cut | ||
| 445 | |||
| 446 | sub dframe { | ||
| 447 | |||
| 448 | my ( $self, $dframe ) = @_; | ||
| 449 | if ( $dframe ne $empty_string ) { | ||
| 450 | |||
| 451 | $xmovie->{_dframe} = $dframe; | ||
| 452 | $xmovie->{_note} = $xmovie->{_note} . ' dframe=' . $xmovie->{_dframe}; | ||
| 453 | $xmovie->{_Step} = $xmovie->{_Step} . ' dframe=' . $xmovie->{_dframe}; | ||
| 454 | |||
| 455 | } | ||
| 456 | else { | ||
| 457 | print("xmovie, dframe, missing dframe,\n"); | ||
| 458 | } | ||
| 459 | } | ||
| 460 | |||
| 461 | =head2 sub f1 | ||
| 462 | |||
| 463 | |||
| 464 | =cut | ||
| 465 | |||
| 466 | sub f1 { | ||
| 467 | |||
| 468 | my ( $self, $f1 ) = @_; | ||
| 469 | if ( $f1 ne $empty_string ) { | ||
| 470 | |||
| 471 | $xmovie->{_f1} = $f1; | ||
| 472 | $xmovie->{_note} = $xmovie->{_note} . ' f1=' . $xmovie->{_f1}; | ||
| 473 | $xmovie->{_Step} = $xmovie->{_Step} . ' f1=' . $xmovie->{_f1}; | ||
| 474 | |||
| 475 | } | ||
| 476 | else { | ||
| 477 | print("xmovie, f1, missing f1,\n"); | ||
| 478 | } | ||
| 479 | } | ||
| 480 | |||
| 481 | =head2 sub f2 | ||
| 482 | |||
| 483 | |||
| 484 | =cut | ||
| 485 | |||
| 486 | sub f2 { | ||
| 487 | |||
| 488 | my ( $self, $f2 ) = @_; | ||
| 489 | if ( $f2 ne $empty_string ) { | ||
| 490 | |||
| 491 | $xmovie->{_f2} = $f2; | ||
| 492 | $xmovie->{_note} = $xmovie->{_note} . ' f2=' . $xmovie->{_f2}; | ||
| 493 | $xmovie->{_Step} = $xmovie->{_Step} . ' f2=' . $xmovie->{_f2}; | ||
| 494 | |||
| 495 | } | ||
| 496 | else { | ||
| 497 | print("xmovie, f2, missing f2,\n"); | ||
| 498 | } | ||
| 499 | } | ||
| 500 | |||
| 501 | =head2 sub fframe | ||
| 502 | |||
| 503 | |||
| 504 | =cut | ||
| 505 | |||
| 506 | sub fframe { | ||
| 507 | |||
| 508 | my ( $self, $fframe ) = @_; | ||
| 509 | if ( $fframe ne $empty_string ) { | ||
| 510 | |||
| 511 | $xmovie->{_fframe} = $fframe; | ||
| 512 | $xmovie->{_note} = $xmovie->{_note} . ' fframe=' . $xmovie->{_fframe}; | ||
| 513 | $xmovie->{_Step} = $xmovie->{_Step} . ' fframe=' . $xmovie->{_fframe}; | ||
| 514 | |||
| 515 | } | ||
| 516 | else { | ||
| 517 | print("xmovie, fframe, missing fframe,\n"); | ||
| 518 | } | ||
| 519 | } | ||
| 520 | |||
| 521 | =head2 sub grid1 | ||
| 522 | |||
| 523 | |||
| 524 | =cut | ||
| 525 | |||
| 526 | sub grid1 { | ||
| 527 | |||
| 528 | my ( $self, $grid1 ) = @_; | ||
| 529 | if ( $grid1 ne $empty_string ) { | ||
| 530 | |||
| 531 | $xmovie->{_grid1} = $grid1; | ||
| 532 | $xmovie->{_note} = $xmovie->{_note} . ' grid1=' . $xmovie->{_grid1}; | ||
| 533 | $xmovie->{_Step} = $xmovie->{_Step} . ' grid1=' . $xmovie->{_grid1}; | ||
| 534 | |||
| 535 | } | ||
| 536 | else { | ||
| 537 | print("xmovie, grid1, missing grid1,\n"); | ||
| 538 | } | ||
| 539 | } | ||
| 540 | |||
| 541 | =head2 sub grid2 | ||
| 542 | |||
| 543 | |||
| 544 | =cut | ||
| 545 | |||
| 546 | sub grid2 { | ||
| 547 | |||
| 548 | my ( $self, $grid2 ) = @_; | ||
| 549 | if ( $grid2 ne $empty_string ) { | ||
| 550 | |||
| 551 | $xmovie->{_grid2} = $grid2; | ||
| 552 | $xmovie->{_note} = $xmovie->{_note} . ' grid2=' . $xmovie->{_grid2}; | ||
| 553 | $xmovie->{_Step} = $xmovie->{_Step} . ' grid2=' . $xmovie->{_grid2}; | ||
| 554 | |||
| 555 | } | ||
| 556 | else { | ||
| 557 | print("xmovie, grid2, missing grid2,\n"); | ||
| 558 | } | ||
| 559 | } | ||
| 560 | |||
| 561 | =head2 sub gridColor | ||
| 562 | |||
| 563 | |||
| 564 | =cut | ||
| 565 | |||
| 566 | sub gridColor { | ||
| 567 | |||
| 568 | my ( $self, $gridColor ) = @_; | ||
| 569 | if ( $gridColor ne $empty_string ) { | ||
| 570 | |||
| 571 | $xmovie->{_gridColor} = $gridColor; | ||
| 572 | $xmovie->{_note} = | ||
| 573 | $xmovie->{_note} . ' gridColor=' . $xmovie->{_gridColor}; | ||
| 574 | $xmovie->{_Step} = | ||
| 575 | $xmovie->{_Step} . ' gridColor=' . $xmovie->{_gridColor}; | ||
| 576 | |||
| 577 | } | ||
| 578 | else { | ||
| 579 | print("xmovie, gridColor, missing gridColor,\n"); | ||
| 580 | } | ||
| 581 | } | ||
| 582 | |||
| 583 | =head2 sub height | ||
| 584 | |||
| 585 | |||
| 586 | =cut | ||
| 587 | |||
| 588 | sub height { | ||
| 589 | |||
| 590 | my ( $self, $height ) = @_; | ||
| 591 | if ( $height ne $empty_string ) { | ||
| 592 | |||
| 593 | $xmovie->{_height} = $height; | ||
| 594 | $xmovie->{_note} = $xmovie->{_note} . ' height=' . $xmovie->{_height}; | ||
| 595 | $xmovie->{_Step} = $xmovie->{_Step} . ' height=' . $xmovie->{_height}; | ||
| 596 | |||
| 597 | } | ||
| 598 | else { | ||
| 599 | print("xmovie, height, missing height,\n"); | ||
| 600 | } | ||
| 601 | } | ||
| 602 | |||
| 603 | =head2 sub hiclip | ||
| 604 | |||
| 605 | subs hiclip or wclip or high_clip | ||
| 606 | |||
| 607 | =cut | ||
| 608 | |||
| 609 | sub hiclip { | ||
| 610 | |||
| 611 | my ( $self, $wclip ) = @_; | ||
| 612 | if ( $wclip ne $empty_string ) { | ||
| 613 | |||
| 614 | $xmovie->{_wclip} = $wclip; | ||
| 615 | $xmovie->{_note} = $xmovie->{_note} . ' wclip=' . $xmovie->{_wclip}; | ||
| 616 | $xmovie->{_Step} = $xmovie->{_Step} . ' wclip=' . $xmovie->{_wclip}; | ||
| 617 | |||
| 618 | } | ||
| 619 | else { | ||
| 620 | print("xmovie, hiclip, missing wclip,\n"); | ||
| 621 | } | ||
| 622 | } | ||
| 623 | |||
| 624 | =head2 sub high_clip | ||
| 625 | |||
| 626 | subs hiclip or wclip or high_clip | ||
| 627 | |||
| 628 | =cut | ||
| 629 | |||
| 630 | sub high_clip { | ||
| 631 | |||
| 632 | my ( $self, $wclip ) = @_; | ||
| 633 | if ( $wclip ne $empty_string ) { | ||
| 634 | |||
| 635 | $xmovie->{_wclip} = $wclip; | ||
| 636 | $xmovie->{_note} = $xmovie->{_note} . ' wclip=' . $xmovie->{_wclip}; | ||
| 637 | $xmovie->{_Step} = $xmovie->{_Step} . ' wclip=' . $xmovie->{_wclip}; | ||
| 638 | |||
| 639 | } | ||
| 640 | else { | ||
| 641 | print("xmovie, high_clip, missing wclip,\n"); | ||
| 642 | } | ||
| 643 | } | ||
| 644 | |||
| 645 | =head2 sub idm | ||
| 646 | |||
| 647 | |||
| 648 | =cut | ||
| 649 | |||
| 650 | sub idm { | ||
| 651 | |||
| 652 | my ( $self, $idm ) = @_; | ||
| 653 | if ( $idm ne $empty_string ) { | ||
| 654 | |||
| 655 | $xmovie->{_idm} = $idm; | ||
| 656 | $xmovie->{_note} = $xmovie->{_note} . ' idm=' . $xmovie->{_idm}; | ||
| 657 | $xmovie->{_Step} = $xmovie->{_Step} . ' idm=' . $xmovie->{_idm}; | ||
| 658 | |||
| 659 | } | ||
| 660 | else { | ||
| 661 | print("xmovie, idm, missing idm,\n"); | ||
| 662 | } | ||
| 663 | } | ||
| 664 | |||
| 665 | =head2 sub interp | ||
| 666 | |||
| 667 | |||
| 668 | =cut | ||
| 669 | |||
| 670 | sub interp { | ||
| 671 | |||
| 672 | my ( $self, $interp ) = @_; | ||
| 673 | if ( $interp ne $empty_string ) { | ||
| 674 | |||
| 675 | $xmovie->{_interp} = $interp; | ||
| 676 | $xmovie->{_note} = $xmovie->{_note} . ' interp=' . $xmovie->{_interp}; | ||
| 677 | $xmovie->{_Step} = $xmovie->{_Step} . ' interp=' . $xmovie->{_interp}; | ||
| 678 | |||
| 679 | } | ||
| 680 | else { | ||
| 681 | print("xmovie, interp, missing interp,\n"); | ||
| 682 | } | ||
| 683 | } | ||
| 684 | |||
| 685 | =head2 sub label1 | ||
| 686 | |||
| 687 | ylabel or label1 | ||
| 688 | |||
| 689 | =cut | ||
| 690 | |||
| 691 | sub label1 { | ||
| 692 | |||
| 693 | my ( $self, $label1 ) = @_; | ||
| 694 | if ( $label1 ne $empty_string ) { | ||
| 695 | |||
| 696 | $xmovie->{_label1} = $label1; | ||
| 697 | $xmovie->{_note} = $xmovie->{_note} . ' label1=' . $xmovie->{_label1}; | ||
| 698 | $xmovie->{_Step} = $xmovie->{_Step} . ' label1=' . $xmovie->{_label1}; | ||
| 699 | |||
| 700 | } | ||
| 701 | else { | ||
| 702 | print("xmovie, label1, missing label1,\n"); | ||
| 703 | } | ||
| 704 | } | ||
| 705 | |||
| 706 | =head2 sub label2 | ||
| 707 | |||
| 708 | xlabel or label2 | ||
| 709 | |||
| 710 | |||
| 711 | =cut | ||
| 712 | |||
| 713 | sub label2 { | ||
| 714 | |||
| 715 | my ( $self, $label2 ) = @_; | ||
| 716 | if ( $label2 ne $empty_string ) { | ||
| 717 | |||
| 718 | $xmovie->{_label2} = $label2; | ||
| 719 | $xmovie->{_note} = $xmovie->{_note} . ' label2=' . $xmovie->{_label2}; | ||
| 720 | $xmovie->{_Step} = $xmovie->{_Step} . ' label2=' . $xmovie->{_label2}; | ||
| 721 | |||
| 722 | } | ||
| 723 | else { | ||
| 724 | print("xmovie, label2, missing label2,\n"); | ||
| 725 | } | ||
| 726 | } | ||
| 727 | |||
| 728 | =head2 sub labelFont | ||
| 729 | |||
| 730 | |||
| 731 | =cut | ||
| 732 | |||
| 733 | sub labelFont { | ||
| 734 | |||
| 735 | my ( $self, $labelFont ) = @_; | ||
| 736 | if ( $labelFont ne $empty_string ) { | ||
| 737 | |||
| 738 | $xmovie->{_labelFont} = $labelFont; | ||
| 739 | $xmovie->{_note} = | ||
| 740 | $xmovie->{_note} . ' labelFont=' . $xmovie->{_labelFont}; | ||
| 741 | $xmovie->{_Step} = | ||
| 742 | $xmovie->{_Step} . ' labelFont=' . $xmovie->{_labelFont}; | ||
| 743 | |||
| 744 | } | ||
| 745 | else { | ||
| 746 | print("xmovie, labelFont, missing labelFont,\n"); | ||
| 747 | } | ||
| 748 | } | ||
| 749 | |||
| 750 | |||
| 751 | =head2 sub loclip | ||
| 752 | |||
| 753 | subs bclip or loclip or low_clip | ||
| 754 | |||
| 755 | =cut | ||
| 756 | |||
| 757 | sub loclip { | ||
| 758 | |||
| 759 | my ( $self, $bclip) = @_; | ||
| 760 | if ( $bclip ne $empty_string ) { | ||
| 761 | |||
| 762 | $xmovie->{_bclip} = $bclip; | ||
| 763 | $xmovie->{_note} = $xmovie->{_note} . ' bclip=' . $xmovie->{_bclip}; | ||
| 764 | $xmovie->{_Step} = $xmovie->{_Step} . ' bclip=' . $xmovie->{_bclip}; | ||
| 765 | |||
| 766 | } | ||
| 767 | else { | ||
| 768 | print("xmovie, loclip, missing bclip,\n"); | ||
| 769 | } | ||
| 770 | } | ||
| 771 | |||
| 772 | |||
| 773 | =head2 sub low_clip | ||
| 774 | |||
| 775 | subs bclip or loclip or low_clip | ||
| 776 | |||
| 777 | =cut | ||
| 778 | |||
| 779 | sub low_clip { | ||
| 780 | |||
| 781 | my ( $self, $bclip) = @_; | ||
| 782 | if ( $bclip ne $empty_string ) { | ||
| 783 | |||
| 784 | $xmovie->{_bclip} = $bclip; | ||
| 785 | $xmovie->{_note} = $xmovie->{_note} . ' bclip=' . $xmovie->{_bclip}; | ||
| 786 | $xmovie->{_Step} = $xmovie->{_Step} . ' bclip=' . $xmovie->{_bclip}; | ||
| 787 | |||
| 788 | } | ||
| 789 | else { | ||
| 790 | print("xmovie, low_clip, missing bclip,\n"); | ||
| 791 | } | ||
| 792 | } | ||
| 793 | |||
| 794 | |||
| 795 | =head2 sub loop | ||
| 796 | |||
| 797 | |||
| 798 | =cut | ||
| 799 | |||
| 800 | sub loop { | ||
| 801 | |||
| 802 | my ( $self, $loop ) = @_; | ||
| 803 | if ( $loop ne $empty_string ) { | ||
| 804 | |||
| 805 | $xmovie->{_loop} = $loop; | ||
| 806 | $xmovie->{_note} = $xmovie->{_note} . ' loop=' . $xmovie->{_loop}; | ||
| 807 | $xmovie->{_Step} = $xmovie->{_Step} . ' loop=' . $xmovie->{_loop}; | ||
| 808 | |||
| 809 | } | ||
| 810 | else { | ||
| 811 | print("xmovie, loop, missing loop,\n"); | ||
| 812 | } | ||
| 813 | } | ||
| 814 | |||
| 815 | =head2 sub n1 | ||
| 816 | |||
| 817 | |||
| 818 | =cut | ||
| 819 | |||
| 820 | sub n1 { | ||
| 821 | |||
| 822 | my ( $self, $n1 ) = @_; | ||
| 823 | if ( $n1 ne $empty_string ) { | ||
| 824 | |||
| 825 | $xmovie->{_n1} = $n1; | ||
| 826 | $xmovie->{_note} = $xmovie->{_note} . ' n1=' . $xmovie->{_n1}; | ||
| 827 | $xmovie->{_Step} = $xmovie->{_Step} . ' n1=' . $xmovie->{_n1}; | ||
| 828 | |||
| 829 | } | ||
| 830 | else { | ||
| 831 | print("xmovie, n1, missing n1,\n"); | ||
| 832 | } | ||
| 833 | } | ||
| 834 | |||
| 835 | =head2 sub n2 | ||
| 836 | |||
| 837 | |||
| 838 | =cut | ||
| 839 | |||
| 840 | sub n2 { | ||
| 841 | |||
| 842 | my ( $self, $n2 ) = @_; | ||
| 843 | if ( $n2 ne $empty_string ) { | ||
| 844 | |||
| 845 | $xmovie->{_n2} = $n2; | ||
| 846 | $xmovie->{_note} = $xmovie->{_note} . ' n2=' . $xmovie->{_n2}; | ||
| 847 | $xmovie->{_Step} = $xmovie->{_Step} . ' n2=' . $xmovie->{_n2}; | ||
| 848 | |||
| 849 | } | ||
| 850 | else { | ||
| 851 | print("xmovie, n2, missing n2,\n"); | ||
| 852 | } | ||
| 853 | } | ||
| 854 | |||
| 855 | =head2 sub nTic1 | ||
| 856 | |||
| 857 | |||
| 858 | =cut | ||
| 859 | |||
| 860 | sub nTic1 { | ||
| 861 | |||
| 862 | my ( $self, $nTic1 ) = @_; | ||
| 863 | if ( $nTic1 ne $empty_string ) { | ||
| 864 | |||
| 865 | $xmovie->{_nTic1} = $nTic1; | ||
| 866 | $xmovie->{_note} = $xmovie->{_note} . ' nTic1=' . $xmovie->{_nTic1}; | ||
| 867 | $xmovie->{_Step} = $xmovie->{_Step} . ' nTic1=' . $xmovie->{_nTic1}; | ||
| 868 | |||
| 869 | } | ||
| 870 | else { | ||
| 871 | print("xmovie, nTic1, missing nTic1,\n"); | ||
| 872 | } | ||
| 873 | } | ||
| 874 | |||
| 875 | =head2 sub nTic2 | ||
| 876 | |||
| 877 | |||
| 878 | =cut | ||
| 879 | |||
| 880 | sub nTic2 { | ||
| 881 | |||
| 882 | my ( $self, $nTic2 ) = @_; | ||
| 883 | if ( $nTic2 ne $empty_string ) { | ||
| 884 | |||
| 885 | $xmovie->{_nTic2} = $nTic2; | ||
| 886 | $xmovie->{_note} = $xmovie->{_note} . ' nTic2=' . $xmovie->{_nTic2}; | ||
| 887 | $xmovie->{_Step} = $xmovie->{_Step} . ' nTic2=' . $xmovie->{_nTic2}; | ||
| 888 | |||
| 889 | } | ||
| 890 | else { | ||
| 891 | print("xmovie, nTic2, missing nTic2,\n"); | ||
| 892 | } | ||
| 893 | } | ||
| 894 | |||
| 895 | =head2 sub perc | ||
| 896 | |||
| 897 | |||
| 898 | =cut | ||
| 899 | |||
| 900 | sub perc { | ||
| 901 | |||
| 902 | my ( $self, $perc ) = @_; | ||
| 903 | if ( $perc ne $empty_string ) { | ||
| 904 | |||
| 905 | $xmovie->{_perc} = $perc; | ||
| 906 | $xmovie->{_note} = $xmovie->{_note} . ' perc=' . $xmovie->{_perc}; | ||
| 907 | $xmovie->{_Step} = $xmovie->{_Step} . ' perc=' . $xmovie->{_perc}; | ||
| 908 | |||
| 909 | } | ||
| 910 | else { | ||
| 911 | print("xmovie, perc, missing perc,\n"); | ||
| 912 | } | ||
| 913 | } | ||
| 914 | |||
| 915 | =head2 sub sat | ||
| 916 | |||
| 917 | |||
| 918 | =cut | ||
| 919 | |||
| 920 | sub sat { | ||
| 921 | |||
| 922 | my ( $self, $sat ) = @_; | ||
| 923 | if ( $sat ne $empty_string ) { | ||
| 924 | |||
| 925 | $xmovie->{_sat} = $sat; | ||
| 926 | $xmovie->{_note} = $xmovie->{_note} . ' sat=' . $xmovie->{_sat}; | ||
| 927 | $xmovie->{_Step} = $xmovie->{_Step} . ' sat=' . $xmovie->{_sat}; | ||
| 928 | |||
| 929 | } | ||
| 930 | else { | ||
| 931 | print("xmovie, sat, missing sat,\n"); | ||
| 932 | } | ||
| 933 | } | ||
| 934 | |||
| 935 | =head2 sub sleep | ||
| 936 | |||
| 937 | |||
| 938 | =cut | ||
| 939 | |||
| 940 | sub sleep { | ||
| 941 | |||
| 942 | my ( $self, $sleep ) = @_; | ||
| 943 | if ( $sleep ne $empty_string ) { | ||
| 944 | |||
| 945 | $xmovie->{_sleep} = $sleep; | ||
| 946 | $xmovie->{_note} = $xmovie->{_note} . ' sleep=' . $xmovie->{_sleep}; | ||
| 947 | $xmovie->{_Step} = $xmovie->{_Step} . ' sleep=' . $xmovie->{_sleep}; | ||
| 948 | |||
| 949 | } | ||
| 950 | else { | ||
| 951 | print("xmovie, sleep, missing sleep,\n"); | ||
| 952 | } | ||
| 953 | } | ||
| 954 | |||
| 955 | =head2 sub style | ||
| 956 | |||
| 957 | |||
| 958 | =cut | ||
| 959 | |||
| 960 | sub style { | ||
| 961 | |||
| 962 | my ( $self, $style ) = @_; | ||
| 963 | if ( $style ne $empty_string ) { | ||
| 964 | |||
| 965 | $xmovie->{_style} = $style; | ||
| 966 | $xmovie->{_note} = $xmovie->{_note} . ' style=' . $xmovie->{_style}; | ||
| 967 | $xmovie->{_Step} = $xmovie->{_Step} . ' style=' . $xmovie->{_style}; | ||
| 968 | |||
| 969 | } | ||
| 970 | else { | ||
| 971 | print("xmovie, style, missing style,\n"); | ||
| 972 | } | ||
| 973 | } | ||
| 974 | |||
| 975 | =head2 sub title | ||
| 976 | |||
| 977 | |||
| 978 | =cut | ||
| 979 | |||
| 980 | sub title { | ||
| 981 | |||
| 982 | my ( $self, $title ) = @_; | ||
| 983 | if ( $title ne $empty_string ) { | ||
| 984 | |||
| 985 | $xmovie->{_title} = $title; | ||
| 986 | $xmovie->{_note} = $xmovie->{_note} . ' title=' . $xmovie->{_title}; | ||
| 987 | $xmovie->{_Step} = $xmovie->{_Step} . ' title=' . $xmovie->{_title}; | ||
| 988 | |||
| 989 | } | ||
| 990 | else { | ||
| 991 | print("xmovie, title, missing title,\n"); | ||
| 992 | } | ||
| 993 | } | ||
| 994 | |||
| 995 | =head2 sub titleColor | ||
| 996 | |||
| 997 | |||
| 998 | =cut | ||
| 999 | |||
| 1000 | sub titleColor { | ||
| 1001 | |||
| 1002 | my ( $self, $titleColor ) = @_; | ||
| 1003 | if ( $titleColor ne $empty_string ) { | ||
| 1004 | |||
| 1005 | $xmovie->{_titleColor} = $titleColor; | ||
| 1006 | $xmovie->{_note} = | ||
| 1007 | $xmovie->{_note} . ' titleColor=' . $xmovie->{_titleColor}; | ||
| 1008 | $xmovie->{_Step} = | ||
| 1009 | $xmovie->{_Step} . ' titleColor=' . $xmovie->{_titleColor}; | ||
| 1010 | |||
| 1011 | } | ||
| 1012 | else { | ||
| 1013 | print("xmovie, titleColor, missing titleColor,\n"); | ||
| 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 | $xmovie->{_titleFont} = $titleFont; | ||
| 1028 | $xmovie->{_note} = | ||
| 1029 | $xmovie->{_note} . ' titleFont=' . $xmovie->{_titleFont}; | ||
| 1030 | $xmovie->{_Step} = | ||
| 1031 | $xmovie->{_Step} . ' titleFont=' . $xmovie->{_titleFont}; | ||
| 1032 | |||
| 1033 | } | ||
| 1034 | else { | ||
| 1035 | print("xmovie, titleFont, missing titleFont,\n"); | ||
| 1036 | } | ||
| 1037 | } | ||
| 1038 | |||
| 1039 | =head2 sub verbose | ||
| 1040 | |||
| 1041 | |||
| 1042 | =cut | ||
| 1043 | |||
| 1044 | sub verbose { | ||
| 1045 | |||
| 1046 | my ( $self, $verbose ) = @_; | ||
| 1047 | if ( $verbose ne $empty_string ) { | ||
| 1048 | |||
| 1049 | $xmovie->{_verbose} = $verbose; | ||
| 1050 | $xmovie->{_note} = $xmovie->{_note} . ' verbose=' . $xmovie->{_verbose}; | ||
| 1051 | $xmovie->{_Step} = $xmovie->{_Step} . ' verbose=' . $xmovie->{_verbose}; | ||
| 1052 | |||
| 1053 | } | ||
| 1054 | else { | ||
| 1055 | print("xmovie, verbose, missing verbose,\n"); | ||
| 1056 | } | ||
| 1057 | } | ||
| 1058 | |||
| 1059 | =head2 sub wclip | ||
| 1060 | |||
| 1061 | subs hiclip or wclip or high_clip | ||
| 1062 | |||
| 1063 | =cut | ||
| 1064 | |||
| 1065 | sub wclip { | ||
| 1066 | |||
| 1067 | my ( $self, $wclip ) = @_; | ||
| 1068 | if ( $wclip ne $empty_string ) { | ||
| 1069 | |||
| 1070 | $xmovie->{_wclip} = $wclip; | ||
| 1071 | $xmovie->{_note} = $xmovie->{_note} . ' wclip=' . $xmovie->{_wclip}; | ||
| 1072 | $xmovie->{_Step} = $xmovie->{_Step} . ' wclip=' . $xmovie->{_wclip}; | ||
| 1073 | |||
| 1074 | } | ||
| 1075 | else { | ||
| 1076 | print("xmovie, wclip, missing wclip,\n"); | ||
| 1077 | } | ||
| 1078 | } | ||
| 1079 | |||
| 1080 | =head2 sub white | ||
| 1081 | |||
| 1082 | |||
| 1083 | =cut | ||
| 1084 | |||
| 1085 | sub white { | ||
| 1086 | |||
| 1087 | my ( $self, $white ) = @_; | ||
| 1088 | if ( $white ne $empty_string ) { | ||
| 1089 | |||
| 1090 | $xmovie->{_white} = $white; | ||
| 1091 | $xmovie->{_note} = $xmovie->{_note} . ' white=' . $xmovie->{_white}; | ||
| 1092 | $xmovie->{_Step} = $xmovie->{_Step} . ' white=' . $xmovie->{_white}; | ||
| 1093 | |||
| 1094 | } | ||
| 1095 | else { | ||
| 1096 | print("xmovie, white, missing white,\n"); | ||
| 1097 | } | ||
| 1098 | } | ||
| 1099 | |||
| 1100 | =head2 sub whue | ||
| 1101 | |||
| 1102 | |||
| 1103 | =cut | ||
| 1104 | |||
| 1105 | sub whue { | ||
| 1106 | |||
| 1107 | my ( $self, $whue ) = @_; | ||
| 1108 | if ( $whue ne $empty_string ) { | ||
| 1109 | |||
| 1110 | $xmovie->{_whue} = $whue; | ||
| 1111 | $xmovie->{_note} = $xmovie->{_note} . ' whue=' . $xmovie->{_whue}; | ||
| 1112 | $xmovie->{_Step} = $xmovie->{_Step} . ' whue=' . $xmovie->{_whue}; | ||
| 1113 | |||
| 1114 | } | ||
| 1115 | else { | ||
| 1116 | print("xmovie, whue, missing whue,\n"); | ||
| 1117 | } | ||
| 1118 | } | ||
| 1119 | |||
| 1120 | =head2 sub width | ||
| 1121 | |||
| 1122 | |||
| 1123 | =cut | ||
| 1124 | |||
| 1125 | sub width { | ||
| 1126 | |||
| 1127 | my ( $self, $width ) = @_; | ||
| 1128 | if ( $width ne $empty_string ) { | ||
| 1129 | |||
| 1130 | $xmovie->{_width} = $width; | ||
| 1131 | $xmovie->{_note} = $xmovie->{_note} . ' width=' . $xmovie->{_width}; | ||
| 1132 | $xmovie->{_Step} = $xmovie->{_Step} . ' width=' . $xmovie->{_width}; | ||
| 1133 | |||
| 1134 | } | ||
| 1135 | else { | ||
| 1136 | print("xmovie, width, missing width,\n"); | ||
| 1137 | } | ||
| 1138 | } | ||
| 1139 | |||
| 1140 | =head2 sub windowtitle | ||
| 1141 | |||
| 1142 | |||
| 1143 | =cut | ||
| 1144 | |||
| 1145 | sub windowtitle { | ||
| 1146 | |||
| 1147 | my ( $self, $windowtitle ) = @_; | ||
| 1148 | if ( $windowtitle ne $empty_string ) { | ||
| 1149 | |||
| 1150 | $xmovie->{_windowtitle} = $windowtitle; | ||
| 1151 | $xmovie->{_note} = | ||
| 1152 | $xmovie->{_note} . ' windowtitle=' . $xmovie->{_windowtitle}; | ||
| 1153 | $xmovie->{_Step} = | ||
| 1154 | $xmovie->{_Step} . ' windowtitle=' . $xmovie->{_windowtitle}; | ||
| 1155 | |||
| 1156 | } | ||
| 1157 | else { | ||
| 1158 | print("xmovie, windowtitle, missing windowtitle,\n"); | ||
| 1159 | } | ||
| 1160 | } | ||
| 1161 | |||
| 1162 | =head2 sub wperc | ||
| 1163 | |||
| 1164 | |||
| 1165 | =cut | ||
| 1166 | |||
| 1167 | sub wperc { | ||
| 1168 | |||
| 1169 | my ( $self, $wperc ) = @_; | ||
| 1170 | if ( $wperc ne $empty_string ) { | ||
| 1171 | |||
| 1172 | $xmovie->{_wperc} = $wperc; | ||
| 1173 | $xmovie->{_note} = $xmovie->{_note} . ' wperc=' . $xmovie->{_wperc}; | ||
| 1174 | $xmovie->{_Step} = $xmovie->{_Step} . ' wperc=' . $xmovie->{_wperc}; | ||
| 1175 | |||
| 1176 | } | ||
| 1177 | else { | ||
| 1178 | print("xmovie, wperc, missing wperc,\n"); | ||
| 1179 | } | ||
| 1180 | } | ||
| 1181 | |||
| 1182 | =head2 sub x1beg | ||
| 1183 | |||
| 1184 | |||
| 1185 | =cut | ||
| 1186 | |||
| 1187 | sub x1beg { | ||
| 1188 | |||
| 1189 | my ( $self, $x1beg ) = @_; | ||
| 1190 | if ( $x1beg ne $empty_string ) { | ||
| 1191 | |||
| 1192 | $xmovie->{_x1beg} = $x1beg; | ||
| 1193 | $xmovie->{_note} = $xmovie->{_note} . ' x1beg=' . $xmovie->{_x1beg}; | ||
| 1194 | $xmovie->{_Step} = $xmovie->{_Step} . ' x1beg=' . $xmovie->{_x1beg}; | ||
| 1195 | |||
| 1196 | } | ||
| 1197 | else { | ||
| 1198 | print("xmovie, x1beg, missing x1beg,\n"); | ||
| 1199 | } | ||
| 1200 | } | ||
| 1201 | |||
| 1202 | =head2 sub x1end | ||
| 1203 | |||
| 1204 | |||
| 1205 | =cut | ||
| 1206 | |||
| 1207 | sub x1end { | ||
| 1208 | |||
| 1209 | my ( $self, $x1end ) = @_; | ||
| 1210 | if ( $x1end ne $empty_string ) { | ||
| 1211 | |||
| 1212 | $xmovie->{_x1end} = $x1end; | ||
| 1213 | $xmovie->{_note} = $xmovie->{_note} . ' x1end=' . $xmovie->{_x1end}; | ||
| 1214 | $xmovie->{_Step} = $xmovie->{_Step} . ' x1end=' . $xmovie->{_x1end}; | ||
| 1215 | |||
| 1216 | } | ||
| 1217 | else { | ||
| 1218 | print("xmovie, x1end, missing x1end,\n"); | ||
| 1219 | } | ||
| 1220 | } | ||
| 1221 | |||
| 1222 | =head2 sub x2beg | ||
| 1223 | |||
| 1224 | |||
| 1225 | =cut | ||
| 1226 | |||
| 1227 | sub x2beg { | ||
| 1228 | |||
| 1229 | my ( $self, $x2beg ) = @_; | ||
| 1230 | if ( $x2beg ne $empty_string ) { | ||
| 1231 | |||
| 1232 | $xmovie->{_x2beg} = $x2beg; | ||
| 1233 | $xmovie->{_note} = $xmovie->{_note} . ' x2beg=' . $xmovie->{_x2beg}; | ||
| 1234 | $xmovie->{_Step} = $xmovie->{_Step} . ' x2beg=' . $xmovie->{_x2beg}; | ||
| 1235 | |||
| 1236 | } | ||
| 1237 | else { | ||
| 1238 | print("xmovie, x2beg, missing x2beg,\n"); | ||
| 1239 | } | ||
| 1240 | } | ||
| 1241 | |||
| 1242 | =head2 sub x2end | ||
| 1243 | |||
| 1244 | |||
| 1245 | =cut | ||
| 1246 | |||
| 1247 | sub x2end { | ||
| 1248 | |||
| 1249 | my ( $self, $x2end ) = @_; | ||
| 1250 | if ( $x2end ne $empty_string ) { | ||
| 1251 | |||
| 1252 | $xmovie->{_x2end} = $x2end; | ||
| 1253 | $xmovie->{_note} = $xmovie->{_note} . ' x2end=' . $xmovie->{_x2end}; | ||
| 1254 | $xmovie->{_Step} = $xmovie->{_Step} . ' x2end=' . $xmovie->{_x2end}; | ||
| 1255 | |||
| 1256 | } | ||
| 1257 | else { | ||
| 1258 | print("xmovie, x2end, missing x2end,\n"); | ||
| 1259 | } | ||
| 1260 | } | ||
| 1261 | |||
| 1262 | =head2 sub xlabel | ||
| 1263 | |||
| 1264 | xlabel or label2 | ||
| 1265 | |||
| 1266 | |||
| 1267 | =cut | ||
| 1268 | |||
| 1269 | sub xlabel { | ||
| 1270 | |||
| 1271 | my ( $self, $label2 ) = @_; | ||
| 1272 | if ( $label2 ne $empty_string ) { | ||
| 1273 | |||
| 1274 | $xmovie->{_label2} = $label2; | ||
| 1275 | $xmovie->{_note} = $xmovie->{_note} . ' label2=' . $xmovie->{_label2}; | ||
| 1276 | $xmovie->{_Step} = $xmovie->{_Step} . ' label2=' . $xmovie->{_label2}; | ||
| 1277 | |||
| 1278 | } | ||
| 1279 | else { | ||
| 1280 | print("xmovie, xlabel, missing label2,\n"); | ||
| 1281 | } | ||
| 1282 | } | ||
| 1283 | |||
| 1284 | =head2 sub label1 | ||
| 1285 | |||
| 1286 | |||
| 1287 | ylabel or label1 | ||
| 1288 | |||
| 1289 | =cut | ||
| 1290 | |||
| 1291 | sub ylabel { | ||
| 1292 | |||
| 1293 | my ( $self, $label1 ) = @_; | ||
| 1294 | if ( $label1 ne $empty_string ) { | ||
| 1295 | |||
| 1296 | $xmovie->{_label1} = $label1; | ||
| 1297 | $xmovie->{_note} = $xmovie->{_note} . ' label1=' . $xmovie->{_label1}; | ||
| 1298 | $xmovie->{_Step} = $xmovie->{_Step} . ' label1=' . $xmovie->{_label1}; | ||
| 1299 | |||
| 1300 | } | ||
| 1301 | else { | ||
| 1302 | print("xmovie, ylabel, missing label1,\n"); | ||
| 1303 | } | ||
| 1304 | } | ||
| 1305 | |||
| 1306 | |||
| 1307 | =head2 sub get_max_index | ||
| 1308 | |||
| 1309 | max index = number of input variables -1 | ||
| 1310 | |||
| 1311 | =cut | ||
| 1312 | |||
| 1313 | sub get_max_index { | ||
| 1314 | my ($self) = @_; | ||
| 1315 | my $max_index = 44; | ||
| 1316 | |||
| 1317 | return ($max_index); | ||
| 1318 | } | ||
| 1319 | |||
| 1320 | 1; |