| 1 |
// |
| 2 |
// time: Mon May 6 16:02:50 2002 |
| 3 |
// |
| 4 |
// version: 3.1.2 (format), 4.1.3 (DX) |
| 5 |
// |
| 6 |
// |
| 7 |
// |
| 8 |
// macro reference (direct): vrmlexport /usr/local/dx/java/server/dxmacros/vrmlmac.net |
| 9 |
include "vrmlmac.net" |
| 10 |
// |
| 11 |
// MODULE main |
| 12 |
// |
| 13 |
// comment: Transforms molecular accessibility data into triagulated surface by isocontouring at 0.5 and discretizing resulting surface to desired accuracy. |
| 14 |
// page assignment: image order=4, windowed=0, showing=0 |
| 15 |
// page assignment: import order=2, windowed=0, showing=0 |
| 16 |
// page assignment: iso_or_glyph order=3, windowed=0, showing=1 |
| 17 |
// workspace: width = 449, height = 607 |
| 18 |
// layout: snap = 0, width = 50, height = 50, align = NN |
| 19 |
// |
| 20 |
macro main( |
| 21 |
) -> ( |
| 22 |
) { |
| 23 |
// |
| 24 |
// node FileSelector[1]: x = 62, y = 110, inputs = 0, label = FileSelector |
| 25 |
// output[1]: visible = 1, type = 32, value = "/home/nbaker/coding/manifold/mesh-gen/test/mache/ache-wild.acc.dx" |
| 26 |
// output[2]: visible = 1, type = 32, value = "ache-wild.acc.dx" |
| 27 |
// page group: import |
| 28 |
// |
| 29 |
// |
| 30 |
// node String[1]: x = 268, y = 120, inputs = 0, label = String |
| 31 |
// output[1]: visible = 1, type = 32, value = "dx" |
| 32 |
// page group: import |
| 33 |
// |
| 34 |
// |
| 35 |
// node Import[1]: x = 170, y = 200, inputs = 6, label = Import |
| 36 |
// input[1]: defaulting = 1, visible = 1, type = 32, value = "/usr/lpp/dx/samples/data/southeastern_topo.dx" |
| 37 |
// page group: import |
| 38 |
// |
| 39 |
main_Import_1_out_1 = |
| 40 |
Import( |
| 41 |
main_FileSelector_1_out_1, |
| 42 |
main_Import_1_in_2, |
| 43 |
main_String_1_out_1, |
| 44 |
main_Import_1_in_4, |
| 45 |
main_Import_1_in_5, |
| 46 |
main_Import_1_in_6 |
| 47 |
) [instance: 1, cache: 1]; |
| 48 |
// |
| 49 |
// node Transmitter[1]: x = 193, y = 287, inputs = 1, label = imported |
| 50 |
// page group: import |
| 51 |
// |
| 52 |
imported = main_Import_1_out_1; |
| 53 |
// |
| 54 |
// node Receiver[1]: x = 89, y = 33, inputs = 1, label = imported |
| 55 |
// page group: iso_or_glyph |
| 56 |
// |
| 57 |
main_Receiver_1_out_1[cache: 0] = imported; |
| 58 |
// |
| 59 |
// node Isosurface[2]: x = 70, y = 173, inputs = 6, label = Isosurface |
| 60 |
// input[2]: defaulting = 0, visible = 1, type = 5, value = 0.5 |
| 61 |
// page group: iso_or_glyph |
| 62 |
// |
| 63 |
main_Isosurface_2_out_1 = |
| 64 |
Isosurface( |
| 65 |
main_Receiver_1_out_1, |
| 66 |
main_Isosurface_2_in_2, |
| 67 |
main_Isosurface_2_in_3, |
| 68 |
main_Isosurface_2_in_4, |
| 69 |
main_Isosurface_2_in_5, |
| 70 |
main_Isosurface_2_in_6 |
| 71 |
) [instance: 2, cache: 1]; |
| 72 |
// |
| 73 |
// node Scalar[6]: x = 319, y = 145, inputs = 11, label = Scalar |
| 74 |
// input[1]: defaulting = 0, visible = 0, type = 32, value = "Scalar_6" |
| 75 |
// input[3]: defaulting = 0, visible = 0, type = 5, value = 3.0 |
| 76 |
// input[5]: defaulting = 1, visible = 0, type = 5, value = 0.0 |
| 77 |
// input[6]: defaulting = 1, visible = 0, type = 5, value = 100.0 |
| 78 |
// input[7]: defaulting = 1, visible = 0, type = 5, value = 1.0 |
| 79 |
// input[9]: defaulting = 1, visible = 0, type = 1, value = 2 |
| 80 |
// output[1]: visible = 1, type = 5, value = 3.0 |
| 81 |
// page group: iso_or_glyph |
| 82 |
// |
| 83 |
// |
| 84 |
// node SimplifySurface[1]: x = 176, y = 246, inputs = 8, label = SimplifySurface |
| 85 |
// input[2]: defaulting = 1, visible = 1, type = 5, value = 5.0 |
| 86 |
// input[4]: defaulting = 0, visible = 0, type = 3, value = 0 |
| 87 |
// input[5]: defaulting = 0, visible = 0, type = 3, value = 1 |
| 88 |
// page group: iso_or_glyph |
| 89 |
// |
| 90 |
main_SimplifySurface_1_out_1 = |
| 91 |
SimplifySurface( |
| 92 |
main_Isosurface_2_out_1, |
| 93 |
main_Scalar_6_out_1, |
| 94 |
main_SimplifySurface_1_in_3, |
| 95 |
main_SimplifySurface_1_in_4, |
| 96 |
main_SimplifySurface_1_in_5, |
| 97 |
main_SimplifySurface_1_in_6, |
| 98 |
main_SimplifySurface_1_in_7, |
| 99 |
main_SimplifySurface_1_in_8 |
| 100 |
) [instance: 1, cache: 1]; |
| 101 |
// |
| 102 |
// node Color[5]: x = 69, y = 373, inputs = 5, label = Color |
| 103 |
// input[3]: defaulting = 0, visible = 1, type = 5, value = .4 |
| 104 |
// page group: iso_or_glyph |
| 105 |
// |
| 106 |
main_Color_5_out_1 = |
| 107 |
Color( |
| 108 |
main_SimplifySurface_1_out_1, |
| 109 |
main_Color_5_in_2, |
| 110 |
main_Color_5_in_3, |
| 111 |
main_Color_5_in_4, |
| 112 |
main_Color_5_in_5 |
| 113 |
) [instance: 5, cache: 1]; |
| 114 |
// |
| 115 |
// node ShowConnections[1]: x = 41, y = 459, inputs = 1, label = ShowConnections |
| 116 |
// page group: iso_or_glyph |
| 117 |
// |
| 118 |
main_ShowConnections_1_out_1 = |
| 119 |
ShowConnections( |
| 120 |
main_Color_5_out_1 |
| 121 |
) [instance: 1, cache: 1]; |
| 122 |
// |
| 123 |
// node Transmitter[2]: x = 37, y = 545, inputs = 1, label = isosurface_or_glyphs |
| 124 |
// page group: iso_or_glyph |
| 125 |
// |
| 126 |
isosurface_or_glyphs = main_ShowConnections_1_out_1; |
| 127 |
// |
| 128 |
// node Receiver[3]: x = 69, y = 72, inputs = 1, label = isosurface_or_glyphs |
| 129 |
// page group: image |
| 130 |
// |
| 131 |
main_Receiver_3_out_1[cache: 0] = isosurface_or_glyphs; |
| 132 |
// |
| 133 |
// node AutoCamera[1]: x = 187, y = 279, inputs = 9, label = AutoCamera |
| 134 |
// input[2]: defaulting = 0, visible = 1, type = 32, value = "off-diagonal" |
| 135 |
// page group: image |
| 136 |
// |
| 137 |
main_AutoCamera_1_out_1 = |
| 138 |
AutoCamera( |
| 139 |
main_Receiver_3_out_1, |
| 140 |
main_AutoCamera_1_in_2, |
| 141 |
main_AutoCamera_1_in_3, |
| 142 |
main_AutoCamera_1_in_4, |
| 143 |
main_AutoCamera_1_in_5, |
| 144 |
main_AutoCamera_1_in_6, |
| 145 |
main_AutoCamera_1_in_7, |
| 146 |
main_AutoCamera_1_in_8, |
| 147 |
main_AutoCamera_1_in_9 |
| 148 |
) [instance: 1, cache: 1]; |
| 149 |
// |
| 150 |
// node FileSelector[3]: x = 360, y = 311, inputs = 0, label = FileSelector |
| 151 |
// output[1]: visible = 1, type = 32, value = "surface" |
| 152 |
// output[2]: visible = 1, type = 32, value = "surface" |
| 153 |
// page group: iso_or_glyph |
| 154 |
// |
| 155 |
// |
| 156 |
// node Reset[4]: x = 280, y = 372, inputs = 6, label = Reset |
| 157 |
// input[1]: defaulting = 0, visible = 0, type = 32, value = "main_Reset_4_out_1" |
| 158 |
// input[2]: defaulting = 0, visible = 0, type = 29, value = 0 |
| 159 |
// input[3]: defaulting = 0, visible = 0, type = 3, value = 0 |
| 160 |
// input[4]: defaulting = 1, visible = 0, type = 29, value = 1 |
| 161 |
// input[5]: defaulting = 1, visible = 0, type = 29, value = 0 |
| 162 |
// output[1]: visible = 1, type = 29, value = 0 |
| 163 |
// page group: image |
| 164 |
// toggle : 0 |
| 165 |
// |
| 166 |
// |
| 167 |
// node Image[5]: x = 102, y = 465, inputs = 49, label = Image |
| 168 |
// input[1]: defaulting = 0, visible = 0, type = 67108863, value = "Image_5" |
| 169 |
// input[4]: defaulting = 0, visible = 0, type = 1, value = 1 |
| 170 |
// input[5]: defaulting = 0, visible = 0, type = 8, value = [-35.3442 20.6234 12.145] |
| 171 |
// input[6]: defaulting = 0, visible = 0, type = 8, value = [-226.299 125.013 219.23] |
| 172 |
// input[7]: defaulting = 0, visible = 0, type = 5, value = 47.2905 |
| 173 |
// input[8]: defaulting = 0, visible = 0, type = 1, value = 640 |
| 174 |
// input[9]: defaulting = 0, visible = 0, type = 5, value = 0.75 |
| 175 |
// input[10]: defaulting = 0, visible = 0, type = 8, value = [-0.546075 0.428781 -0.719687] |
| 176 |
// input[11]: defaulting = 1, visible = 0, type = 5, value = 9.00099 |
| 177 |
// input[12]: defaulting = 0, visible = 0, type = 1, value = 0 |
| 178 |
// input[14]: defaulting = 0, visible = 0, type = 1, value = 1 |
| 179 |
// input[15]: defaulting = 1, visible = 0, type = 32, value = "none" |
| 180 |
// input[16]: defaulting = 1, visible = 0, type = 32, value = "none" |
| 181 |
// input[17]: defaulting = 1, visible = 0, type = 1, value = 1 |
| 182 |
// input[18]: defaulting = 1, visible = 0, type = 1, value = 1 |
| 183 |
// input[19]: defaulting = 0, visible = 0, type = 1, value = 0 |
| 184 |
// input[20]: visible = 1 |
| 185 |
// input[21]: visible = 1 |
| 186 |
// input[29]: defaulting = 1, visible = 0, type = 3, value = 0 |
| 187 |
// input[41]: defaulting = 0, visible = 0, type = 32, value = "rotate" |
| 188 |
// input[42]: defaulting = 0, visible = 0, type = 32, value = "Gridded_3D_1var_notseries" |
| 189 |
// page group: image |
| 190 |
// title: value = Gridded_3D_1var_notseries |
| 191 |
// depth: value = 24 |
| 192 |
// window: position = (0.4422,0.3779), size = 0.5109x0.5117 |
| 193 |
// internal caching: 1 |
| 194 |
// |
| 195 |
main_Image_5_out_1, |
| 196 |
main_Image_5_out_2, |
| 197 |
main_Image_5_out_3 = |
| 198 |
Image( |
| 199 |
main_Image_5_in_1, |
| 200 |
main_Receiver_3_out_1, |
| 201 |
main_Image_5_in_3, |
| 202 |
main_Image_5_in_4, |
| 203 |
main_Image_5_in_5, |
| 204 |
main_Image_5_in_6, |
| 205 |
main_Image_5_in_7, |
| 206 |
main_Image_5_in_8, |
| 207 |
main_Image_5_in_9, |
| 208 |
main_Image_5_in_10, |
| 209 |
main_Image_5_in_11, |
| 210 |
main_Image_5_in_12, |
| 211 |
main_Image_5_in_13, |
| 212 |
main_Image_5_in_14, |
| 213 |
main_Image_5_in_15, |
| 214 |
main_Image_5_in_16, |
| 215 |
main_Image_5_in_17, |
| 216 |
main_Image_5_in_18, |
| 217 |
main_Image_5_in_19, |
| 218 |
main_AutoCamera_1_out_1, |
| 219 |
main_Reset_4_out_1, |
| 220 |
main_Image_5_in_22, |
| 221 |
main_Image_5_in_23, |
| 222 |
main_Image_5_in_24, |
| 223 |
main_Image_5_in_25, |
| 224 |
main_Image_5_in_26, |
| 225 |
main_Image_5_in_27, |
| 226 |
main_Image_5_in_28, |
| 227 |
main_Image_5_in_29, |
| 228 |
main_Image_5_in_30, |
| 229 |
main_Image_5_in_31, |
| 230 |
main_Image_5_in_32, |
| 231 |
main_Image_5_in_33, |
| 232 |
main_Image_5_in_34, |
| 233 |
main_Image_5_in_35, |
| 234 |
main_Image_5_in_36, |
| 235 |
main_Image_5_in_37, |
| 236 |
main_Image_5_in_38, |
| 237 |
main_Image_5_in_39, |
| 238 |
main_Image_5_in_40, |
| 239 |
main_Image_5_in_41, |
| 240 |
main_Image_5_in_42, |
| 241 |
main_Image_5_in_43, |
| 242 |
main_Image_5_in_44, |
| 243 |
main_Image_5_in_45, |
| 244 |
main_Image_5_in_46, |
| 245 |
main_Image_5_in_47, |
| 246 |
main_Image_5_in_48, |
| 247 |
main_Image_5_in_49 |
| 248 |
) [instance: 5, cache: 1]; |
| 249 |
// |
| 250 |
// node Print[2]: x = 193, y = 338, inputs = 3, label = Print |
| 251 |
// input[2]: defaulting = 0, visible = 1, type = 32, value = "rd" |
| 252 |
// page group: iso_or_glyph |
| 253 |
// |
| 254 |
Print( |
| 255 |
main_SimplifySurface_1_out_1, |
| 256 |
main_Print_2_in_2, |
| 257 |
main_Print_2_in_3 |
| 258 |
) [instance: 2, cache: 1]; |
| 259 |
// |
| 260 |
// node vrmlexport[2]: x = 285, y = 427, inputs = 2, label = vrmlexport |
| 261 |
// page group: iso_or_glyph |
| 262 |
// |
| 263 |
main_vrmlexport_2_out_1 = |
| 264 |
vrmlexport( |
| 265 |
main_SimplifySurface_1_out_1, |
| 266 |
main_FileSelector_3_out_1 |
| 267 |
) [instance: 2, cache: 1]; |
| 268 |
// |
| 269 |
// node Print[4]: x = 373, y = 517, inputs = 3, label = Print |
| 270 |
// input[2]: defaulting = 0, visible = 1, type = 32, value = "rd" |
| 271 |
// page group: iso_or_glyph |
| 272 |
// |
| 273 |
Print( |
| 274 |
main_vrmlexport_2_out_1, |
| 275 |
main_Print_4_in_2, |
| 276 |
main_Print_4_in_3 |
| 277 |
) [instance: 4, cache: 1]; |
| 278 |
// network: end of macro body |
| 279 |
CacheScene(main_Image_5_in_1, main_Image_5_out_1, main_Image_5_out_2); |
| 280 |
} |
| 281 |
main_FileSelector_1_out_1 = "/home/nbaker/coding/manifold/mesh-gen/test/mache/ache-wild.acc.dx"; |
| 282 |
main_String_1_out_1 = "dx"; |
| 283 |
main_Import_1_in_2 = NULL; |
| 284 |
main_Import_1_in_4 = NULL; |
| 285 |
main_Import_1_in_5 = NULL; |
| 286 |
main_Import_1_in_6 = NULL; |
| 287 |
main_Import_1_out_1 = NULL; |
| 288 |
main_Transmitter_1_out_1 = NULL; |
| 289 |
main_Receiver_1_out_1 = NULL; |
| 290 |
main_Isosurface_2_in_2 = 0.5; |
| 291 |
main_Isosurface_2_in_3 = NULL; |
| 292 |
main_Isosurface_2_in_4 = NULL; |
| 293 |
main_Isosurface_2_in_5 = NULL; |
| 294 |
main_Isosurface_2_in_6 = NULL; |
| 295 |
main_Isosurface_2_out_1 = NULL; |
| 296 |
main_Scalar_6_in_1 = "Scalar_6"; |
| 297 |
main_Scalar_6_in_2 = NULL; |
| 298 |
main_Scalar_6_in_3 = 3.0 ; |
| 299 |
main_Scalar_6_in_4 = NULL; |
| 300 |
main_Scalar_6_in_5 = NULL; |
| 301 |
main_Scalar_6_in_6 = NULL; |
| 302 |
main_Scalar_6_in_7 = NULL; |
| 303 |
main_Scalar_6_in_8 = NULL; |
| 304 |
main_Scalar_6_in_9 = NULL; |
| 305 |
main_Scalar_6_in_10 = NULL; |
| 306 |
main_Scalar_6_in_11 = NULL; |
| 307 |
main_Scalar_6_out_1 = 3.0 ; |
| 308 |
main_SimplifySurface_1_in_3 = NULL; |
| 309 |
main_SimplifySurface_1_in_4 = 0; |
| 310 |
main_SimplifySurface_1_in_5 = 1; |
| 311 |
main_SimplifySurface_1_in_6 = NULL; |
| 312 |
main_SimplifySurface_1_in_7 = NULL; |
| 313 |
main_SimplifySurface_1_in_8 = NULL; |
| 314 |
main_SimplifySurface_1_out_1 = NULL; |
| 315 |
main_Color_5_in_2 = NULL; |
| 316 |
main_Color_5_in_3 = .4; |
| 317 |
main_Color_5_in_4 = NULL; |
| 318 |
main_Color_5_in_5 = NULL; |
| 319 |
main_Color_5_out_1 = NULL; |
| 320 |
main_ShowConnections_1_out_1 = NULL; |
| 321 |
main_Transmitter_2_out_1 = NULL; |
| 322 |
main_Receiver_3_out_1 = NULL; |
| 323 |
main_AutoCamera_1_in_2 = "off-diagonal"; |
| 324 |
main_AutoCamera_1_in_3 = NULL; |
| 325 |
main_AutoCamera_1_in_4 = NULL; |
| 326 |
main_AutoCamera_1_in_5 = NULL; |
| 327 |
main_AutoCamera_1_in_6 = NULL; |
| 328 |
main_AutoCamera_1_in_7 = NULL; |
| 329 |
main_AutoCamera_1_in_8 = NULL; |
| 330 |
main_AutoCamera_1_in_9 = NULL; |
| 331 |
main_AutoCamera_1_out_1 = NULL; |
| 332 |
main_FileSelector_3_out_1 = "surface"; |
| 333 |
main_Reset_4_in_1 = "main_Reset_4_out_1"; |
| 334 |
main_Reset_4_in_2 = 0; |
| 335 |
main_Reset_4_in_3 = 0; |
| 336 |
main_Reset_4_in_4 = NULL; |
| 337 |
main_Reset_4_in_5 = NULL; |
| 338 |
main_Reset_4_in_6 = NULL; |
| 339 |
main_Reset_4_out_1 = 0; |
| 340 |
macro Image( |
| 341 |
id, |
| 342 |
object, |
| 343 |
where, |
| 344 |
useVector, |
| 345 |
to, |
| 346 |
from, |
| 347 |
width, |
| 348 |
resolution, |
| 349 |
aspect, |
| 350 |
up, |
| 351 |
viewAngle, |
| 352 |
perspective, |
| 353 |
options, |
| 354 |
buttonState = 1, |
| 355 |
buttonUpApprox = "none", |
| 356 |
buttonDownApprox = "none", |
| 357 |
buttonUpDensity = 1, |
| 358 |
buttonDownDensity = 1, |
| 359 |
renderMode = 0, |
| 360 |
defaultCamera, |
| 361 |
reset, |
| 362 |
backgroundColor, |
| 363 |
throttle, |
| 364 |
RECenable = 0, |
| 365 |
RECfile, |
| 366 |
RECformat, |
| 367 |
RECresolution, |
| 368 |
RECaspect, |
| 369 |
AAenable = 0, |
| 370 |
AAlabels, |
| 371 |
AAticks, |
| 372 |
AAcorners, |
| 373 |
AAframe, |
| 374 |
AAadjust, |
| 375 |
AAcursor, |
| 376 |
AAgrid, |
| 377 |
AAcolors, |
| 378 |
AAannotation, |
| 379 |
AAlabelscale, |
| 380 |
AAfont, |
| 381 |
interactionMode, |
| 382 |
title, |
| 383 |
AAxTickLocs, |
| 384 |
AAyTickLocs, |
| 385 |
AAzTickLocs, |
| 386 |
AAxTickLabels, |
| 387 |
AAyTickLabels, |
| 388 |
AAzTickLabels, |
| 389 |
webOptions) -> ( |
| 390 |
object, |
| 391 |
camera, |
| 392 |
where) |
| 393 |
{ |
| 394 |
ImageMessage( |
| 395 |
id, |
| 396 |
backgroundColor, |
| 397 |
throttle, |
| 398 |
RECenable, |
| 399 |
RECfile, |
| 400 |
RECformat, |
| 401 |
RECresolution, |
| 402 |
RECaspect, |
| 403 |
AAenable, |
| 404 |
AAlabels, |
| 405 |
AAticks, |
| 406 |
AAcorners, |
| 407 |
AAframe, |
| 408 |
AAadjust, |
| 409 |
AAcursor, |
| 410 |
AAgrid, |
| 411 |
AAcolors, |
| 412 |
AAannotation, |
| 413 |
AAlabelscale, |
| 414 |
AAfont, |
| 415 |
AAxTickLocs, |
| 416 |
AAyTickLocs, |
| 417 |
AAzTickLocs, |
| 418 |
AAxTickLabels, |
| 419 |
AAyTickLabels, |
| 420 |
AAzTickLabels, |
| 421 |
interactionMode, |
| 422 |
title, |
| 423 |
renderMode, |
| 424 |
buttonUpApprox, |
| 425 |
buttonDownApprox, |
| 426 |
buttonUpDensity, |
| 427 |
buttonDownDensity) [instance: 1, cache: 1]; |
| 428 |
autoCamera = |
| 429 |
AutoCamera( |
| 430 |
object, |
| 431 |
"front", |
| 432 |
object, |
| 433 |
resolution, |
| 434 |
aspect, |
| 435 |
[0,1,0], |
| 436 |
perspective, |
| 437 |
viewAngle, |
| 438 |
backgroundColor) [instance: 1, cache: 1]; |
| 439 |
realCamera = |
| 440 |
Camera( |
| 441 |
to, |
| 442 |
from, |
| 443 |
width, |
| 444 |
resolution, |
| 445 |
aspect, |
| 446 |
up, |
| 447 |
perspective, |
| 448 |
viewAngle, |
| 449 |
backgroundColor) [instance: 1, cache: 1]; |
| 450 |
coloredDefaultCamera = |
| 451 |
UpdateCamera(defaultCamera, |
| 452 |
background=backgroundColor) [instance: 1, cache: 1]; |
| 453 |
nullDefaultCamera = |
| 454 |
Inquire(defaultCamera, |
| 455 |
"is null + 1") [instance: 1, cache: 1]; |
| 456 |
resetCamera = |
| 457 |
Switch( |
| 458 |
nullDefaultCamera, |
| 459 |
coloredDefaultCamera, |
| 460 |
autoCamera) [instance: 1, cache: 1]; |
| 461 |
resetNull = |
| 462 |
Inquire( |
| 463 |
reset, |
| 464 |
"is null + 1") [instance: 2, cache: 1]; |
| 465 |
reset = |
| 466 |
Switch( |
| 467 |
resetNull, |
| 468 |
reset, |
| 469 |
0) [instance: 2, cache: 1]; |
| 470 |
whichCamera = |
| 471 |
Compute( |
| 472 |
"($0 != 0 || $1 == 0) ? 1 : 2", |
| 473 |
reset, |
| 474 |
useVector) [instance: 1, cache: 1]; |
| 475 |
camera = Switch( |
| 476 |
whichCamera, |
| 477 |
resetCamera, |
| 478 |
realCamera) [instance: 3, cache: 1]; |
| 479 |
AAobject = |
| 480 |
AutoAxes( |
| 481 |
object, |
| 482 |
camera, |
| 483 |
AAlabels, |
| 484 |
AAticks, |
| 485 |
AAcorners, |
| 486 |
AAframe, |
| 487 |
AAadjust, |
| 488 |
AAcursor, |
| 489 |
AAgrid, |
| 490 |
AAcolors, |
| 491 |
AAannotation, |
| 492 |
AAlabelscale, |
| 493 |
AAfont, |
| 494 |
AAxTickLocs, |
| 495 |
AAyTickLocs, |
| 496 |
AAzTickLocs, |
| 497 |
AAxTickLabels, |
| 498 |
AAyTickLabels, |
| 499 |
AAzTickLabels) [instance: 1, cache: 1]; |
| 500 |
switchAAenable = Compute("$0+1", |
| 501 |
AAenable) [instance: 2, cache: 1]; |
| 502 |
object = Switch( |
| 503 |
switchAAenable, |
| 504 |
object, |
| 505 |
AAobject) [instance:4, cache: 1]; |
| 506 |
SWapproximation_options = |
| 507 |
Switch( |
| 508 |
buttonState, |
| 509 |
buttonUpApprox, |
| 510 |
buttonDownApprox) [instance: 5, cache: 1]; |
| 511 |
SWdensity_options = |
| 512 |
Switch( |
| 513 |
buttonState, |
| 514 |
buttonUpDensity, |
| 515 |
buttonDownDensity) [instance: 6, cache: 1]; |
| 516 |
HWapproximation_options = |
| 517 |
Format( |
| 518 |
"%s,%s", |
| 519 |
buttonDownApprox, |
| 520 |
buttonUpApprox) [instance: 1, cache: 1]; |
| 521 |
HWdensity_options = |
| 522 |
Format( |
| 523 |
"%d,%d", |
| 524 |
buttonDownDensity, |
| 525 |
buttonUpDensity) [instance: 2, cache: 1]; |
| 526 |
switchRenderMode = Compute( |
| 527 |
"$0+1", |
| 528 |
renderMode) [instance: 3, cache: 1]; |
| 529 |
approximation_options = Switch( |
| 530 |
switchRenderMode, |
| 531 |
SWapproximation_options, |
| 532 |
HWapproximation_options) [instance: 7, cache: 1]; |
| 533 |
density_options = Switch( |
| 534 |
switchRenderMode, |
| 535 |
SWdensity_options, |
| 536 |
HWdensity_options) [instance: 8, cache: 1]; |
| 537 |
renderModeString = Switch( |
| 538 |
switchRenderMode, |
| 539 |
"software", |
| 540 |
"hardware")[instance: 9, cache: 1]; |
| 541 |
object_tag = Inquire( |
| 542 |
object, |
| 543 |
"object tag")[instance: 3, cache: 1]; |
| 544 |
annoted_object = |
| 545 |
Options( |
| 546 |
object, |
| 547 |
"send boxes", |
| 548 |
0, |
| 549 |
"cache", |
| 550 |
1, |
| 551 |
"object tag", |
| 552 |
object_tag, |
| 553 |
"ddcamera", |
| 554 |
whichCamera, |
| 555 |
"rendering approximation", |
| 556 |
approximation_options, |
| 557 |
"render every", |
| 558 |
density_options, |
| 559 |
"button state", |
| 560 |
buttonState, |
| 561 |
"rendering mode", |
| 562 |
renderModeString) [instance: 1, cache: 1]; |
| 563 |
RECresNull = |
| 564 |
Inquire( |
| 565 |
RECresolution, |
| 566 |
"is null + 1") [instance: 4, cache: 1]; |
| 567 |
ImageResolution = |
| 568 |
Inquire( |
| 569 |
camera, |
| 570 |
"camera resolution") [instance: 5, cache: 1]; |
| 571 |
RECresolution = |
| 572 |
Switch( |
| 573 |
RECresNull, |
| 574 |
RECresolution, |
| 575 |
ImageResolution) [instance: 10, cache: 1]; |
| 576 |
RECaspectNull = |
| 577 |
Inquire( |
| 578 |
RECaspect, |
| 579 |
"is null + 1") [instance: 6, cache: 1]; |
| 580 |
ImageAspect = |
| 581 |
Inquire( |
| 582 |
camera, |
| 583 |
"camera aspect") [instance: 7, cache: 1]; |
| 584 |
RECaspect = |
| 585 |
Switch( |
| 586 |
RECaspectNull, |
| 587 |
RECaspect, |
| 588 |
ImageAspect) [instance: 11, cache: 1]; |
| 589 |
switchRECenable = Compute( |
| 590 |
"$0 == 0 ? 1 : (($2 == $3) && ($4 == $5)) ? ($1 == 1 ? 2 : 3) : 4", |
| 591 |
RECenable, |
| 592 |
switchRenderMode, |
| 593 |
RECresolution, |
| 594 |
ImageResolution, |
| 595 |
RECaspect, |
| 596 |
ImageAspect) [instance: 4, cache: 1]; |
| 597 |
NoRECobject, RECNoRerenderObject, RECNoRerHW, RECRerenderObject = Route(switchRECenable, annoted_object); |
| 598 |
Display( |
| 599 |
NoRECobject, |
| 600 |
camera, |
| 601 |
where, |
| 602 |
throttle) [instance: 1, cache: 1]; |
| 603 |
image = |
| 604 |
Render( |
| 605 |
RECNoRerenderObject, |
| 606 |
camera) [instance: 1, cache: 1]; |
| 607 |
Display( |
| 608 |
image, |
| 609 |
NULL, |
| 610 |
where, |
| 611 |
throttle) [instance: 2, cache: 1]; |
| 612 |
WriteImage( |
| 613 |
image, |
| 614 |
RECfile, |
| 615 |
RECformat) [instance: 1, cache: 1]; |
| 616 |
rec_where = Display( |
| 617 |
RECNoRerHW, |
| 618 |
camera, |
| 619 |
where, |
| 620 |
throttle) [instance: 1, cache: 0]; |
| 621 |
rec_image = ReadImageWindow( |
| 622 |
rec_where) [instance: 1, cache: 1]; |
| 623 |
WriteImage( |
| 624 |
rec_image, |
| 625 |
RECfile, |
| 626 |
RECformat) [instance: 1, cache: 1]; |
| 627 |
RECupdateCamera = |
| 628 |
UpdateCamera( |
| 629 |
camera, |
| 630 |
resolution=RECresolution, |
| 631 |
aspect=RECaspect) [instance: 2, cache: 1]; |
| 632 |
Display( |
| 633 |
RECRerenderObject, |
| 634 |
camera, |
| 635 |
where, |
| 636 |
throttle) [instance: 1, cache: 1]; |
| 637 |
RECRerenderObject = |
| 638 |
ScaleScreen( |
| 639 |
RECRerenderObject, |
| 640 |
NULL, |
| 641 |
RECresolution, |
| 642 |
camera) [instance: 1, cache: 1]; |
| 643 |
image = |
| 644 |
Render( |
| 645 |
RECRerenderObject, |
| 646 |
RECupdateCamera) [instance: 2, cache: 1]; |
| 647 |
WriteImage( |
| 648 |
image, |
| 649 |
RECfile, |
| 650 |
RECformat) [instance: 2, cache: 1]; |
| 651 |
} |
| 652 |
main_Image_5_in_1 = "Image_5"; |
| 653 |
main_Image_5_in_3 = "X24,,Gridded_3D_1var_notseries"; |
| 654 |
main_Image_5_in_4 = 1; |
| 655 |
main_Image_5_in_5 = [-35.3442 20.6234 12.145]; |
| 656 |
main_Image_5_in_6 = [-226.299 125.013 219.23]; |
| 657 |
main_Image_5_in_7 = 47.2905; |
| 658 |
main_Image_5_in_8 = 640; |
| 659 |
main_Image_5_in_9 = 0.75; |
| 660 |
main_Image_5_in_10 = [-0.546075 0.428781 -0.719687]; |
| 661 |
main_Image_5_in_11 = NULL; |
| 662 |
main_Image_5_in_12 = 0; |
| 663 |
main_Image_5_in_13 = NULL; |
| 664 |
main_Image_5_in_14 = 1; |
| 665 |
main_Image_5_in_15 = NULL; |
| 666 |
main_Image_5_in_16 = NULL; |
| 667 |
main_Image_5_in_17 = NULL; |
| 668 |
main_Image_5_in_18 = NULL; |
| 669 |
main_Image_5_in_19 = 0; |
| 670 |
main_Image_5_in_22 = NULL; |
| 671 |
main_Image_5_in_23 = NULL; |
| 672 |
main_Image_5_in_25 = NULL; |
| 673 |
main_Image_5_in_26 = NULL; |
| 674 |
main_Image_5_in_27 = NULL; |
| 675 |
main_Image_5_in_28 = NULL; |
| 676 |
main_Image_5_in_29 = NULL; |
| 677 |
main_Image_5_in_30 = NULL; |
| 678 |
main_Image_5_in_31 = NULL; |
| 679 |
main_Image_5_in_32 = NULL; |
| 680 |
main_Image_5_in_33 = NULL; |
| 681 |
main_Image_5_in_34 = NULL; |
| 682 |
main_Image_5_in_35 = NULL; |
| 683 |
main_Image_5_in_36 = NULL; |
| 684 |
main_Image_5_in_37 = NULL; |
| 685 |
main_Image_5_in_38 = NULL; |
| 686 |
main_Image_5_in_39 = NULL; |
| 687 |
main_Image_5_in_40 = NULL; |
| 688 |
main_Image_5_in_41 = "rotate"; |
| 689 |
main_Image_5_in_42 = "Gridded_3D_1var_notseries"; |
| 690 |
main_Image_5_in_43 = NULL; |
| 691 |
main_Image_5_in_44 = NULL; |
| 692 |
main_Image_5_in_45 = NULL; |
| 693 |
main_Image_5_in_46 = NULL; |
| 694 |
main_Image_5_in_47 = NULL; |
| 695 |
main_Image_5_in_48 = NULL; |
| 696 |
main_Image_5_in_49 = NULL; |
| 697 |
main_Print_2_in_2 = "rd"; |
| 698 |
main_Print_2_in_3 = NULL; |
| 699 |
main_vrmlexport_2_out_1 = NULL; |
| 700 |
main_Print_4_in_2 = "rd"; |
| 701 |
main_Print_4_in_3 = NULL; |
| 702 |
Executive("product version 4 1 3"); |
| 703 |
$sync |
| 704 |
main(); |