| 1 |
// |
| 2 |
// time: Mon Dec 15 23:25:42 2003 |
| 3 |
// |
| 4 |
// version: 3.2.0 (format), 4.3.0 (DX) |
| 5 |
// |
| 6 |
// |
| 7 |
// MODULE main |
| 8 |
// CATEGORY Macros |
| 9 |
// |
| 10 |
// comment: This visual program is used as part of the tutorial for Data Explorer. To access the tutorial you can type |
| 11 |
// comment: dx -tutor |
| 12 |
// comment: or you can choose "Tutorial..." from the Help menu of any window. |
| 13 |
// comment: |
| 14 |
// comment: This visual program is discussed in the section "Volume Rendering". To find this section, start the tutorial, then click on |
| 15 |
// comment: "Appendix B, Tutorial II: Editing and Creating Visual Programs" in the third paragraph. Then click on "Volume Rendering" in |
| 16 |
// comment: the list of Tutorial II Topics. |
| 17 |
// comment: |
| 18 |
// comment: The tutorial will suggest ways to use and modify this visual program. |
| 19 |
// comment: |
| 20 |
// comment: |
| 21 |
// workspace: width = 630, height = 613 |
| 22 |
// layout: snap = 0, width = 50, height = 50, align = CC |
| 23 |
// |
| 24 |
macro main( |
| 25 |
) -> ( |
| 26 |
) { |
| 27 |
// |
| 28 |
// node FileSelector[1]: x = 57, y = 15, inputs = 0, label = FileSelector |
| 29 |
// output[1]: visible = 1, type = 32, value = "visu_scalar_box.dxhead" |
| 30 |
// output[2]: visible = 1, type = 32, value = "visu_scalar_box.dxhead" |
| 31 |
// |
| 32 |
// |
| 33 |
// node Import[1]: x = 248, y = 21, inputs = 6, label = Import |
| 34 |
// input[1]: defaulting = 1, visible = 1, type = 32, value = "imide_potential" |
| 35 |
// input[3]: defaulting = 0, visible = 1, type = 32, value = "general" |
| 36 |
// |
| 37 |
main_Import_1_out_1 = |
| 38 |
Import( |
| 39 |
main_FileSelector_1_out_1, |
| 40 |
main_Import_1_in_2, |
| 41 |
main_Import_1_in_3, |
| 42 |
main_Import_1_in_4, |
| 43 |
main_Import_1_in_5, |
| 44 |
main_Import_1_in_6 |
| 45 |
) [instance: 1, cache: 1]; |
| 46 |
// |
| 47 |
// node Attribute[1]: x = 563, y = 70, inputs = 2, label = Attribute |
| 48 |
// |
| 49 |
main_Attribute_1_out_1 = |
| 50 |
Attribute( |
| 51 |
main_Import_1_out_1, |
| 52 |
main_Attribute_1_in_2 |
| 53 |
) [instance: 1, cache: 1]; |
| 54 |
// |
| 55 |
// node AutoColor[5]: x = 100, y = 322, inputs = 10, label = AutoColor |
| 56 |
// input[3]: defaulting = 0, visible = 1, type = 5, value = 1. |
| 57 |
// input[7]: defaulting = 0, visible = 1, type = 5, value = 0.1 |
| 58 |
// |
| 59 |
main_AutoColor_5_out_1, |
| 60 |
main_AutoColor_5_out_2 = |
| 61 |
AutoColor( |
| 62 |
main_Import_1_out_1, |
| 63 |
main_AutoColor_5_in_2, |
| 64 |
main_AutoColor_5_in_3, |
| 65 |
main_AutoColor_5_in_4, |
| 66 |
main_AutoColor_5_in_5, |
| 67 |
main_AutoColor_5_in_6, |
| 68 |
main_AutoColor_5_in_7, |
| 69 |
main_AutoColor_5_in_8, |
| 70 |
main_AutoColor_5_in_9, |
| 71 |
main_AutoColor_5_in_10 |
| 72 |
) [instance: 5, cache: 1]; |
| 73 |
// |
| 74 |
// node Caption[1]: x = 562, y = 373, inputs = 9, label = Caption |
| 75 |
// |
| 76 |
main_Caption_1_out_1 = |
| 77 |
Caption( |
| 78 |
main_Attribute_1_out_1, |
| 79 |
main_Caption_1_in_2, |
| 80 |
main_Caption_1_in_3, |
| 81 |
main_Caption_1_in_4, |
| 82 |
main_Caption_1_in_5, |
| 83 |
main_Caption_1_in_6, |
| 84 |
main_Caption_1_in_7, |
| 85 |
main_Caption_1_in_8, |
| 86 |
main_Caption_1_in_9 |
| 87 |
) [instance: 1, cache: 1]; |
| 88 |
// |
| 89 |
// node Collect[1]: x = 314, y = 459, inputs = 2, label = Collect |
| 90 |
// |
| 91 |
main_Collect_1_out_1 = |
| 92 |
Collect( |
| 93 |
main_AutoColor_5_out_1, |
| 94 |
main_Caption_1_out_1 |
| 95 |
) [instance: 1, cache: 1]; |
| 96 |
// |
| 97 |
// node Colormap[3]: x = 355, y = 139, inputs = 19, label = Colormap |
| 98 |
// input[1]: defaulting = 0, visible = 0, type = 16777224, value = { [0.0 0.368421] [0.009615382 0.368421] [0.01602563 0.368421] [0.01602563 0.368421] [0.09615382 0.368421] [0.09615382 0.368421] [0.25320537 0.368421] [0.25320537 0.0] [0.25961526 0.0] [0.25961526 0.0] [0.50320427 0.0] [0.6955123 0.0] [0.76923075 0.0] [1.0 0.0] } |
| 99 |
// input[2]: defaulting = 0, visible = 0, type = 16777224, value = { [0.0 1.0] [0.009615382 1.0] [0.01602563 1.0] [0.01602563 1.0] [0.09615382 1.0] [0.09615382 1.0] [0.25320537 1.0] [0.25320537 1.0] [0.25961526 1.0] [0.25961526 1.0] [0.50320427 1.0] [0.6955123 1.0] [0.76923075 1.0] [1.0 1.0] } |
| 100 |
// input[3]: defaulting = 0, visible = 0, type = 16777224, value = { [0.0 0.0] [0.009615382 0.0] [0.01602563 0.0105263] [0.01602563 0.305263] [0.09615382 0.305263] [0.09615382 0.0] [0.25320537 0.0] [0.25320537 0.0] [0.25961526 0.0] [0.25961526 1.0] [0.50320427 1.0] [0.6955123 1.0] [0.76923075 1.0] [1.0 1.0] } |
| 101 |
// input[4]: defaulting = 0, visible = 0, type = 16777224, value = { [0.0 0.0] [0.009615382 0.0] [0.01602563 0.0] [0.01602563 0.146067] [0.09615382 0.146067] [0.09615382 0.0] [0.26282116 0.0] [0.26282116 1.0] [0.6987182 1.0] [1.0 1.0] } |
| 102 |
// input[5]: defaulting = 0, visible = 0, type = 32, value = "Colormap_3" |
| 103 |
// input[7]: defaulting = 1, visible = 0, type = 5, value = -0.31260499 |
| 104 |
// input[8]: defaulting = 1, visible = 0, type = 5, value = 2.4219501 |
| 105 |
// input[9]: defaulting = 1, visible = 0, type = 1, value = 20 |
| 106 |
// input[12]: defaulting = 0, visible = 0, type = 16777221, value = { -0.31260499 2.4219501 } |
| 107 |
// input[17]: defaulting = 0, visible = 0, type = 5, value = -0.31260499 |
| 108 |
// input[18]: defaulting = 0, visible = 0, type = 5, value = 2.4219501 |
| 109 |
// window: position = (0.0750,0.4905), size = 0.5079x0.4390 |
| 110 |
// |
| 111 |
main_Colormap_3_out_1[cache: 2], |
| 112 |
main_Colormap_3_out_2[cache: 2] = |
| 113 |
Colormap( |
| 114 |
main_Colormap_3_in_1, |
| 115 |
main_Colormap_3_in_2, |
| 116 |
main_Colormap_3_in_3, |
| 117 |
main_Colormap_3_in_4, |
| 118 |
main_Colormap_3_in_5, |
| 119 |
main_Import_1_out_1, |
| 120 |
main_Colormap_3_in_7, |
| 121 |
main_Colormap_3_in_8, |
| 122 |
main_Colormap_3_in_9, |
| 123 |
main_Colormap_3_in_10, |
| 124 |
main_Colormap_3_in_11, |
| 125 |
main_Colormap_3_in_12, |
| 126 |
main_Colormap_3_in_13, |
| 127 |
main_Colormap_3_in_14, |
| 128 |
main_Colormap_3_in_15, |
| 129 |
main_Colormap_3_in_16, |
| 130 |
main_Colormap_3_in_17, |
| 131 |
main_Colormap_3_in_18, |
| 132 |
main_Colormap_3_in_19 |
| 133 |
) [instance: 3, cache: 1]; |
| 134 |
// |
| 135 |
// node Compute[20]: x = 291, y = 209, inputs = 2, label = Compute |
| 136 |
// input[1]: defaulting = 0, visible = 0, type = 32, value = "$0*15.0" |
| 137 |
// expression: value = colors*15.0 |
| 138 |
// name[2]: value = colors |
| 139 |
// |
| 140 |
main_Compute_20_out_1 = |
| 141 |
Compute( |
| 142 |
main_Compute_20_in_1, |
| 143 |
main_Colormap_3_out_1 |
| 144 |
) [instance: 20, cache: 1]; |
| 145 |
// |
| 146 |
// node Color[9]: x = 302, y = 340, inputs = 5, label = Color |
| 147 |
// |
| 148 |
main_Color_9_out_1 = |
| 149 |
Color( |
| 150 |
main_Import_1_out_1, |
| 151 |
main_Compute_20_out_1, |
| 152 |
main_Colormap_3_out_2, |
| 153 |
main_Color_9_in_4, |
| 154 |
main_Color_9_in_5 |
| 155 |
) [instance: 9, cache: 1]; |
| 156 |
// |
| 157 |
// node Image[3]: x = 305, y = 551, inputs = 49, label = Image |
| 158 |
// input[1]: defaulting = 0, visible = 0, type = 67108863, value = "Image_3" |
| 159 |
// input[4]: defaulting = 0, visible = 0, type = 1, value = 1 |
| 160 |
// input[5]: defaulting = 0, visible = 0, type = 8, value = [9.53674e-07 9.53674e-07 9.53674e-07] |
| 161 |
// input[6]: defaulting = 0, visible = 0, type = 8, value = [9.53674e-07 9.53674e-07 7.60924] |
| 162 |
// input[7]: defaulting = 0, visible = 0, type = 5, value = 4.07779 |
| 163 |
// input[8]: defaulting = 0, visible = 0, type = 1, value = 566 |
| 164 |
// input[9]: defaulting = 0, visible = 0, type = 5, value = 0.858 |
| 165 |
// input[10]: defaulting = 0, visible = 0, type = 8, value = [0 1 0] |
| 166 |
// input[11]: defaulting = 0, visible = 0, type = 5, value = 30.0001 |
| 167 |
// input[12]: defaulting = 0, visible = 0, type = 1, value = 0 |
| 168 |
// input[14]: defaulting = 0, visible = 0, type = 1, value = 1 |
| 169 |
// input[15]: defaulting = 1, visible = 0, type = 32, value = "none" |
| 170 |
// input[16]: defaulting = 1, visible = 0, type = 32, value = "none" |
| 171 |
// input[17]: defaulting = 1, visible = 0, type = 1, value = 1 |
| 172 |
// input[18]: defaulting = 1, visible = 0, type = 1, value = 1 |
| 173 |
// input[19]: defaulting = 0, visible = 0, type = 1, value = 0 |
| 174 |
// input[29]: defaulting = 0, visible = 0, type = 3, value = 1 |
| 175 |
// input[41]: defaulting = 0, visible = 0, type = 32, value = "rotate" |
| 176 |
// depth: value = 16 |
| 177 |
// window: position = (0.4721,0.2867), size = 0.4143x0.5048 |
| 178 |
// internal caching: 1 |
| 179 |
// |
| 180 |
main_Image_3_out_1, |
| 181 |
main_Image_3_out_2, |
| 182 |
main_Image_3_out_3 = |
| 183 |
Image( |
| 184 |
main_Image_3_in_1, |
| 185 |
main_Collect_1_out_1, |
| 186 |
main_Image_3_in_3, |
| 187 |
main_Image_3_in_4, |
| 188 |
main_Image_3_in_5, |
| 189 |
main_Image_3_in_6, |
| 190 |
main_Image_3_in_7, |
| 191 |
main_Image_3_in_8, |
| 192 |
main_Image_3_in_9, |
| 193 |
main_Image_3_in_10, |
| 194 |
main_Image_3_in_11, |
| 195 |
main_Image_3_in_12, |
| 196 |
main_Image_3_in_13, |
| 197 |
main_Image_3_in_14, |
| 198 |
main_Image_3_in_15, |
| 199 |
main_Image_3_in_16, |
| 200 |
main_Image_3_in_17, |
| 201 |
main_Image_3_in_18, |
| 202 |
main_Image_3_in_19, |
| 203 |
main_Image_3_in_20, |
| 204 |
main_Image_3_in_21, |
| 205 |
main_Image_3_in_22, |
| 206 |
main_Image_3_in_23, |
| 207 |
main_Image_3_in_24, |
| 208 |
main_Image_3_in_25, |
| 209 |
main_Image_3_in_26, |
| 210 |
main_Image_3_in_27, |
| 211 |
main_Image_3_in_28, |
| 212 |
main_Image_3_in_29, |
| 213 |
main_Image_3_in_30, |
| 214 |
main_Image_3_in_31, |
| 215 |
main_Image_3_in_32, |
| 216 |
main_Image_3_in_33, |
| 217 |
main_Image_3_in_34, |
| 218 |
main_Image_3_in_35, |
| 219 |
main_Image_3_in_36, |
| 220 |
main_Image_3_in_37, |
| 221 |
main_Image_3_in_38, |
| 222 |
main_Image_3_in_39, |
| 223 |
main_Image_3_in_40, |
| 224 |
main_Image_3_in_41, |
| 225 |
main_Image_3_in_42, |
| 226 |
main_Image_3_in_43, |
| 227 |
main_Image_3_in_44, |
| 228 |
main_Image_3_in_45, |
| 229 |
main_Image_3_in_46, |
| 230 |
main_Image_3_in_47, |
| 231 |
main_Image_3_in_48, |
| 232 |
main_Image_3_in_49 |
| 233 |
) [instance: 3, cache: 1]; |
| 234 |
// |
| 235 |
// node Scalar[2]: x = 494, y = 165, inputs = 11, label = Scalar |
| 236 |
// input[1]: defaulting = 0, visible = 0, type = 32, value = "Scalar_2" |
| 237 |
// input[3]: defaulting = 0, visible = 0, type = 5, value = 0.75 |
| 238 |
// input[4]: defaulting = 1, visible = 0, type = 3, value = 0 |
| 239 |
// input[5]: defaulting = 1, visible = 0, type = 5, value = -0.312605 |
| 240 |
// input[6]: defaulting = 1, visible = 0, type = 5, value = 2.42195 |
| 241 |
// input[7]: defaulting = 1, visible = 0, type = 5, value = 1.0 |
| 242 |
// input[9]: defaulting = 1, visible = 0, type = 1, value = 2 |
| 243 |
// output[1]: visible = 1, type = 5, value = 0.75 |
| 244 |
// |
| 245 |
main_Scalar_2_out_1[cache: 2] = |
| 246 |
Scalar( |
| 247 |
main_Scalar_2_in_1, |
| 248 |
main_Import_1_out_1, |
| 249 |
main_Scalar_2_in_3, |
| 250 |
main_Scalar_2_in_4, |
| 251 |
main_Scalar_2_in_5, |
| 252 |
main_Scalar_2_in_6, |
| 253 |
main_Scalar_2_in_7, |
| 254 |
main_Scalar_2_in_8, |
| 255 |
main_Scalar_2_in_9, |
| 256 |
main_Scalar_2_in_10, |
| 257 |
main_Scalar_2_in_11 |
| 258 |
) [instance: 2, cache: 1]; |
| 259 |
// |
| 260 |
// node Isosurface[6]: x = 450, y = 317, inputs = 6, label = Isosurface |
| 261 |
// |
| 262 |
main_Isosurface_6_out_1 = |
| 263 |
Isosurface( |
| 264 |
main_Import_1_out_1, |
| 265 |
main_Scalar_2_out_1, |
| 266 |
main_Isosurface_6_in_3, |
| 267 |
main_Isosurface_6_in_4, |
| 268 |
main_Isosurface_6_in_5, |
| 269 |
main_Isosurface_6_in_6 |
| 270 |
) [instance: 6, cache: 1]; |
| 271 |
// network: end of macro body |
| 272 |
CacheScene(main_Image_3_in_1, main_Image_3_out_1, main_Image_3_out_2); |
| 273 |
} |
| 274 |
main_FileSelector_1_out_1 = "visu_scalar_box.dxhead"; |
| 275 |
main_Import_1_in_2 = NULL; |
| 276 |
main_Import_1_in_3 = "general"; |
| 277 |
main_Import_1_in_4 = NULL; |
| 278 |
main_Import_1_in_5 = NULL; |
| 279 |
main_Import_1_in_6 = NULL; |
| 280 |
main_Import_1_out_1 = NULL; |
| 281 |
main_Attribute_1_in_2 = NULL; |
| 282 |
main_Attribute_1_out_1 = NULL; |
| 283 |
main_AutoColor_5_in_2 = NULL; |
| 284 |
main_AutoColor_5_in_3 = 1.; |
| 285 |
main_AutoColor_5_in_4 = NULL; |
| 286 |
main_AutoColor_5_in_5 = NULL; |
| 287 |
main_AutoColor_5_in_6 = NULL; |
| 288 |
main_AutoColor_5_in_7 = 0.1; |
| 289 |
main_AutoColor_5_in_8 = NULL; |
| 290 |
main_AutoColor_5_in_9 = NULL; |
| 291 |
main_AutoColor_5_in_10 = NULL; |
| 292 |
main_AutoColor_5_out_1 = NULL; |
| 293 |
main_Caption_1_in_2 = NULL; |
| 294 |
main_Caption_1_in_3 = NULL; |
| 295 |
main_Caption_1_in_4 = NULL; |
| 296 |
main_Caption_1_in_5 = NULL; |
| 297 |
main_Caption_1_in_6 = NULL; |
| 298 |
main_Caption_1_in_7 = NULL; |
| 299 |
main_Caption_1_in_8 = NULL; |
| 300 |
main_Caption_1_in_9 = NULL; |
| 301 |
main_Caption_1_out_1 = NULL; |
| 302 |
main_Collect_1_out_1 = NULL; |
| 303 |
main_Colormap_3_in_1 = { [0.0 0.368421] [0.009615382 0.368421] [0.01602563 0.368421] [0.01602563 0.368421] [0.09615382 0.368421] [0.09615382 0.368421] [0.25320537 0.368421] [0.25320537 0.0] [0.25961526 0.0] [0.25961526 0.0] [0.50320427 0.0] [0.6955123 0.0] [0.76923075 0.0] [1.0 0.0] }; |
| 304 |
main_Colormap_3_in_2 = { [0.0 1.0] [0.009615382 1.0] [0.01602563 1.0] [0.01602563 1.0] [0.09615382 1.0] [0.09615382 1.0] [0.25320537 1.0] [0.25320537 1.0] [0.25961526 1.0] [0.25961526 1.0] [0.50320427 1.0] [0.6955123 1.0] [0.76923075 1.0] [1.0 1.0] }; |
| 305 |
main_Colormap_3_in_3 = { [0.0 0.0] [0.009615382 0.0] [0.01602563 0.0105263] [0.01602563 0.305263] [0.09615382 0.305263] [0.09615382 0.0] [0.25320537 0.0] [0.25320537 0.0] [0.25961526 0.0] [0.25961526 1.0] [0.50320427 1.0] [0.6955123 1.0] [0.76923075 1.0] [1.0 1.0] }; |
| 306 |
main_Colormap_3_in_4 = { [0.0 0.0] [0.009615382 0.0] [0.01602563 0.0] [0.01602563 0.146067] [0.09615382 0.146067] [0.09615382 0.0] [0.26282116 0.0] [0.26282116 1.0] [0.6987182 1.0] [1.0 1.0] }; |
| 307 |
main_Colormap_3_in_5 = "Colormap_3"; |
| 308 |
main_Colormap_3_in_7 = NULL; |
| 309 |
main_Colormap_3_in_8 = NULL; |
| 310 |
main_Colormap_3_in_9 = NULL; |
| 311 |
main_Colormap_3_in_10 = NULL; |
| 312 |
main_Colormap_3_in_11 = NULL; |
| 313 |
main_Colormap_3_in_12 = { -0.31260499 2.4219501 }; |
| 314 |
main_Colormap_3_in_13 = NULL; |
| 315 |
main_Colormap_3_in_14 = NULL; |
| 316 |
main_Colormap_3_in_15 = NULL; |
| 317 |
main_Colormap_3_in_16 = NULL; |
| 318 |
main_Colormap_3_in_17 = -0.31260499; |
| 319 |
main_Colormap_3_in_18 = 2.4219501; |
| 320 |
main_Colormap_3_in_19 = NULL; |
| 321 |
main_Colormap_3_out_1 = NULL; |
| 322 |
main_Colormap_3_out_2 = NULL; |
| 323 |
main_Compute_20_in_1 = "$0*15.0"; |
| 324 |
main_Compute_20_out_1 = NULL; |
| 325 |
main_Color_9_in_4 = NULL; |
| 326 |
main_Color_9_in_5 = NULL; |
| 327 |
macro Image( |
| 328 |
id, |
| 329 |
object, |
| 330 |
where, |
| 331 |
useVector, |
| 332 |
to, |
| 333 |
from, |
| 334 |
width, |
| 335 |
resolution, |
| 336 |
aspect, |
| 337 |
up, |
| 338 |
viewAngle, |
| 339 |
perspective, |
| 340 |
options, |
| 341 |
buttonState = 1, |
| 342 |
buttonUpApprox = "none", |
| 343 |
buttonDownApprox = "none", |
| 344 |
buttonUpDensity = 1, |
| 345 |
buttonDownDensity = 1, |
| 346 |
renderMode = 0, |
| 347 |
defaultCamera, |
| 348 |
reset, |
| 349 |
backgroundColor, |
| 350 |
throttle, |
| 351 |
RECenable = 0, |
| 352 |
RECfile, |
| 353 |
RECformat, |
| 354 |
RECresolution, |
| 355 |
RECaspect, |
| 356 |
AAenable = 0, |
| 357 |
AAlabels, |
| 358 |
AAticks, |
| 359 |
AAcorners, |
| 360 |
AAframe, |
| 361 |
AAadjust, |
| 362 |
AAcursor, |
| 363 |
AAgrid, |
| 364 |
AAcolors, |
| 365 |
AAannotation, |
| 366 |
AAlabelscale, |
| 367 |
AAfont, |
| 368 |
interactionMode, |
| 369 |
title, |
| 370 |
AAxTickLocs, |
| 371 |
AAyTickLocs, |
| 372 |
AAzTickLocs, |
| 373 |
AAxTickLabels, |
| 374 |
AAyTickLabels, |
| 375 |
AAzTickLabels, |
| 376 |
webOptions) -> ( |
| 377 |
object, |
| 378 |
camera, |
| 379 |
where) |
| 380 |
{ |
| 381 |
ImageMessage( |
| 382 |
id, |
| 383 |
backgroundColor, |
| 384 |
throttle, |
| 385 |
RECenable, |
| 386 |
RECfile, |
| 387 |
RECformat, |
| 388 |
RECresolution, |
| 389 |
RECaspect, |
| 390 |
AAenable, |
| 391 |
AAlabels, |
| 392 |
AAticks, |
| 393 |
AAcorners, |
| 394 |
AAframe, |
| 395 |
AAadjust, |
| 396 |
AAcursor, |
| 397 |
AAgrid, |
| 398 |
AAcolors, |
| 399 |
AAannotation, |
| 400 |
AAlabelscale, |
| 401 |
AAfont, |
| 402 |
AAxTickLocs, |
| 403 |
AAyTickLocs, |
| 404 |
AAzTickLocs, |
| 405 |
AAxTickLabels, |
| 406 |
AAyTickLabels, |
| 407 |
AAzTickLabels, |
| 408 |
interactionMode, |
| 409 |
title, |
| 410 |
renderMode, |
| 411 |
buttonUpApprox, |
| 412 |
buttonDownApprox, |
| 413 |
buttonUpDensity, |
| 414 |
buttonDownDensity) [instance: 1, cache: 1]; |
| 415 |
autoCamera = |
| 416 |
AutoCamera( |
| 417 |
object, |
| 418 |
"front", |
| 419 |
object, |
| 420 |
resolution, |
| 421 |
aspect, |
| 422 |
[0,1,0], |
| 423 |
perspective, |
| 424 |
viewAngle, |
| 425 |
backgroundColor) [instance: 1, cache: 1]; |
| 426 |
realCamera = |
| 427 |
Camera( |
| 428 |
to, |
| 429 |
from, |
| 430 |
width, |
| 431 |
resolution, |
| 432 |
aspect, |
| 433 |
up, |
| 434 |
perspective, |
| 435 |
viewAngle, |
| 436 |
backgroundColor) [instance: 1, cache: 1]; |
| 437 |
coloredDefaultCamera = |
| 438 |
UpdateCamera(defaultCamera, |
| 439 |
background=backgroundColor) [instance: 1, cache: 1]; |
| 440 |
nullDefaultCamera = |
| 441 |
Inquire(defaultCamera, |
| 442 |
"is null + 1") [instance: 1, cache: 1]; |
| 443 |
resetCamera = |
| 444 |
Switch( |
| 445 |
nullDefaultCamera, |
| 446 |
coloredDefaultCamera, |
| 447 |
autoCamera) [instance: 1, cache: 1]; |
| 448 |
resetNull = |
| 449 |
Inquire( |
| 450 |
reset, |
| 451 |
"is null + 1") [instance: 2, cache: 1]; |
| 452 |
reset = |
| 453 |
Switch( |
| 454 |
resetNull, |
| 455 |
reset, |
| 456 |
0) [instance: 2, cache: 1]; |
| 457 |
whichCamera = |
| 458 |
Compute( |
| 459 |
"($0 != 0 || $1 == 0) ? 1 : 2", |
| 460 |
reset, |
| 461 |
useVector) [instance: 1, cache: 1]; |
| 462 |
camera = Switch( |
| 463 |
whichCamera, |
| 464 |
resetCamera, |
| 465 |
realCamera) [instance: 3, cache: 1]; |
| 466 |
AAobject = |
| 467 |
AutoAxes( |
| 468 |
object, |
| 469 |
camera, |
| 470 |
AAlabels, |
| 471 |
AAticks, |
| 472 |
AAcorners, |
| 473 |
AAframe, |
| 474 |
AAadjust, |
| 475 |
AAcursor, |
| 476 |
AAgrid, |
| 477 |
AAcolors, |
| 478 |
AAannotation, |
| 479 |
AAlabelscale, |
| 480 |
AAfont, |
| 481 |
AAxTickLocs, |
| 482 |
AAyTickLocs, |
| 483 |
AAzTickLocs, |
| 484 |
AAxTickLabels, |
| 485 |
AAyTickLabels, |
| 486 |
AAzTickLabels) [instance: 1, cache: 1]; |
| 487 |
switchAAenable = Compute("$0+1", |
| 488 |
AAenable) [instance: 2, cache: 1]; |
| 489 |
object = Switch( |
| 490 |
switchAAenable, |
| 491 |
object, |
| 492 |
AAobject) [instance:4, cache: 1]; |
| 493 |
SWapproximation_options = |
| 494 |
Switch( |
| 495 |
buttonState, |
| 496 |
buttonUpApprox, |
| 497 |
buttonDownApprox) [instance: 5, cache: 1]; |
| 498 |
SWdensity_options = |
| 499 |
Switch( |
| 500 |
buttonState, |
| 501 |
buttonUpDensity, |
| 502 |
buttonDownDensity) [instance: 6, cache: 1]; |
| 503 |
HWapproximation_options = |
| 504 |
Format( |
| 505 |
"%s,%s", |
| 506 |
buttonDownApprox, |
| 507 |
buttonUpApprox) [instance: 1, cache: 1]; |
| 508 |
HWdensity_options = |
| 509 |
Format( |
| 510 |
"%d,%d", |
| 511 |
buttonDownDensity, |
| 512 |
buttonUpDensity) [instance: 2, cache: 1]; |
| 513 |
switchRenderMode = Compute( |
| 514 |
"$0+1", |
| 515 |
renderMode) [instance: 3, cache: 1]; |
| 516 |
approximation_options = Switch( |
| 517 |
switchRenderMode, |
| 518 |
SWapproximation_options, |
| 519 |
HWapproximation_options) [instance: 7, cache: 1]; |
| 520 |
density_options = Switch( |
| 521 |
switchRenderMode, |
| 522 |
SWdensity_options, |
| 523 |
HWdensity_options) [instance: 8, cache: 1]; |
| 524 |
renderModeString = Switch( |
| 525 |
switchRenderMode, |
| 526 |
"software", |
| 527 |
"hardware")[instance: 9, cache: 1]; |
| 528 |
object_tag = Inquire( |
| 529 |
object, |
| 530 |
"object tag")[instance: 3, cache: 1]; |
| 531 |
annoted_object = |
| 532 |
Options( |
| 533 |
object, |
| 534 |
"send boxes", |
| 535 |
0, |
| 536 |
"cache", |
| 537 |
1, |
| 538 |
"object tag", |
| 539 |
object_tag, |
| 540 |
"ddcamera", |
| 541 |
whichCamera, |
| 542 |
"rendering approximation", |
| 543 |
approximation_options, |
| 544 |
"render every", |
| 545 |
density_options, |
| 546 |
"button state", |
| 547 |
buttonState, |
| 548 |
"rendering mode", |
| 549 |
renderModeString) [instance: 1, cache: 1]; |
| 550 |
RECresNull = |
| 551 |
Inquire( |
| 552 |
RECresolution, |
| 553 |
"is null + 1") [instance: 4, cache: 1]; |
| 554 |
ImageResolution = |
| 555 |
Inquire( |
| 556 |
camera, |
| 557 |
"camera resolution") [instance: 5, cache: 1]; |
| 558 |
RECresolution = |
| 559 |
Switch( |
| 560 |
RECresNull, |
| 561 |
RECresolution, |
| 562 |
ImageResolution) [instance: 10, cache: 1]; |
| 563 |
RECaspectNull = |
| 564 |
Inquire( |
| 565 |
RECaspect, |
| 566 |
"is null + 1") [instance: 6, cache: 1]; |
| 567 |
ImageAspect = |
| 568 |
Inquire( |
| 569 |
camera, |
| 570 |
"camera aspect") [instance: 7, cache: 1]; |
| 571 |
RECaspect = |
| 572 |
Switch( |
| 573 |
RECaspectNull, |
| 574 |
RECaspect, |
| 575 |
ImageAspect) [instance: 11, cache: 1]; |
| 576 |
switchRECenable = Compute( |
| 577 |
"$0 == 0 ? 1 : (($2 == $3) && ($4 == $5)) ? ($1 == 1 ? 2 : 3) : 4", |
| 578 |
RECenable, |
| 579 |
switchRenderMode, |
| 580 |
RECresolution, |
| 581 |
ImageResolution, |
| 582 |
RECaspect, |
| 583 |
ImageAspect) [instance: 4, cache: 1]; |
| 584 |
NoRECobject, RECNoRerenderObject, RECNoRerHW, RECRerenderObject = Route(switchRECenable, annoted_object); |
| 585 |
Display( |
| 586 |
NoRECobject, |
| 587 |
camera, |
| 588 |
where, |
| 589 |
throttle) [instance: 1, cache: 1]; |
| 590 |
image = |
| 591 |
Render( |
| 592 |
RECNoRerenderObject, |
| 593 |
camera) [instance: 1, cache: 1]; |
| 594 |
Display( |
| 595 |
image, |
| 596 |
NULL, |
| 597 |
where, |
| 598 |
throttle) [instance: 2, cache: 1]; |
| 599 |
WriteImage( |
| 600 |
image, |
| 601 |
RECfile, |
| 602 |
RECformat) [instance: 1, cache: 1]; |
| 603 |
rec_where = Display( |
| 604 |
RECNoRerHW, |
| 605 |
camera, |
| 606 |
where, |
| 607 |
throttle) [instance: 1, cache: 0]; |
| 608 |
rec_image = ReadImageWindow( |
| 609 |
rec_where) [instance: 1, cache: 1]; |
| 610 |
WriteImage( |
| 611 |
rec_image, |
| 612 |
RECfile, |
| 613 |
RECformat) [instance: 1, cache: 1]; |
| 614 |
RECupdateCamera = |
| 615 |
UpdateCamera( |
| 616 |
camera, |
| 617 |
resolution=RECresolution, |
| 618 |
aspect=RECaspect) [instance: 2, cache: 1]; |
| 619 |
Display( |
| 620 |
RECRerenderObject, |
| 621 |
camera, |
| 622 |
where, |
| 623 |
throttle) [instance: 1, cache: 1]; |
| 624 |
RECRerenderObject = |
| 625 |
ScaleScreen( |
| 626 |
RECRerenderObject, |
| 627 |
NULL, |
| 628 |
RECresolution, |
| 629 |
camera) [instance: 1, cache: 1]; |
| 630 |
image = |
| 631 |
Render( |
| 632 |
RECRerenderObject, |
| 633 |
RECupdateCamera) [instance: 2, cache: 1]; |
| 634 |
WriteImage( |
| 635 |
image, |
| 636 |
RECfile, |
| 637 |
RECformat) [instance: 2, cache: 1]; |
| 638 |
} |
| 639 |
main_Image_3_in_1 = "Image_3"; |
| 640 |
main_Image_3_in_3 = "X16,,"; |
| 641 |
main_Image_3_in_4 = 1; |
| 642 |
main_Image_3_in_5 = [9.53674e-07 9.53674e-07 9.53674e-07]; |
| 643 |
main_Image_3_in_6 = [9.53674e-07 9.53674e-07 7.60924]; |
| 644 |
main_Image_3_in_7 = 4.07779; |
| 645 |
main_Image_3_in_8 = 566; |
| 646 |
main_Image_3_in_9 = 0.858; |
| 647 |
main_Image_3_in_10 = [0 1 0]; |
| 648 |
main_Image_3_in_11 = 30.0001; |
| 649 |
main_Image_3_in_12 = 0; |
| 650 |
main_Image_3_in_13 = NULL; |
| 651 |
main_Image_3_in_14 = 1; |
| 652 |
main_Image_3_in_15 = NULL; |
| 653 |
main_Image_3_in_16 = NULL; |
| 654 |
main_Image_3_in_17 = NULL; |
| 655 |
main_Image_3_in_18 = NULL; |
| 656 |
main_Image_3_in_19 = 0; |
| 657 |
main_Image_3_in_20 = NULL; |
| 658 |
main_Image_3_in_21 = NULL; |
| 659 |
main_Image_3_in_22 = NULL; |
| 660 |
main_Image_3_in_23 = NULL; |
| 661 |
main_Image_3_in_25 = NULL; |
| 662 |
main_Image_3_in_26 = NULL; |
| 663 |
main_Image_3_in_27 = NULL; |
| 664 |
main_Image_3_in_28 = NULL; |
| 665 |
main_Image_3_in_29 = 1; |
| 666 |
main_Image_3_in_30 = NULL; |
| 667 |
main_Image_3_in_31 = NULL; |
| 668 |
main_Image_3_in_32 = NULL; |
| 669 |
main_Image_3_in_33 = NULL; |
| 670 |
main_Image_3_in_34 = NULL; |
| 671 |
main_Image_3_in_35 = NULL; |
| 672 |
main_Image_3_in_36 = NULL; |
| 673 |
main_Image_3_in_37 = NULL; |
| 674 |
main_Image_3_in_38 = NULL; |
| 675 |
main_Image_3_in_39 = NULL; |
| 676 |
main_Image_3_in_40 = NULL; |
| 677 |
main_Image_3_in_41 = "rotate"; |
| 678 |
main_Image_3_in_42 = NULL; |
| 679 |
main_Image_3_in_43 = NULL; |
| 680 |
main_Image_3_in_44 = NULL; |
| 681 |
main_Image_3_in_45 = NULL; |
| 682 |
main_Image_3_in_46 = NULL; |
| 683 |
main_Image_3_in_47 = NULL; |
| 684 |
main_Image_3_in_48 = NULL; |
| 685 |
main_Image_3_in_49 = NULL; |
| 686 |
main_Scalar_2_in_1 = "Scalar_2"; |
| 687 |
main_Scalar_2_in_3 = 0.75 ; |
| 688 |
main_Scalar_2_in_4 = NULL; |
| 689 |
main_Scalar_2_in_5 = NULL; |
| 690 |
main_Scalar_2_in_6 = NULL; |
| 691 |
main_Scalar_2_in_7 = NULL; |
| 692 |
main_Scalar_2_in_8 = NULL; |
| 693 |
main_Scalar_2_in_9 = NULL; |
| 694 |
main_Scalar_2_in_10 = NULL; |
| 695 |
main_Scalar_2_in_11 = NULL; |
| 696 |
main_Scalar_2_out_1 = 0.75 ; |
| 697 |
main_Isosurface_6_in_3 = NULL; |
| 698 |
main_Isosurface_6_in_4 = NULL; |
| 699 |
main_Isosurface_6_in_5 = NULL; |
| 700 |
main_Isosurface_6_in_6 = NULL; |
| 701 |
Executive("product version 4 3 0"); |
| 702 |
$sync |
| 703 |
main(); |