| 1 |
// |
| 2 |
// time: Sun Dec 14 21:46:26 2003 |
| 3 |
// |
| 4 |
// version: 3.2.0 (format), 4.3.0 (DX) |
| 5 |
// |
| 6 |
// |
| 7 |
// MODULE main |
| 8 |
// |
| 9 |
// comment: A general purpose visual program for gridded, two-dimensional data has been used. |
| 10 |
// comment: |
| 11 |
// comment: The 2-dimensional surface is colored using a data-driven colormap editor (choose Open All Colormap Editors from the Windows menu of the Image window). |
| 12 |
// comment: |
| 13 |
// comment: If the data are scalar, then the colored surface is deformed using RubberSheet. If the data are position-dependent, contour lines are added. |
| 14 |
// comment: |
| 15 |
// comment: If the data are vector, then glyphs (arrows) are drawn at sampled points on the colored surface. |
| 16 |
// comment: |
| 17 |
// comment: If you would like to modify or use this visual program in the future, choose Open Visual Program Editor from the Windows menu, and then Save As from the File menu of the VPE. |
| 18 |
// page assignment: scalar_viz order=2, windowed=0, showing=1 |
| 19 |
// workspace: width = 541, height = 642 |
| 20 |
// layout: snap = 0, width = 50, height = 20, align = NN |
| 21 |
// |
| 22 |
macro main( |
| 23 |
) -> ( |
| 24 |
) { |
| 25 |
// |
| 26 |
// node FileSelector[2]: x = 27, y = 17, inputs = 0, label = FileSelector |
| 27 |
// output[1]: visible = 1, type = 32, value = "visu_section.dxhead" |
| 28 |
// output[2]: visible = 1, type = 32, value = "visu_section.dxhead" |
| 29 |
// page group: scalar_viz |
| 30 |
// |
| 31 |
// |
| 32 |
// node Import[2]: x = 223, y = 54, inputs = 6, label = Import |
| 33 |
// input[1]: defaulting = 1, visible = 1, type = 32, value = "/usr/lpp/dx/samples/data/southeastern_topo.dx" |
| 34 |
// input[3]: defaulting = 0, visible = 1, type = 32, value = "general" |
| 35 |
// page group: scalar_viz |
| 36 |
// |
| 37 |
main_Import_2_out_1 = |
| 38 |
Import( |
| 39 |
main_FileSelector_2_out_1, |
| 40 |
main_Import_2_in_2, |
| 41 |
main_Import_2_in_3, |
| 42 |
main_Import_2_in_4, |
| 43 |
main_Import_2_in_5, |
| 44 |
main_Import_2_in_6 |
| 45 |
) [instance: 2, cache: 1]; |
| 46 |
// |
| 47 |
// node Attribute[1]: x = 456, y = 198, inputs = 2, label = Attribute |
| 48 |
// page group: scalar_viz |
| 49 |
// |
| 50 |
main_Attribute_1_out_1 = |
| 51 |
Attribute( |
| 52 |
main_Import_2_out_1, |
| 53 |
main_Attribute_1_in_2 |
| 54 |
) [instance: 1, cache: 1]; |
| 55 |
// |
| 56 |
// node Caption[2]: x = 480, y = 449, inputs = 9, label = Caption |
| 57 |
// page group: scalar_viz |
| 58 |
// |
| 59 |
main_Caption_2_out_1 = |
| 60 |
Caption( |
| 61 |
main_Attribute_1_out_1, |
| 62 |
main_Caption_2_in_2, |
| 63 |
main_Caption_2_in_3, |
| 64 |
main_Caption_2_in_4, |
| 65 |
main_Caption_2_in_5, |
| 66 |
main_Caption_2_in_6, |
| 67 |
main_Caption_2_in_7, |
| 68 |
main_Caption_2_in_8, |
| 69 |
main_Caption_2_in_9 |
| 70 |
) [instance: 2, cache: 1]; |
| 71 |
// |
| 72 |
// node Colormap[5]: x = 251, y = 161, inputs = 19, label = Colormap |
| 73 |
// input[1]: defaulting = 0, visible = 0, type = 16777224, value = { [0.0 0.666667] [1.0 0.0] } |
| 74 |
// input[2]: defaulting = 0, visible = 0, type = 16777224, value = { [0.0 1.0] [1.0 1.0] } |
| 75 |
// input[3]: defaulting = 0, visible = 0, type = 16777224, value = { [0.0 1.0] [1.0 1.0] } |
| 76 |
// input[4]: defaulting = 0, visible = 0, type = 16777224, value = { [0.0 1.0] [1.0 1.0] } |
| 77 |
// input[5]: defaulting = 0, visible = 0, type = 32, value = "Colormap_5" |
| 78 |
// input[7]: defaulting = 1, visible = 0, type = 5, value = -0.31808299 |
| 79 |
// input[8]: defaulting = 1, visible = 0, type = 5, value = 2.4323599 |
| 80 |
// input[9]: defaulting = 1, visible = 0, type = 1, value = 20 |
| 81 |
// input[12]: defaulting = 0, visible = 0, type = 16777221, value = { -0.31808299 2.4323599 } |
| 82 |
// input[17]: defaulting = 0, visible = 0, type = 5, value = -0.31808299 |
| 83 |
// input[18]: defaulting = 0, visible = 0, type = 5, value = 2.4323599 |
| 84 |
// page group: scalar_viz |
| 85 |
// window: position = (0.4557,0.0324), size = 0.5364x0.3905 |
| 86 |
// |
| 87 |
main_Colormap_5_out_1[cache: 2], |
| 88 |
main_Colormap_5_out_2[cache: 2] = |
| 89 |
Colormap( |
| 90 |
main_Colormap_5_in_1, |
| 91 |
main_Colormap_5_in_2, |
| 92 |
main_Colormap_5_in_3, |
| 93 |
main_Colormap_5_in_4, |
| 94 |
main_Colormap_5_in_5, |
| 95 |
main_Import_2_out_1, |
| 96 |
main_Colormap_5_in_7, |
| 97 |
main_Colormap_5_in_8, |
| 98 |
main_Colormap_5_in_9, |
| 99 |
main_Colormap_5_in_10, |
| 100 |
main_Colormap_5_in_11, |
| 101 |
main_Colormap_5_in_12, |
| 102 |
main_Colormap_5_in_13, |
| 103 |
main_Colormap_5_in_14, |
| 104 |
main_Colormap_5_in_15, |
| 105 |
main_Colormap_5_in_16, |
| 106 |
main_Colormap_5_in_17, |
| 107 |
main_Colormap_5_in_18, |
| 108 |
main_Colormap_5_in_19 |
| 109 |
) [instance: 5, cache: 1]; |
| 110 |
// |
| 111 |
// node Color[5]: x = 140, y = 229, inputs = 5, label = Color |
| 112 |
// page group: scalar_viz |
| 113 |
// |
| 114 |
main_Color_5_out_1 = |
| 115 |
Color( |
| 116 |
main_Import_2_out_1, |
| 117 |
main_Colormap_5_out_1, |
| 118 |
main_Color_5_in_3, |
| 119 |
main_Color_5_in_4, |
| 120 |
main_Color_5_in_5 |
| 121 |
) [instance: 5, cache: 1]; |
| 122 |
// |
| 123 |
// node RubberSheet[1]: x = 149, y = 304, inputs = 4, label = RubberSheet |
| 124 |
// input[2]: defaulting = 0, visible = 1, type = 5, value = 1. |
| 125 |
// page group: scalar_viz |
| 126 |
// |
| 127 |
main_RubberSheet_1_out_1 = |
| 128 |
RubberSheet( |
| 129 |
main_Color_5_out_1, |
| 130 |
main_RubberSheet_1_in_2, |
| 131 |
main_RubberSheet_1_in_3, |
| 132 |
main_RubberSheet_1_in_4 |
| 133 |
) [instance: 1, cache: 1]; |
| 134 |
// |
| 135 |
// node Isosurface[1]: x = 291, y = 384, inputs = 6, label = Isosurface |
| 136 |
// input[3]: defaulting = 0, visible = 1, type = 1, value = 15 |
| 137 |
// page group: scalar_viz |
| 138 |
// |
| 139 |
main_Isosurface_1_out_1 = |
| 140 |
Isosurface( |
| 141 |
main_RubberSheet_1_out_1, |
| 142 |
main_Isosurface_1_in_2, |
| 143 |
main_Isosurface_1_in_3, |
| 144 |
main_Isosurface_1_in_4, |
| 145 |
main_Isosurface_1_in_5, |
| 146 |
main_Isosurface_1_in_6 |
| 147 |
) [instance: 1, cache: 1]; |
| 148 |
// |
| 149 |
// node Color[2]: x = 362, y = 457, inputs = 5, label = Color |
| 150 |
// input[2]: defaulting = 0, visible = 1, type = 32, value = "black" |
| 151 |
// page group: scalar_viz |
| 152 |
// |
| 153 |
main_Color_2_out_1 = |
| 154 |
Color( |
| 155 |
main_Isosurface_1_out_1, |
| 156 |
main_Color_2_in_2, |
| 157 |
main_Color_2_in_3, |
| 158 |
main_Color_2_in_4, |
| 159 |
main_Color_2_in_5 |
| 160 |
) [instance: 2, cache: 1]; |
| 161 |
// |
| 162 |
// node Collect[1]: x = 113, y = 417, inputs = 2, label = Collect |
| 163 |
// page group: scalar_viz |
| 164 |
// |
| 165 |
main_Collect_1_out_1 = |
| 166 |
Collect( |
| 167 |
main_RubberSheet_1_out_1, |
| 168 |
main_Color_2_out_1 |
| 169 |
) [instance: 1, cache: 1]; |
| 170 |
// |
| 171 |
// node ColorBar[1]: x = 2, y = 293, inputs = 16, label = ColorBar |
| 172 |
// page group: scalar_viz |
| 173 |
// |
| 174 |
main_ColorBar_1_out_1 = |
| 175 |
ColorBar( |
| 176 |
main_Colormap_5_out_1, |
| 177 |
main_ColorBar_1_in_2, |
| 178 |
main_ColorBar_1_in_3, |
| 179 |
main_ColorBar_1_in_4, |
| 180 |
main_ColorBar_1_in_5, |
| 181 |
main_ColorBar_1_in_6, |
| 182 |
main_ColorBar_1_in_7, |
| 183 |
main_ColorBar_1_in_8, |
| 184 |
main_ColorBar_1_in_9, |
| 185 |
main_ColorBar_1_in_10, |
| 186 |
main_ColorBar_1_in_11, |
| 187 |
main_ColorBar_1_in_12, |
| 188 |
main_ColorBar_1_in_13, |
| 189 |
main_ColorBar_1_in_14, |
| 190 |
main_ColorBar_1_in_15, |
| 191 |
main_ColorBar_1_in_16 |
| 192 |
) [instance: 1, cache: 1]; |
| 193 |
// |
| 194 |
// node Collect[2]: x = 16, y = 515, inputs = 2, label = Collect |
| 195 |
// page group: scalar_viz |
| 196 |
// |
| 197 |
main_Collect_2_out_1 = |
| 198 |
Collect( |
| 199 |
main_ColorBar_1_out_1, |
| 200 |
main_Collect_1_out_1 |
| 201 |
) [instance: 2, cache: 1]; |
| 202 |
// |
| 203 |
// node Collect[3]: x = 247, y = 553, inputs = 2, label = Collect |
| 204 |
// page group: scalar_viz |
| 205 |
// |
| 206 |
main_Collect_3_out_1 = |
| 207 |
Collect( |
| 208 |
main_Collect_2_out_1, |
| 209 |
main_Caption_2_out_1 |
| 210 |
) [instance: 3, cache: 1]; |
| 211 |
// |
| 212 |
// node Image[5]: x = 369, y = 580, inputs = 49, label = Image |
| 213 |
// input[1]: defaulting = 0, visible = 0, type = 67108863, value = "Image_5" |
| 214 |
// input[4]: defaulting = 0, visible = 0, type = 1, value = 1 |
| 215 |
// input[5]: defaulting = 0, visible = 0, type = 8, value = [-2.38419e-07 2.26498e-06 1.05714] |
| 216 |
// input[6]: defaulting = 0, visible = 0, type = 8, value = [-2.38419e-07 2.26498e-06 16.2694] |
| 217 |
// input[7]: defaulting = 0, visible = 0, type = 5, value = 8.15224 |
| 218 |
// input[8]: defaulting = 0, visible = 0, type = 1, value = 701 |
| 219 |
// input[9]: defaulting = 0, visible = 0, type = 5, value = 0.707 |
| 220 |
// input[10]: defaulting = 0, visible = 0, type = 8, value = [0 1 0] |
| 221 |
// input[11]: defaulting = 0, visible = 0, type = 5, value = 30.0001 |
| 222 |
// input[12]: defaulting = 0, visible = 0, type = 1, value = 0 |
| 223 |
// input[14]: defaulting = 0, visible = 0, type = 1, value = 1 |
| 224 |
// input[15]: defaulting = 1, visible = 0, type = 32, value = "none" |
| 225 |
// input[16]: defaulting = 1, visible = 0, type = 32, value = "none" |
| 226 |
// input[17]: defaulting = 1, visible = 0, type = 1, value = 1 |
| 227 |
// input[18]: defaulting = 1, visible = 0, type = 1, value = 1 |
| 228 |
// input[19]: defaulting = 0, visible = 0, type = 1, value = 0 |
| 229 |
// input[29]: defaulting = 0, visible = 0, type = 3, value = 1 |
| 230 |
// input[41]: defaulting = 0, visible = 0, type = 32, value = "rotate" |
| 231 |
// page group: scalar_viz |
| 232 |
// depth: value = 16 |
| 233 |
// window: position = (0.3007,0.3914), size = 0.5107x0.5114 |
| 234 |
// internal caching: 1 |
| 235 |
// |
| 236 |
main_Image_5_out_1, |
| 237 |
main_Image_5_out_2, |
| 238 |
main_Image_5_out_3 = |
| 239 |
Image( |
| 240 |
main_Image_5_in_1, |
| 241 |
main_Collect_3_out_1, |
| 242 |
main_Image_5_in_3, |
| 243 |
main_Image_5_in_4, |
| 244 |
main_Image_5_in_5, |
| 245 |
main_Image_5_in_6, |
| 246 |
main_Image_5_in_7, |
| 247 |
main_Image_5_in_8, |
| 248 |
main_Image_5_in_9, |
| 249 |
main_Image_5_in_10, |
| 250 |
main_Image_5_in_11, |
| 251 |
main_Image_5_in_12, |
| 252 |
main_Image_5_in_13, |
| 253 |
main_Image_5_in_14, |
| 254 |
main_Image_5_in_15, |
| 255 |
main_Image_5_in_16, |
| 256 |
main_Image_5_in_17, |
| 257 |
main_Image_5_in_18, |
| 258 |
main_Image_5_in_19, |
| 259 |
main_Image_5_in_20, |
| 260 |
main_Image_5_in_21, |
| 261 |
main_Image_5_in_22, |
| 262 |
main_Image_5_in_23, |
| 263 |
main_Image_5_in_24, |
| 264 |
main_Image_5_in_25, |
| 265 |
main_Image_5_in_26, |
| 266 |
main_Image_5_in_27, |
| 267 |
main_Image_5_in_28, |
| 268 |
main_Image_5_in_29, |
| 269 |
main_Image_5_in_30, |
| 270 |
main_Image_5_in_31, |
| 271 |
main_Image_5_in_32, |
| 272 |
main_Image_5_in_33, |
| 273 |
main_Image_5_in_34, |
| 274 |
main_Image_5_in_35, |
| 275 |
main_Image_5_in_36, |
| 276 |
main_Image_5_in_37, |
| 277 |
main_Image_5_in_38, |
| 278 |
main_Image_5_in_39, |
| 279 |
main_Image_5_in_40, |
| 280 |
main_Image_5_in_41, |
| 281 |
main_Image_5_in_42, |
| 282 |
main_Image_5_in_43, |
| 283 |
main_Image_5_in_44, |
| 284 |
main_Image_5_in_45, |
| 285 |
main_Image_5_in_46, |
| 286 |
main_Image_5_in_47, |
| 287 |
main_Image_5_in_48, |
| 288 |
main_Image_5_in_49 |
| 289 |
) [instance: 5, cache: 1]; |
| 290 |
// network: end of macro body |
| 291 |
CacheScene(main_Image_5_in_1, main_Image_5_out_1, main_Image_5_out_2); |
| 292 |
} |
| 293 |
main_FileSelector_2_out_1 = "visu_section.dxhead"; |
| 294 |
main_Import_2_in_2 = NULL; |
| 295 |
main_Import_2_in_3 = "general"; |
| 296 |
main_Import_2_in_4 = NULL; |
| 297 |
main_Import_2_in_5 = NULL; |
| 298 |
main_Import_2_in_6 = NULL; |
| 299 |
main_Import_2_out_1 = NULL; |
| 300 |
main_Attribute_1_in_2 = NULL; |
| 301 |
main_Attribute_1_out_1 = NULL; |
| 302 |
main_Caption_2_in_2 = NULL; |
| 303 |
main_Caption_2_in_3 = NULL; |
| 304 |
main_Caption_2_in_4 = NULL; |
| 305 |
main_Caption_2_in_5 = NULL; |
| 306 |
main_Caption_2_in_6 = NULL; |
| 307 |
main_Caption_2_in_7 = NULL; |
| 308 |
main_Caption_2_in_8 = NULL; |
| 309 |
main_Caption_2_in_9 = NULL; |
| 310 |
main_Caption_2_out_1 = NULL; |
| 311 |
main_Colormap_5_in_1 = { [0.0 0.666667] [1.0 0.0] }; |
| 312 |
main_Colormap_5_in_2 = { [0.0 1.0] [1.0 1.0] }; |
| 313 |
main_Colormap_5_in_3 = { [0.0 1.0] [1.0 1.0] }; |
| 314 |
main_Colormap_5_in_4 = { [0.0 1.0] [1.0 1.0] }; |
| 315 |
main_Colormap_5_in_5 = "Colormap_5"; |
| 316 |
main_Colormap_5_in_7 = NULL; |
| 317 |
main_Colormap_5_in_8 = NULL; |
| 318 |
main_Colormap_5_in_9 = NULL; |
| 319 |
main_Colormap_5_in_10 = NULL; |
| 320 |
main_Colormap_5_in_11 = NULL; |
| 321 |
main_Colormap_5_in_12 = { -0.31808299 2.4323599 }; |
| 322 |
main_Colormap_5_in_13 = NULL; |
| 323 |
main_Colormap_5_in_14 = NULL; |
| 324 |
main_Colormap_5_in_15 = NULL; |
| 325 |
main_Colormap_5_in_16 = NULL; |
| 326 |
main_Colormap_5_in_17 = -0.31808299; |
| 327 |
main_Colormap_5_in_18 = 2.4323599; |
| 328 |
main_Colormap_5_in_19 = NULL; |
| 329 |
main_Colormap_5_out_1 = NULL; |
| 330 |
main_Color_5_in_3 = NULL; |
| 331 |
main_Color_5_in_4 = NULL; |
| 332 |
main_Color_5_in_5 = NULL; |
| 333 |
main_Color_5_out_1 = NULL; |
| 334 |
main_RubberSheet_1_in_2 = 1.; |
| 335 |
main_RubberSheet_1_in_3 = NULL; |
| 336 |
main_RubberSheet_1_in_4 = NULL; |
| 337 |
main_RubberSheet_1_out_1 = NULL; |
| 338 |
main_Isosurface_1_in_2 = NULL; |
| 339 |
main_Isosurface_1_in_3 = 15; |
| 340 |
main_Isosurface_1_in_4 = NULL; |
| 341 |
main_Isosurface_1_in_5 = NULL; |
| 342 |
main_Isosurface_1_in_6 = NULL; |
| 343 |
main_Isosurface_1_out_1 = NULL; |
| 344 |
main_Color_2_in_2 = "black"; |
| 345 |
main_Color_2_in_3 = NULL; |
| 346 |
main_Color_2_in_4 = NULL; |
| 347 |
main_Color_2_in_5 = NULL; |
| 348 |
main_Color_2_out_1 = NULL; |
| 349 |
main_Collect_1_out_1 = NULL; |
| 350 |
main_ColorBar_1_in_2 = NULL; |
| 351 |
main_ColorBar_1_in_3 = NULL; |
| 352 |
main_ColorBar_1_in_4 = NULL; |
| 353 |
main_ColorBar_1_in_5 = NULL; |
| 354 |
main_ColorBar_1_in_6 = NULL; |
| 355 |
main_ColorBar_1_in_7 = NULL; |
| 356 |
main_ColorBar_1_in_8 = NULL; |
| 357 |
main_ColorBar_1_in_9 = NULL; |
| 358 |
main_ColorBar_1_in_10 = NULL; |
| 359 |
main_ColorBar_1_in_11 = NULL; |
| 360 |
main_ColorBar_1_in_12 = NULL; |
| 361 |
main_ColorBar_1_in_13 = NULL; |
| 362 |
main_ColorBar_1_in_14 = NULL; |
| 363 |
main_ColorBar_1_in_15 = NULL; |
| 364 |
main_ColorBar_1_in_16 = NULL; |
| 365 |
main_ColorBar_1_out_1 = NULL; |
| 366 |
main_Collect_2_out_1 = NULL; |
| 367 |
main_Collect_3_out_1 = NULL; |
| 368 |
macro Image( |
| 369 |
id, |
| 370 |
object, |
| 371 |
where, |
| 372 |
useVector, |
| 373 |
to, |
| 374 |
from, |
| 375 |
width, |
| 376 |
resolution, |
| 377 |
aspect, |
| 378 |
up, |
| 379 |
viewAngle, |
| 380 |
perspective, |
| 381 |
options, |
| 382 |
buttonState = 1, |
| 383 |
buttonUpApprox = "none", |
| 384 |
buttonDownApprox = "none", |
| 385 |
buttonUpDensity = 1, |
| 386 |
buttonDownDensity = 1, |
| 387 |
renderMode = 0, |
| 388 |
defaultCamera, |
| 389 |
reset, |
| 390 |
backgroundColor, |
| 391 |
throttle, |
| 392 |
RECenable = 0, |
| 393 |
RECfile, |
| 394 |
RECformat, |
| 395 |
RECresolution, |
| 396 |
RECaspect, |
| 397 |
AAenable = 0, |
| 398 |
AAlabels, |
| 399 |
AAticks, |
| 400 |
AAcorners, |
| 401 |
AAframe, |
| 402 |
AAadjust, |
| 403 |
AAcursor, |
| 404 |
AAgrid, |
| 405 |
AAcolors, |
| 406 |
AAannotation, |
| 407 |
AAlabelscale, |
| 408 |
AAfont, |
| 409 |
interactionMode, |
| 410 |
title, |
| 411 |
AAxTickLocs, |
| 412 |
AAyTickLocs, |
| 413 |
AAzTickLocs, |
| 414 |
AAxTickLabels, |
| 415 |
AAyTickLabels, |
| 416 |
AAzTickLabels, |
| 417 |
webOptions) -> ( |
| 418 |
object, |
| 419 |
camera, |
| 420 |
where) |
| 421 |
{ |
| 422 |
ImageMessage( |
| 423 |
id, |
| 424 |
backgroundColor, |
| 425 |
throttle, |
| 426 |
RECenable, |
| 427 |
RECfile, |
| 428 |
RECformat, |
| 429 |
RECresolution, |
| 430 |
RECaspect, |
| 431 |
AAenable, |
| 432 |
AAlabels, |
| 433 |
AAticks, |
| 434 |
AAcorners, |
| 435 |
AAframe, |
| 436 |
AAadjust, |
| 437 |
AAcursor, |
| 438 |
AAgrid, |
| 439 |
AAcolors, |
| 440 |
AAannotation, |
| 441 |
AAlabelscale, |
| 442 |
AAfont, |
| 443 |
AAxTickLocs, |
| 444 |
AAyTickLocs, |
| 445 |
AAzTickLocs, |
| 446 |
AAxTickLabels, |
| 447 |
AAyTickLabels, |
| 448 |
AAzTickLabels, |
| 449 |
interactionMode, |
| 450 |
title, |
| 451 |
renderMode, |
| 452 |
buttonUpApprox, |
| 453 |
buttonDownApprox, |
| 454 |
buttonUpDensity, |
| 455 |
buttonDownDensity) [instance: 1, cache: 1]; |
| 456 |
autoCamera = |
| 457 |
AutoCamera( |
| 458 |
object, |
| 459 |
"front", |
| 460 |
object, |
| 461 |
resolution, |
| 462 |
aspect, |
| 463 |
[0,1,0], |
| 464 |
perspective, |
| 465 |
viewAngle, |
| 466 |
backgroundColor) [instance: 1, cache: 1]; |
| 467 |
realCamera = |
| 468 |
Camera( |
| 469 |
to, |
| 470 |
from, |
| 471 |
width, |
| 472 |
resolution, |
| 473 |
aspect, |
| 474 |
up, |
| 475 |
perspective, |
| 476 |
viewAngle, |
| 477 |
backgroundColor) [instance: 1, cache: 1]; |
| 478 |
coloredDefaultCamera = |
| 479 |
UpdateCamera(defaultCamera, |
| 480 |
background=backgroundColor) [instance: 1, cache: 1]; |
| 481 |
nullDefaultCamera = |
| 482 |
Inquire(defaultCamera, |
| 483 |
"is null + 1") [instance: 1, cache: 1]; |
| 484 |
resetCamera = |
| 485 |
Switch( |
| 486 |
nullDefaultCamera, |
| 487 |
coloredDefaultCamera, |
| 488 |
autoCamera) [instance: 1, cache: 1]; |
| 489 |
resetNull = |
| 490 |
Inquire( |
| 491 |
reset, |
| 492 |
"is null + 1") [instance: 2, cache: 1]; |
| 493 |
reset = |
| 494 |
Switch( |
| 495 |
resetNull, |
| 496 |
reset, |
| 497 |
0) [instance: 2, cache: 1]; |
| 498 |
whichCamera = |
| 499 |
Compute( |
| 500 |
"($0 != 0 || $1 == 0) ? 1 : 2", |
| 501 |
reset, |
| 502 |
useVector) [instance: 1, cache: 1]; |
| 503 |
camera = Switch( |
| 504 |
whichCamera, |
| 505 |
resetCamera, |
| 506 |
realCamera) [instance: 3, cache: 1]; |
| 507 |
AAobject = |
| 508 |
AutoAxes( |
| 509 |
object, |
| 510 |
camera, |
| 511 |
AAlabels, |
| 512 |
AAticks, |
| 513 |
AAcorners, |
| 514 |
AAframe, |
| 515 |
AAadjust, |
| 516 |
AAcursor, |
| 517 |
AAgrid, |
| 518 |
AAcolors, |
| 519 |
AAannotation, |
| 520 |
AAlabelscale, |
| 521 |
AAfont, |
| 522 |
AAxTickLocs, |
| 523 |
AAyTickLocs, |
| 524 |
AAzTickLocs, |
| 525 |
AAxTickLabels, |
| 526 |
AAyTickLabels, |
| 527 |
AAzTickLabels) [instance: 1, cache: 1]; |
| 528 |
switchAAenable = Compute("$0+1", |
| 529 |
AAenable) [instance: 2, cache: 1]; |
| 530 |
object = Switch( |
| 531 |
switchAAenable, |
| 532 |
object, |
| 533 |
AAobject) [instance:4, cache: 1]; |
| 534 |
SWapproximation_options = |
| 535 |
Switch( |
| 536 |
buttonState, |
| 537 |
buttonUpApprox, |
| 538 |
buttonDownApprox) [instance: 5, cache: 1]; |
| 539 |
SWdensity_options = |
| 540 |
Switch( |
| 541 |
buttonState, |
| 542 |
buttonUpDensity, |
| 543 |
buttonDownDensity) [instance: 6, cache: 1]; |
| 544 |
HWapproximation_options = |
| 545 |
Format( |
| 546 |
"%s,%s", |
| 547 |
buttonDownApprox, |
| 548 |
buttonUpApprox) [instance: 1, cache: 1]; |
| 549 |
HWdensity_options = |
| 550 |
Format( |
| 551 |
"%d,%d", |
| 552 |
buttonDownDensity, |
| 553 |
buttonUpDensity) [instance: 2, cache: 1]; |
| 554 |
switchRenderMode = Compute( |
| 555 |
"$0+1", |
| 556 |
renderMode) [instance: 3, cache: 1]; |
| 557 |
approximation_options = Switch( |
| 558 |
switchRenderMode, |
| 559 |
SWapproximation_options, |
| 560 |
HWapproximation_options) [instance: 7, cache: 1]; |
| 561 |
density_options = Switch( |
| 562 |
switchRenderMode, |
| 563 |
SWdensity_options, |
| 564 |
HWdensity_options) [instance: 8, cache: 1]; |
| 565 |
renderModeString = Switch( |
| 566 |
switchRenderMode, |
| 567 |
"software", |
| 568 |
"hardware")[instance: 9, cache: 1]; |
| 569 |
object_tag = Inquire( |
| 570 |
object, |
| 571 |
"object tag")[instance: 3, cache: 1]; |
| 572 |
annoted_object = |
| 573 |
Options( |
| 574 |
object, |
| 575 |
"send boxes", |
| 576 |
0, |
| 577 |
"cache", |
| 578 |
1, |
| 579 |
"object tag", |
| 580 |
object_tag, |
| 581 |
"ddcamera", |
| 582 |
whichCamera, |
| 583 |
"rendering approximation", |
| 584 |
approximation_options, |
| 585 |
"render every", |
| 586 |
density_options, |
| 587 |
"button state", |
| 588 |
buttonState, |
| 589 |
"rendering mode", |
| 590 |
renderModeString) [instance: 1, cache: 1]; |
| 591 |
RECresNull = |
| 592 |
Inquire( |
| 593 |
RECresolution, |
| 594 |
"is null + 1") [instance: 4, cache: 1]; |
| 595 |
ImageResolution = |
| 596 |
Inquire( |
| 597 |
camera, |
| 598 |
"camera resolution") [instance: 5, cache: 1]; |
| 599 |
RECresolution = |
| 600 |
Switch( |
| 601 |
RECresNull, |
| 602 |
RECresolution, |
| 603 |
ImageResolution) [instance: 10, cache: 1]; |
| 604 |
RECaspectNull = |
| 605 |
Inquire( |
| 606 |
RECaspect, |
| 607 |
"is null + 1") [instance: 6, cache: 1]; |
| 608 |
ImageAspect = |
| 609 |
Inquire( |
| 610 |
camera, |
| 611 |
"camera aspect") [instance: 7, cache: 1]; |
| 612 |
RECaspect = |
| 613 |
Switch( |
| 614 |
RECaspectNull, |
| 615 |
RECaspect, |
| 616 |
ImageAspect) [instance: 11, cache: 1]; |
| 617 |
switchRECenable = Compute( |
| 618 |
"$0 == 0 ? 1 : (($2 == $3) && ($4 == $5)) ? ($1 == 1 ? 2 : 3) : 4", |
| 619 |
RECenable, |
| 620 |
switchRenderMode, |
| 621 |
RECresolution, |
| 622 |
ImageResolution, |
| 623 |
RECaspect, |
| 624 |
ImageAspect) [instance: 4, cache: 1]; |
| 625 |
NoRECobject, RECNoRerenderObject, RECNoRerHW, RECRerenderObject = Route(switchRECenable, annoted_object); |
| 626 |
Display( |
| 627 |
NoRECobject, |
| 628 |
camera, |
| 629 |
where, |
| 630 |
throttle) [instance: 1, cache: 1]; |
| 631 |
image = |
| 632 |
Render( |
| 633 |
RECNoRerenderObject, |
| 634 |
camera) [instance: 1, cache: 1]; |
| 635 |
Display( |
| 636 |
image, |
| 637 |
NULL, |
| 638 |
where, |
| 639 |
throttle) [instance: 2, cache: 1]; |
| 640 |
WriteImage( |
| 641 |
image, |
| 642 |
RECfile, |
| 643 |
RECformat) [instance: 1, cache: 1]; |
| 644 |
rec_where = Display( |
| 645 |
RECNoRerHW, |
| 646 |
camera, |
| 647 |
where, |
| 648 |
throttle) [instance: 1, cache: 0]; |
| 649 |
rec_image = ReadImageWindow( |
| 650 |
rec_where) [instance: 1, cache: 1]; |
| 651 |
WriteImage( |
| 652 |
rec_image, |
| 653 |
RECfile, |
| 654 |
RECformat) [instance: 1, cache: 1]; |
| 655 |
RECupdateCamera = |
| 656 |
UpdateCamera( |
| 657 |
camera, |
| 658 |
resolution=RECresolution, |
| 659 |
aspect=RECaspect) [instance: 2, cache: 1]; |
| 660 |
Display( |
| 661 |
RECRerenderObject, |
| 662 |
camera, |
| 663 |
where, |
| 664 |
throttle) [instance: 1, cache: 1]; |
| 665 |
RECRerenderObject = |
| 666 |
ScaleScreen( |
| 667 |
RECRerenderObject, |
| 668 |
NULL, |
| 669 |
RECresolution, |
| 670 |
camera) [instance: 1, cache: 1]; |
| 671 |
image = |
| 672 |
Render( |
| 673 |
RECRerenderObject, |
| 674 |
RECupdateCamera) [instance: 2, cache: 1]; |
| 675 |
WriteImage( |
| 676 |
image, |
| 677 |
RECfile, |
| 678 |
RECformat) [instance: 2, cache: 1]; |
| 679 |
} |
| 680 |
main_Image_5_in_1 = "Image_5"; |
| 681 |
main_Image_5_in_3 = "X16,,"; |
| 682 |
main_Image_5_in_4 = 1; |
| 683 |
main_Image_5_in_5 = [-2.38419e-07 2.26498e-06 1.05714]; |
| 684 |
main_Image_5_in_6 = [-2.38419e-07 2.26498e-06 16.2694]; |
| 685 |
main_Image_5_in_7 = 8.15224; |
| 686 |
main_Image_5_in_8 = 701; |
| 687 |
main_Image_5_in_9 = 0.707; |
| 688 |
main_Image_5_in_10 = [0 1 0]; |
| 689 |
main_Image_5_in_11 = 30.0001; |
| 690 |
main_Image_5_in_12 = 0; |
| 691 |
main_Image_5_in_13 = NULL; |
| 692 |
main_Image_5_in_14 = 1; |
| 693 |
main_Image_5_in_15 = NULL; |
| 694 |
main_Image_5_in_16 = NULL; |
| 695 |
main_Image_5_in_17 = NULL; |
| 696 |
main_Image_5_in_18 = NULL; |
| 697 |
main_Image_5_in_19 = 0; |
| 698 |
main_Image_5_in_20 = NULL; |
| 699 |
main_Image_5_in_21 = NULL; |
| 700 |
main_Image_5_in_22 = NULL; |
| 701 |
main_Image_5_in_23 = NULL; |
| 702 |
main_Image_5_in_25 = NULL; |
| 703 |
main_Image_5_in_26 = NULL; |
| 704 |
main_Image_5_in_27 = NULL; |
| 705 |
main_Image_5_in_28 = NULL; |
| 706 |
main_Image_5_in_29 = 1; |
| 707 |
main_Image_5_in_30 = NULL; |
| 708 |
main_Image_5_in_31 = NULL; |
| 709 |
main_Image_5_in_32 = NULL; |
| 710 |
main_Image_5_in_33 = NULL; |
| 711 |
main_Image_5_in_34 = NULL; |
| 712 |
main_Image_5_in_35 = NULL; |
| 713 |
main_Image_5_in_36 = NULL; |
| 714 |
main_Image_5_in_37 = NULL; |
| 715 |
main_Image_5_in_38 = NULL; |
| 716 |
main_Image_5_in_39 = NULL; |
| 717 |
main_Image_5_in_40 = NULL; |
| 718 |
main_Image_5_in_41 = "rotate"; |
| 719 |
main_Image_5_in_42 = NULL; |
| 720 |
main_Image_5_in_43 = NULL; |
| 721 |
main_Image_5_in_44 = NULL; |
| 722 |
main_Image_5_in_45 = NULL; |
| 723 |
main_Image_5_in_46 = NULL; |
| 724 |
main_Image_5_in_47 = NULL; |
| 725 |
main_Image_5_in_48 = NULL; |
| 726 |
main_Image_5_in_49 = NULL; |
| 727 |
Executive("product version 4 3 0"); |
| 728 |
$sync |
| 729 |
main(); |