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