| 1 |
// |
| 2 |
// time: Tue Feb 15 12:11:47 2005 |
| 3 |
// |
| 4 |
// version: 3.2.0 (format), 4.3.0 (DX) |
| 5 |
// |
| 6 |
// |
| 7 |
// MODULE main |
| 8 |
// workspace: width = 568, height = 569 |
| 9 |
// layout: snap = 0, width = 50, height = 50, align = NN |
| 10 |
// |
| 11 |
macro main( |
| 12 |
) -> ( |
| 13 |
) { |
| 14 |
// |
| 15 |
// node FileSelector[1]: x = 245, y = 0, inputs = 0, label = FileSelector |
| 16 |
// output[1]: visible = 1, type = 32, value = "visu_vector3d_SL.general" |
| 17 |
// output[2]: visible = 1, type = 32, value = "visu_vector3d_SL.general" |
| 18 |
// |
| 19 |
// |
| 20 |
// node Import[1]: x = 255, y = 107, inputs = 6, label = Import |
| 21 |
// input[1]: defaulting = 1, visible = 1, type = 32, value = "C:/Courses/East Coast/OpenDX/GeneralArrayHeaders/BField_col.general" |
| 22 |
// |
| 23 |
main_Import_1_out_1 = |
| 24 |
Import( |
| 25 |
main_FileSelector_1_out_1, |
| 26 |
main_Import_1_in_2, |
| 27 |
main_Import_1_in_3, |
| 28 |
main_Import_1_in_4, |
| 29 |
main_Import_1_in_5, |
| 30 |
main_Import_1_in_6 |
| 31 |
) [instance: 1, cache: 1]; |
| 32 |
// |
| 33 |
// node Grid[2]: x = 162, y = 204, inputs = 4, label = Grid |
| 34 |
// input[1]: defaulting = 0, visible = 1, type = 8, value = [0,0,0] |
| 35 |
// input[2]: defaulting = 1, visible = 1, type = 32, value = NULL |
| 36 |
// input[3]: defaulting = 0, visible = 1, type = 16777224, value = {[0,0,4],[0,4,0],[4,0,0]} |
| 37 |
// input[4]: defaulting = 0, visible = 1, type = 16777217, value = {8,8,1} |
| 38 |
// |
| 39 |
main_Grid_2_out_1 = |
| 40 |
Grid( |
| 41 |
main_Grid_2_in_1, |
| 42 |
main_Grid_2_in_2, |
| 43 |
main_Grid_2_in_3, |
| 44 |
main_Grid_2_in_4 |
| 45 |
) [instance: 2, cache: 1]; |
| 46 |
// |
| 47 |
// node Streamline[1]: x = 47, y = 286, inputs = 7, label = Streamline |
| 48 |
// input[2]: defaulting = 1, visible = 1, type = 16777224, value = {[.4,0,0], [-0.4, 0, 0], [0,.4,0], [0, -.4, 0], [.2828, .2828, 0], [-.2828, .2828, 0], [.2828, -.2828, 0], [-.2828, -.2828, 0]} |
| 49 |
// input[7]: defaulting = 0, visible = 1, type = 29, value = 0.001 |
| 50 |
// |
| 51 |
main_Streamline_1_out_1 = |
| 52 |
Streamline( |
| 53 |
main_Import_1_out_1, |
| 54 |
main_Grid_2_out_1, |
| 55 |
main_Streamline_1_in_3, |
| 56 |
main_Streamline_1_in_4, |
| 57 |
main_Streamline_1_in_5, |
| 58 |
main_Streamline_1_in_6, |
| 59 |
main_Streamline_1_in_7 |
| 60 |
) [instance: 1, cache: 1]; |
| 61 |
// |
| 62 |
// node AutoColor[1]: x = 172, y = 366, inputs = 10, label = AutoColor |
| 63 |
// |
| 64 |
main_AutoColor_1_out_1, |
| 65 |
main_AutoColor_1_out_2 = |
| 66 |
AutoColor( |
| 67 |
main_Streamline_1_out_1, |
| 68 |
main_AutoColor_1_in_2, |
| 69 |
main_AutoColor_1_in_3, |
| 70 |
main_AutoColor_1_in_4, |
| 71 |
main_AutoColor_1_in_5, |
| 72 |
main_AutoColor_1_in_6, |
| 73 |
main_AutoColor_1_in_7, |
| 74 |
main_AutoColor_1_in_8, |
| 75 |
main_AutoColor_1_in_9, |
| 76 |
main_AutoColor_1_in_10 |
| 77 |
) [instance: 1, cache: 1]; |
| 78 |
// |
| 79 |
// node Grid[3]: x = 472, y = 178, inputs = 4, label = Grid |
| 80 |
// input[1]: defaulting = 0, visible = 1, type = 8, value = [0,0,0] |
| 81 |
// input[2]: defaulting = 1, visible = 1, type = 32, value = NULL |
| 82 |
// input[3]: defaulting = 0, visible = 1, type = 16777224, value = {[0,0,4],[0,4,0],[4,0,0]} |
| 83 |
// input[4]: defaulting = 0, visible = 1, type = 16777217, value = {1,1,1} |
| 84 |
// |
| 85 |
main_Grid_3_out_1 = |
| 86 |
Grid( |
| 87 |
main_Grid_3_in_1, |
| 88 |
main_Grid_3_in_2, |
| 89 |
main_Grid_3_in_3, |
| 90 |
main_Grid_3_in_4 |
| 91 |
) [instance: 3, cache: 1]; |
| 92 |
// |
| 93 |
// node Streamline[2]: x = 372, y = 264, inputs = 7, label = Streamline |
| 94 |
// input[2]: defaulting = 1, visible = 1, type = 16777224, value = {[.3,0,0], [-0.3, 0, 0], [0,.3,0], [0, -.3, 0], [.2121, .2121, 0], [-.2121, .2121, 0], [.2121, -.2121, 0], [-.2121, -.2121, 0]} |
| 95 |
// input[7]: defaulting = 0, visible = 1, type = 29, value = 0.001 |
| 96 |
// |
| 97 |
main_Streamline_2_out_1 = |
| 98 |
Streamline( |
| 99 |
main_Import_1_out_1, |
| 100 |
main_Grid_3_out_1, |
| 101 |
main_Streamline_2_in_3, |
| 102 |
main_Streamline_2_in_4, |
| 103 |
main_Streamline_2_in_5, |
| 104 |
main_Streamline_2_in_6, |
| 105 |
main_Streamline_2_in_7 |
| 106 |
) [instance: 2, cache: 1]; |
| 107 |
// |
| 108 |
// node AutoColor[2]: x = 378, y = 364, inputs = 10, label = AutoColor |
| 109 |
// |
| 110 |
main_AutoColor_2_out_1, |
| 111 |
main_AutoColor_2_out_2 = |
| 112 |
AutoColor( |
| 113 |
main_Streamline_2_out_1, |
| 114 |
main_AutoColor_2_in_2, |
| 115 |
main_AutoColor_2_in_3, |
| 116 |
main_AutoColor_2_in_4, |
| 117 |
main_AutoColor_2_in_5, |
| 118 |
main_AutoColor_2_in_6, |
| 119 |
main_AutoColor_2_in_7, |
| 120 |
main_AutoColor_2_in_8, |
| 121 |
main_AutoColor_2_in_9, |
| 122 |
main_AutoColor_2_in_10 |
| 123 |
) [instance: 2, cache: 1]; |
| 124 |
// |
| 125 |
// node ShowBox[1]: x = 285, y = 214, inputs = 1, label = ShowBox |
| 126 |
// |
| 127 |
main_ShowBox_1_out_1, |
| 128 |
main_ShowBox_1_out_2 = |
| 129 |
ShowBox( |
| 130 |
main_Import_1_out_1 |
| 131 |
) [instance: 1, cache: 1]; |
| 132 |
// |
| 133 |
// node Collect[1]: x = 266, y = 439, inputs = 3, label = Collect |
| 134 |
// |
| 135 |
main_Collect_1_out_1 = |
| 136 |
Collect( |
| 137 |
main_AutoColor_1_out_1, |
| 138 |
main_ShowBox_1_out_1, |
| 139 |
main_AutoColor_2_out_1 |
| 140 |
) [instance: 1, cache: 1]; |
| 141 |
// |
| 142 |
// node Image[1]: x = 266, y = 507, inputs = 49, label = Image |
| 143 |
// input[1]: defaulting = 0, visible = 0, type = 67108863, value = "Image_1" |
| 144 |
// input[4]: defaulting = 0, visible = 0, type = 1, value = 1 |
| 145 |
// input[5]: defaulting = 0, visible = 0, type = 8, value = [0 0 -4.76837e-07] |
| 146 |
// input[6]: defaulting = 0, visible = 0, type = 8, value = [28.0766 -24.7364 -53.4998] |
| 147 |
// input[7]: defaulting = 0, visible = 0, type = 5, value = 22.7835 |
| 148 |
// input[8]: defaulting = 0, visible = 0, type = 1, value = 461 |
| 149 |
// input[9]: defaulting = 0, visible = 0, type = 5, value = 0.973 |
| 150 |
// input[10]: defaulting = 0, visible = 0, type = 8, value = [-0.409074 -0.890927 0.197251] |
| 151 |
// input[11]: defaulting = 1, visible = 0, type = 5, value = 19.7954 |
| 152 |
// input[12]: defaulting = 0, visible = 0, type = 1, value = 0 |
| 153 |
// input[14]: defaulting = 0, visible = 0, type = 1, value = 1 |
| 154 |
// input[15]: defaulting = 1, visible = 0, type = 32, value = "none" |
| 155 |
// input[16]: defaulting = 1, visible = 0, type = 32, value = "none" |
| 156 |
// input[17]: defaulting = 1, visible = 0, type = 1, value = 1 |
| 157 |
// input[18]: defaulting = 1, visible = 0, type = 1, value = 1 |
| 158 |
// input[19]: defaulting = 0, visible = 0, type = 1, value = 0 |
| 159 |
// input[29]: defaulting = 0, visible = 0, type = 3, value = 1 |
| 160 |
// input[33]: defaulting = 0, visible = 0, type = 3, value = 1 |
| 161 |
// input[36]: defaulting = 0, visible = 0, type = 3, value = 1 |
| 162 |
// input[41]: defaulting = 0, visible = 0, type = 32, value = "rotate" |
| 163 |
// depth: value = 24 |
| 164 |
// window: position = (0.1055,0.0755), size = 0.4639x0.6419 |
| 165 |
// internal caching: 1 |
| 166 |
// |
| 167 |
main_Image_1_out_1, |
| 168 |
main_Image_1_out_2, |
| 169 |
main_Image_1_out_3 = |
| 170 |
Image( |
| 171 |
main_Image_1_in_1, |
| 172 |
main_Collect_1_out_1, |
| 173 |
main_Image_1_in_3, |
| 174 |
main_Image_1_in_4, |
| 175 |
main_Image_1_in_5, |
| 176 |
main_Image_1_in_6, |
| 177 |
main_Image_1_in_7, |
| 178 |
main_Image_1_in_8, |
| 179 |
main_Image_1_in_9, |
| 180 |
main_Image_1_in_10, |
| 181 |
main_Image_1_in_11, |
| 182 |
main_Image_1_in_12, |
| 183 |
main_Image_1_in_13, |
| 184 |
main_Image_1_in_14, |
| 185 |
main_Image_1_in_15, |
| 186 |
main_Image_1_in_16, |
| 187 |
main_Image_1_in_17, |
| 188 |
main_Image_1_in_18, |
| 189 |
main_Image_1_in_19, |
| 190 |
main_Image_1_in_20, |
| 191 |
main_Image_1_in_21, |
| 192 |
main_Image_1_in_22, |
| 193 |
main_Image_1_in_23, |
| 194 |
main_Image_1_in_24, |
| 195 |
main_Image_1_in_25, |
| 196 |
main_Image_1_in_26, |
| 197 |
main_Image_1_in_27, |
| 198 |
main_Image_1_in_28, |
| 199 |
main_Image_1_in_29, |
| 200 |
main_Image_1_in_30, |
| 201 |
main_Image_1_in_31, |
| 202 |
main_Image_1_in_32, |
| 203 |
main_Image_1_in_33, |
| 204 |
main_Image_1_in_34, |
| 205 |
main_Image_1_in_35, |
| 206 |
main_Image_1_in_36, |
| 207 |
main_Image_1_in_37, |
| 208 |
main_Image_1_in_38, |
| 209 |
main_Image_1_in_39, |
| 210 |
main_Image_1_in_40, |
| 211 |
main_Image_1_in_41, |
| 212 |
main_Image_1_in_42, |
| 213 |
main_Image_1_in_43, |
| 214 |
main_Image_1_in_44, |
| 215 |
main_Image_1_in_45, |
| 216 |
main_Image_1_in_46, |
| 217 |
main_Image_1_in_47, |
| 218 |
main_Image_1_in_48, |
| 219 |
main_Image_1_in_49 |
| 220 |
) [instance: 1, cache: 1]; |
| 221 |
// network: end of macro body |
| 222 |
CacheScene(main_Image_1_in_1, main_Image_1_out_1, main_Image_1_out_2); |
| 223 |
} |
| 224 |
main_FileSelector_1_out_1 = "visu_vector3d_SL.general"; |
| 225 |
main_Import_1_in_2 = NULL; |
| 226 |
main_Import_1_in_3 = NULL; |
| 227 |
main_Import_1_in_4 = NULL; |
| 228 |
main_Import_1_in_5 = NULL; |
| 229 |
main_Import_1_in_6 = NULL; |
| 230 |
main_Import_1_out_1 = NULL; |
| 231 |
main_Grid_2_in_1 = [0,0,0]; |
| 232 |
main_Grid_2_in_2 = NULL; |
| 233 |
main_Grid_2_in_3 = {[0,0,4],[0,4,0],[4,0,0]}; |
| 234 |
main_Grid_2_in_4 = {8,8,1}; |
| 235 |
main_Grid_2_out_1 = NULL; |
| 236 |
main_Streamline_1_in_3 = NULL; |
| 237 |
main_Streamline_1_in_4 = NULL; |
| 238 |
main_Streamline_1_in_5 = NULL; |
| 239 |
main_Streamline_1_in_6 = NULL; |
| 240 |
main_Streamline_1_in_7 = 0.001; |
| 241 |
main_Streamline_1_out_1 = NULL; |
| 242 |
main_AutoColor_1_in_2 = NULL; |
| 243 |
main_AutoColor_1_in_3 = NULL; |
| 244 |
main_AutoColor_1_in_4 = NULL; |
| 245 |
main_AutoColor_1_in_5 = NULL; |
| 246 |
main_AutoColor_1_in_6 = NULL; |
| 247 |
main_AutoColor_1_in_7 = NULL; |
| 248 |
main_AutoColor_1_in_8 = NULL; |
| 249 |
main_AutoColor_1_in_9 = NULL; |
| 250 |
main_AutoColor_1_in_10 = NULL; |
| 251 |
main_AutoColor_1_out_1 = NULL; |
| 252 |
main_Grid_3_in_1 = [0,0,0]; |
| 253 |
main_Grid_3_in_2 = NULL; |
| 254 |
main_Grid_3_in_3 = {[0,0,4],[0,4,0],[4,0,0]}; |
| 255 |
main_Grid_3_in_4 = {1,1,1}; |
| 256 |
main_Grid_3_out_1 = NULL; |
| 257 |
main_Streamline_2_in_3 = NULL; |
| 258 |
main_Streamline_2_in_4 = NULL; |
| 259 |
main_Streamline_2_in_5 = NULL; |
| 260 |
main_Streamline_2_in_6 = NULL; |
| 261 |
main_Streamline_2_in_7 = 0.001; |
| 262 |
main_Streamline_2_out_1 = NULL; |
| 263 |
main_AutoColor_2_in_2 = NULL; |
| 264 |
main_AutoColor_2_in_3 = NULL; |
| 265 |
main_AutoColor_2_in_4 = NULL; |
| 266 |
main_AutoColor_2_in_5 = NULL; |
| 267 |
main_AutoColor_2_in_6 = NULL; |
| 268 |
main_AutoColor_2_in_7 = NULL; |
| 269 |
main_AutoColor_2_in_8 = NULL; |
| 270 |
main_AutoColor_2_in_9 = NULL; |
| 271 |
main_AutoColor_2_in_10 = NULL; |
| 272 |
main_AutoColor_2_out_1 = NULL; |
| 273 |
main_ShowBox_1_out_1 = NULL; |
| 274 |
main_Collect_1_out_1 = NULL; |
| 275 |
macro Image( |
| 276 |
id, |
| 277 |
object, |
| 278 |
where, |
| 279 |
useVector, |
| 280 |
to, |
| 281 |
from, |
| 282 |
width, |
| 283 |
resolution, |
| 284 |
aspect, |
| 285 |
up, |
| 286 |
viewAngle, |
| 287 |
perspective, |
| 288 |
options, |
| 289 |
buttonState = 1, |
| 290 |
buttonUpApprox = "none", |
| 291 |
buttonDownApprox = "none", |
| 292 |
buttonUpDensity = 1, |
| 293 |
buttonDownDensity = 1, |
| 294 |
renderMode = 0, |
| 295 |
defaultCamera, |
| 296 |
reset, |
| 297 |
backgroundColor, |
| 298 |
throttle, |
| 299 |
RECenable = 0, |
| 300 |
RECfile, |
| 301 |
RECformat, |
| 302 |
RECresolution, |
| 303 |
RECaspect, |
| 304 |
AAenable = 0, |
| 305 |
AAlabels, |
| 306 |
AAticks, |
| 307 |
AAcorners, |
| 308 |
AAframe, |
| 309 |
AAadjust, |
| 310 |
AAcursor, |
| 311 |
AAgrid, |
| 312 |
AAcolors, |
| 313 |
AAannotation, |
| 314 |
AAlabelscale, |
| 315 |
AAfont, |
| 316 |
interactionMode, |
| 317 |
title, |
| 318 |
AAxTickLocs, |
| 319 |
AAyTickLocs, |
| 320 |
AAzTickLocs, |
| 321 |
AAxTickLabels, |
| 322 |
AAyTickLabels, |
| 323 |
AAzTickLabels, |
| 324 |
webOptions) -> ( |
| 325 |
object, |
| 326 |
camera, |
| 327 |
where) |
| 328 |
{ |
| 329 |
ImageMessage( |
| 330 |
id, |
| 331 |
backgroundColor, |
| 332 |
throttle, |
| 333 |
RECenable, |
| 334 |
RECfile, |
| 335 |
RECformat, |
| 336 |
RECresolution, |
| 337 |
RECaspect, |
| 338 |
AAenable, |
| 339 |
AAlabels, |
| 340 |
AAticks, |
| 341 |
AAcorners, |
| 342 |
AAframe, |
| 343 |
AAadjust, |
| 344 |
AAcursor, |
| 345 |
AAgrid, |
| 346 |
AAcolors, |
| 347 |
AAannotation, |
| 348 |
AAlabelscale, |
| 349 |
AAfont, |
| 350 |
AAxTickLocs, |
| 351 |
AAyTickLocs, |
| 352 |
AAzTickLocs, |
| 353 |
AAxTickLabels, |
| 354 |
AAyTickLabels, |
| 355 |
AAzTickLabels, |
| 356 |
interactionMode, |
| 357 |
title, |
| 358 |
renderMode, |
| 359 |
buttonUpApprox, |
| 360 |
buttonDownApprox, |
| 361 |
buttonUpDensity, |
| 362 |
buttonDownDensity) [instance: 1, cache: 1]; |
| 363 |
autoCamera = |
| 364 |
AutoCamera( |
| 365 |
object, |
| 366 |
"front", |
| 367 |
object, |
| 368 |
resolution, |
| 369 |
aspect, |
| 370 |
[0,1,0], |
| 371 |
perspective, |
| 372 |
viewAngle, |
| 373 |
backgroundColor) [instance: 1, cache: 1]; |
| 374 |
realCamera = |
| 375 |
Camera( |
| 376 |
to, |
| 377 |
from, |
| 378 |
width, |
| 379 |
resolution, |
| 380 |
aspect, |
| 381 |
up, |
| 382 |
perspective, |
| 383 |
viewAngle, |
| 384 |
backgroundColor) [instance: 1, cache: 1]; |
| 385 |
coloredDefaultCamera = |
| 386 |
UpdateCamera(defaultCamera, |
| 387 |
background=backgroundColor) [instance: 1, cache: 1]; |
| 388 |
nullDefaultCamera = |
| 389 |
Inquire(defaultCamera, |
| 390 |
"is null + 1") [instance: 1, cache: 1]; |
| 391 |
resetCamera = |
| 392 |
Switch( |
| 393 |
nullDefaultCamera, |
| 394 |
coloredDefaultCamera, |
| 395 |
autoCamera) [instance: 1, cache: 1]; |
| 396 |
resetNull = |
| 397 |
Inquire( |
| 398 |
reset, |
| 399 |
"is null + 1") [instance: 2, cache: 1]; |
| 400 |
reset = |
| 401 |
Switch( |
| 402 |
resetNull, |
| 403 |
reset, |
| 404 |
0) [instance: 2, cache: 1]; |
| 405 |
whichCamera = |
| 406 |
Compute( |
| 407 |
"($0 != 0 || $1 == 0) ? 1 : 2", |
| 408 |
reset, |
| 409 |
useVector) [instance: 1, cache: 1]; |
| 410 |
camera = Switch( |
| 411 |
whichCamera, |
| 412 |
resetCamera, |
| 413 |
realCamera) [instance: 3, cache: 1]; |
| 414 |
AAobject = |
| 415 |
AutoAxes( |
| 416 |
object, |
| 417 |
camera, |
| 418 |
AAlabels, |
| 419 |
AAticks, |
| 420 |
AAcorners, |
| 421 |
AAframe, |
| 422 |
AAadjust, |
| 423 |
AAcursor, |
| 424 |
AAgrid, |
| 425 |
AAcolors, |
| 426 |
AAannotation, |
| 427 |
AAlabelscale, |
| 428 |
AAfont, |
| 429 |
AAxTickLocs, |
| 430 |
AAyTickLocs, |
| 431 |
AAzTickLocs, |
| 432 |
AAxTickLabels, |
| 433 |
AAyTickLabels, |
| 434 |
AAzTickLabels) [instance: 1, cache: 1]; |
| 435 |
switchAAenable = Compute("$0+1", |
| 436 |
AAenable) [instance: 2, cache: 1]; |
| 437 |
object = Switch( |
| 438 |
switchAAenable, |
| 439 |
object, |
| 440 |
AAobject) [instance:4, cache: 1]; |
| 441 |
SWapproximation_options = |
| 442 |
Switch( |
| 443 |
buttonState, |
| 444 |
buttonUpApprox, |
| 445 |
buttonDownApprox) [instance: 5, cache: 1]; |
| 446 |
SWdensity_options = |
| 447 |
Switch( |
| 448 |
buttonState, |
| 449 |
buttonUpDensity, |
| 450 |
buttonDownDensity) [instance: 6, cache: 1]; |
| 451 |
HWapproximation_options = |
| 452 |
Format( |
| 453 |
"%s,%s", |
| 454 |
buttonDownApprox, |
| 455 |
buttonUpApprox) [instance: 1, cache: 1]; |
| 456 |
HWdensity_options = |
| 457 |
Format( |
| 458 |
"%d,%d", |
| 459 |
buttonDownDensity, |
| 460 |
buttonUpDensity) [instance: 2, cache: 1]; |
| 461 |
switchRenderMode = Compute( |
| 462 |
"$0+1", |
| 463 |
renderMode) [instance: 3, cache: 1]; |
| 464 |
approximation_options = Switch( |
| 465 |
switchRenderMode, |
| 466 |
SWapproximation_options, |
| 467 |
HWapproximation_options) [instance: 7, cache: 1]; |
| 468 |
density_options = Switch( |
| 469 |
switchRenderMode, |
| 470 |
SWdensity_options, |
| 471 |
HWdensity_options) [instance: 8, cache: 1]; |
| 472 |
renderModeString = Switch( |
| 473 |
switchRenderMode, |
| 474 |
"software", |
| 475 |
"hardware")[instance: 9, cache: 1]; |
| 476 |
object_tag = Inquire( |
| 477 |
object, |
| 478 |
"object tag")[instance: 3, cache: 1]; |
| 479 |
annoted_object = |
| 480 |
Options( |
| 481 |
object, |
| 482 |
"send boxes", |
| 483 |
0, |
| 484 |
"cache", |
| 485 |
1, |
| 486 |
"object tag", |
| 487 |
object_tag, |
| 488 |
"ddcamera", |
| 489 |
whichCamera, |
| 490 |
"rendering approximation", |
| 491 |
approximation_options, |
| 492 |
"render every", |
| 493 |
density_options, |
| 494 |
"button state", |
| 495 |
buttonState, |
| 496 |
"rendering mode", |
| 497 |
renderModeString) [instance: 1, cache: 1]; |
| 498 |
RECresNull = |
| 499 |
Inquire( |
| 500 |
RECresolution, |
| 501 |
"is null + 1") [instance: 4, cache: 1]; |
| 502 |
ImageResolution = |
| 503 |
Inquire( |
| 504 |
camera, |
| 505 |
"camera resolution") [instance: 5, cache: 1]; |
| 506 |
RECresolution = |
| 507 |
Switch( |
| 508 |
RECresNull, |
| 509 |
RECresolution, |
| 510 |
ImageResolution) [instance: 10, cache: 1]; |
| 511 |
RECaspectNull = |
| 512 |
Inquire( |
| 513 |
RECaspect, |
| 514 |
"is null + 1") [instance: 6, cache: 1]; |
| 515 |
ImageAspect = |
| 516 |
Inquire( |
| 517 |
camera, |
| 518 |
"camera aspect") [instance: 7, cache: 1]; |
| 519 |
RECaspect = |
| 520 |
Switch( |
| 521 |
RECaspectNull, |
| 522 |
RECaspect, |
| 523 |
ImageAspect) [instance: 11, cache: 1]; |
| 524 |
switchRECenable = Compute( |
| 525 |
"$0 == 0 ? 1 : (($2 == $3) && ($4 == $5)) ? ($1 == 1 ? 2 : 3) : 4", |
| 526 |
RECenable, |
| 527 |
switchRenderMode, |
| 528 |
RECresolution, |
| 529 |
ImageResolution, |
| 530 |
RECaspect, |
| 531 |
ImageAspect) [instance: 4, cache: 1]; |
| 532 |
NoRECobject, RECNoRerenderObject, RECNoRerHW, RECRerenderObject = Route(switchRECenable, annoted_object); |
| 533 |
Display( |
| 534 |
NoRECobject, |
| 535 |
camera, |
| 536 |
where, |
| 537 |
throttle) [instance: 1, cache: 1]; |
| 538 |
image = |
| 539 |
Render( |
| 540 |
RECNoRerenderObject, |
| 541 |
camera) [instance: 1, cache: 1]; |
| 542 |
Display( |
| 543 |
image, |
| 544 |
NULL, |
| 545 |
where, |
| 546 |
throttle) [instance: 2, cache: 1]; |
| 547 |
WriteImage( |
| 548 |
image, |
| 549 |
RECfile, |
| 550 |
RECformat) [instance: 1, cache: 1]; |
| 551 |
rec_where = Display( |
| 552 |
RECNoRerHW, |
| 553 |
camera, |
| 554 |
where, |
| 555 |
throttle) [instance: 1, cache: 0]; |
| 556 |
rec_image = ReadImageWindow( |
| 557 |
rec_where) [instance: 1, cache: 1]; |
| 558 |
WriteImage( |
| 559 |
rec_image, |
| 560 |
RECfile, |
| 561 |
RECformat) [instance: 1, cache: 1]; |
| 562 |
RECupdateCamera = |
| 563 |
UpdateCamera( |
| 564 |
camera, |
| 565 |
resolution=RECresolution, |
| 566 |
aspect=RECaspect) [instance: 2, cache: 1]; |
| 567 |
Display( |
| 568 |
RECRerenderObject, |
| 569 |
camera, |
| 570 |
where, |
| 571 |
throttle) [instance: 1, cache: 1]; |
| 572 |
RECRerenderObject = |
| 573 |
ScaleScreen( |
| 574 |
RECRerenderObject, |
| 575 |
NULL, |
| 576 |
RECresolution, |
| 577 |
camera) [instance: 1, cache: 1]; |
| 578 |
image = |
| 579 |
Render( |
| 580 |
RECRerenderObject, |
| 581 |
RECupdateCamera) [instance: 2, cache: 1]; |
| 582 |
WriteImage( |
| 583 |
image, |
| 584 |
RECfile, |
| 585 |
RECformat) [instance: 2, cache: 1]; |
| 586 |
} |
| 587 |
main_Image_1_in_1 = "Image_1"; |
| 588 |
main_Image_1_in_3 = "X24,,"; |
| 589 |
main_Image_1_in_4 = 1; |
| 590 |
main_Image_1_in_5 = [0 0 -4.76837e-07]; |
| 591 |
main_Image_1_in_6 = [28.0766 -24.7364 -53.4998]; |
| 592 |
main_Image_1_in_7 = 22.7835; |
| 593 |
main_Image_1_in_8 = 461; |
| 594 |
main_Image_1_in_9 = 0.973; |
| 595 |
main_Image_1_in_10 = [-0.409074 -0.890927 0.197251]; |
| 596 |
main_Image_1_in_11 = NULL; |
| 597 |
main_Image_1_in_12 = 0; |
| 598 |
main_Image_1_in_13 = NULL; |
| 599 |
main_Image_1_in_14 = 1; |
| 600 |
main_Image_1_in_15 = NULL; |
| 601 |
main_Image_1_in_16 = NULL; |
| 602 |
main_Image_1_in_17 = NULL; |
| 603 |
main_Image_1_in_18 = NULL; |
| 604 |
main_Image_1_in_19 = 0; |
| 605 |
main_Image_1_in_20 = NULL; |
| 606 |
main_Image_1_in_21 = NULL; |
| 607 |
main_Image_1_in_22 = NULL; |
| 608 |
main_Image_1_in_23 = NULL; |
| 609 |
main_Image_1_in_25 = NULL; |
| 610 |
main_Image_1_in_26 = NULL; |
| 611 |
main_Image_1_in_27 = NULL; |
| 612 |
main_Image_1_in_28 = NULL; |
| 613 |
main_Image_1_in_29 = 1; |
| 614 |
main_Image_1_in_30 = NULL; |
| 615 |
main_Image_1_in_31 = NULL; |
| 616 |
main_Image_1_in_32 = NULL; |
| 617 |
main_Image_1_in_33 = 1; |
| 618 |
main_Image_1_in_34 = NULL; |
| 619 |
main_Image_1_in_35 = NULL; |
| 620 |
main_Image_1_in_36 = 1; |
| 621 |
main_Image_1_in_37 = NULL; |
| 622 |
main_Image_1_in_38 = NULL; |
| 623 |
main_Image_1_in_39 = NULL; |
| 624 |
main_Image_1_in_40 = NULL; |
| 625 |
main_Image_1_in_41 = "rotate"; |
| 626 |
main_Image_1_in_42 = NULL; |
| 627 |
main_Image_1_in_43 = NULL; |
| 628 |
main_Image_1_in_44 = NULL; |
| 629 |
main_Image_1_in_45 = NULL; |
| 630 |
main_Image_1_in_46 = NULL; |
| 631 |
main_Image_1_in_47 = NULL; |
| 632 |
main_Image_1_in_48 = NULL; |
| 633 |
main_Image_1_in_49 = NULL; |
| 634 |
Executive("product version 4 3 0"); |
| 635 |
$sync |
| 636 |
main(); |