| 1 | /* |
| 2 | * |
| 3 | * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2.1 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * Further, this software is distributed without any warranty that it is |
| 16 | * free of the rightful claim of any third person regarding infringement |
| 17 | * or the like. Any license provided herein, whether implied or |
| 18 | * otherwise, applies only to this software file. Patent licenses, if |
| 19 | * any, provided herein do not apply to combinations of this program with |
| 20 | * other software, or any other product whatsoever. |
| 21 | * |
| 22 | * You should have received a copy of the GNU Lesser General Public |
| 23 | * License along with this library; if not, write to the Free Software |
| 24 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 25 | * |
| 26 | * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, |
| 27 | * Mountain View, CA 94043, or: |
| 28 | * |
| 29 | * http://www.sgi.com |
| 30 | * |
| 31 | * For further information regarding this notice, see: |
| 32 | * |
| 33 | * http://oss.sgi.com/projects/GenInfo/NoticeExplan/ |
| 34 | * |
| 35 | */ |
| 36 | |
| 37 | #include <cstdio> |
| 38 | #include <cstdlib> |
| 39 | #include <cstring> |
| 40 | #include <unistd.h> |
| 41 | #ifdef __sgi |
| 42 | #include <alloca.h> |
| 43 | #endif |
| 44 | #include <assert.h> |
| 45 | #include <locale.h> |
| 46 | #include <sys/types.h> |
| 47 | #include <sys/stat.h> |
| 48 | #include <Inventor/SoDB.h>cxx . . $ `<file>/lib/database/include/Inventor/SoDB.h`/ |
| 49 | #include <Inventor/SoInput.h>cxx . . $ `<file>/lib/database/include/Inventor/SoInput.h`/ |
| 50 | #include <Inventor/Xt/SoXt.h>cxx . . $ `<file>/libSoXt/include/Inventor/Xt/SoXt.h`/ |
| 51 | #include <Inventor/Xt/viewers/SoXtExaminerViewer.h>cxx . . $ `<file>/libSoXt/include/Inventor/Xt/viewers/SoXtExaminerViewer.h`/ |
| 52 | #include <Inventor/Xt/viewers/SoXtWalkViewer.h>cxx . . $ `<file>/libSoXt/include/Inventor/Xt/viewers/SoXtWalkViewer.h`/ |
| 53 | #include <Inventor/actions/SoCallbackAction.h>cxx . . $ `<file>/lib/database/include/Inventor/actions/SoCallbackAction.h`/ |
| 54 | #include <Inventor/actions/SoWriteAction.h>cxx . . $ `<file>/lib/database/include/Inventor/actions/SoWriteAction.h`/ |
| 55 | #include <Inventor/elements/SoCacheElement.h>cxx . . $ `<file>/lib/database/include/Inventor/elements/SoCacheElement.h`/ |
| 56 | #include <Inventor/nodes/SoCallback.h>cxx . . $ `<file>/lib/database/include/Inventor/nodes/SoCallback.h`/ |
| 57 | #include <Inventor/nodes/SoFont.h>cxx . . $ `<file>/lib/database/include/Inventor/nodes/SoFont.h`/ |
| 58 | #include <Inventor/nodes/SoOrthographicCamera.h>cxx . . $ `<file>/lib/database/include/Inventor/nodes/SoOrthographicCamera.h`/ |
| 59 | #include <Inventor/nodes/SoShape.h>cxx . . $ `<file>/lib/database/include/Inventor/nodes/SoShape.h`/ |
| 60 | #include <Inventor/nodes/SoSeparator.h>cxx . . $ `<file>/lib/database/include/Inventor/nodes/SoSeparator.h`/ |
| 61 | #include <Inventor/nodes/SoText2.h>cxx . . $ `<file>/lib/database/include/Inventor/nodes/SoText2.h`/ |
| 62 | #include <Inventor/sensors/SoTimerSensor.h>cxx . . $ `<file>/lib/database/include/Inventor/sensors/SoTimerSensor.h`/ |
| 63 | |
| 64 | #include "../../samples/widgets/MyColorEditor.h"cxx . . $ `<file>/build/apps/samples/widgets/MyColorEditor.h`/ |
| 65 | #include "ivviewMenus.h"cxx . . $ `<file>/apps/tools/ivview/ivviewMenus.h`/ |
| 66 | |
| 67 | #define SCREENcxx . . $ `apps/tools/ivview/ivview.c++:67:9`!(w) XScreenNumberOfScreen(XtScreen(w)) |
| 68 | |
| 69 | typedef structcxx . . $ $anonymous_type_1fc583390a39d005_0# { |
| 70 | int countcxx . . $ $anonymous_type_1fc583390a39d005_0#count.; // Number of files read |
| 71 | char **namescxx . . $ $anonymous_type_1fc583390a39d005_0#names.; // File names |
| 72 | SoNodecxx . . $ SoNode# *originalcxx . . $ $anonymous_type_1fc583390a39d005_0#original.; // Un-munged scene |
| 73 | SoSeparatorcxx . . $ SoSeparator# *optimizedcxx . . $ $anonymous_type_1fc583390a39d005_0#optimized.; // Optimized scene |
| 74 | SoSeparatorcxx . . $ SoSeparator# *ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed.; // Ivfixed scene |
| 75 | } FileInfocxx . . $ FileInfo#; |
| 76 | |
| 77 | // Function prototypes |
| 78 | static void print_usagecxx . . $ print_usage(85c52e162fed56f9).(const char *); |
| 79 | static void parse_argscxx . . $ parse_args(c759356ac01a31e7).(int , char **); |
| 80 | static SbBoolcxx . . $ SbBool# readScenecxx . . $ readScene(4eb8fc26f8b57843).(FileInfocxx . . $ FileInfo# &); // Returns TRUE if error |
| 81 | static void initPerfMetercxx . . $ initPerfMeter(e7cdb57e47b403f8).(SoXtViewercxx . . $ SoXtViewer# *); |
| 82 | static void viewStartCBcxx . . $ viewStartCB(53b15af9fcb5e041).(void *, SoXtViewercxx . . $ SoXtViewer# *); |
| 83 | static void setBusyCursorcxx . . $ setBusyCursor(d4f767463ce0a6b3).(SbBoolcxx . . $ SbBool#); |
| 84 | static void createBusyCursorcxx . . $ createBusyCursor(5cb9ad5594625c7a).(Displaycxx . . $ Display# *); |
| 85 | static void overlayViewportCBcxx . . $ overlayViewportCB(bce1023e0c0307e5).(void *, SoActioncxx . . $ SoAction# *); |
| 86 | static void countUpdatesCBcxx . . $ countUpdatesCB(bce1023e0c0307e5).(void *, SoActioncxx . . $ SoAction# *); |
| 87 | static void perfSensorCBcxx . . $ perfSensorCB(c8d298b3e215c027).(void *, SoSensorcxx . . $ SoSensor# *); |
| 88 | static void showAboutDialogcxx . . $ showAboutDialog(49f6e7a06ebc5aa8).(); |
| 89 | static void getNewScenecxx . . $ getNewScene(49f6e7a06ebc5aa8).(); |
| 90 | static void optimizationChangedcxx . . $ optimizationChanged(3a512a24b89271c1).(FileInfocxx . . $ FileInfo# &, SbBoolcxx . . $ SbBool#); |
| 91 | static void newSceneCBcxx . . $ newSceneCB(23cdf17a8f279c9d).(Widgetcxx . . $ Widget#, void *, XmFileSelectionBoxCallbackStruct *); |
| 92 | static void editBackgroundColorcxx . . $ editBackgroundColor(49f6e7a06ebc5aa8).(); |
| 93 | static void backgroundColorCBcxx . . $ backgroundColorCB(a23719629555fa40).(void *, const SbColorcxx . . $ SbColor# *); |
| 94 | static void processTopbarEventcxx . . $ processTopbarEvent(fc67a36ad48db9ed).(Widgetcxx . . $ Widget#, ivMenuItemcxx . . $ ivMenuItem# *, XmAnyCallbackStruct *); |
| 95 | static Widgetcxx . . $ Widget# buildAndLayoutMenuscxx . . $ buildAndLayoutMenus(a686be44a4028679).(Widgetcxx . . $ Widget# ); |
| 96 | static SoXtViewercxx . . $ SoXtViewer# *buildAndLayoutViewercxx . . $ buildAndLayoutViewer(b0e2796c0278ef0a).(Widgetcxx . . $ Widget# , Widgetcxx . . $ Widget#, SbBoolcxx . . $ SbBool#); |
| 97 | static SoSeparatorcxx . . $ SoSeparator# *addUpdateCountercxx . . $ addUpdateCounter(d2a3fd698ce0721a).(SoNodecxx . . $ SoNode# *); |
| 98 | static int countTrianglescxx . . $ countTriangles(17223a0c8fe933a2).(SoNodecxx . . $ SoNode# *); |
| 99 | static void countTriangleCBcxx . . $ countTriangleCB(b8d71376c8e60307).(void *, SoCallbackActioncxx . . $ SoCallbackAction# *, |
| 100 | const SoPrimitiveVertexcxx . . $ SoPrimitiveVertex# *, const SoPrimitiveVertexcxx . . $ SoPrimitiveVertex# *, |
| 101 | const SoPrimitiveVertexcxx . . $ SoPrimitiveVertex# *); |
| 102 | |
| 103 | // Global variables |
| 104 | static SoXtViewercxx . . $ SoXtViewer# *viewercxx . . $ viewer. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 105 | static Widgetcxx . . $ Widget# shellcxx . . $ shell. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 106 | static SbBoolcxx . . $ SbBool# useWalkViewercxx . . $ useWalkViewer. = FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!; |
| 107 | static FileInfocxx . . $ FileInfo# filescxx . . $ files. = { 0, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`! }; |
| 108 | static SbBoolcxx . . $ SbBool# showPerfMetercxx . . $ showPerfMeter. = FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!; |
| 109 | static int numTriscxx . . $ numTris. = 0; |
| 110 | static int numFramesRenderedcxx . . $ numFramesRendered. = 0; |
| 111 | static SbBoolcxx . . $ SbBool# ivfixcxx . . $ ivfix. = FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!; |
| 112 | static SbBoolcxx . . $ SbBool# shapeHintBackfacecxx . . $ shapeHintBackface. = FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!; |
| 113 | |
| 114 | // Definitions for busy cursor: |
| 115 | static Cursorcxx . . $ Cursor# busyCursorcxx . . $ busyCursor. = 0; |
| 116 | #define hourglass_widthcxx . . $ `apps/tools/ivview/ivview.c++:116:9`! 17 |
| 117 | #define hourglass_heightcxx . . $ `apps/tools/ivview/ivview.c++:117:9`! 21 |
| 118 | #define hourglass_x_hotcxx . . $ `apps/tools/ivview/ivview.c++:118:9`! 8 |
| 119 | #define hourglass_y_hotcxx . . $ `apps/tools/ivview/ivview.c++:119:9`! 11 |
| 120 | static char hourglass_bitscxx . . $ hourglass_bits.[] = { |
| 121 | 0x00, 0x00, 0x00, 0xfe, 0xff, 0x00, 0x04, 0x40, 0x00, 0x04, 0x40, 0x00, |
| 122 | 0x04, 0x40, 0x00, 0xe8, 0x2e, 0x00, 0xd0, 0x17, 0x00, 0xa0, 0x0b, 0x00, |
| 123 | 0x40, 0x05, 0x00, 0x40, 0x05, 0x00, 0x40, 0x04, 0x00, 0x40, 0x04, 0x00, |
| 124 | 0x40, 0x04, 0x00, 0x20, 0x09, 0x00, 0x10, 0x11, 0x00, 0x88, 0x23, 0x00, |
| 125 | 0xc4, 0x47, 0x00, 0xe4, 0x4f, 0x00, 0xf4, 0x5f, 0x00, 0xfe, 0xff, 0x00, |
| 126 | 0x00, 0x00, 0x00}; |
| 127 | |
| 128 | static char hourglass_mask_bitscxx . . $ hourglass_mask_bits.[] = { |
| 129 | 0xff, 0xff, 0x01, 0xff, 0xff, 0x01, 0xfe, 0xff, 0x00, 0xfe, 0xff, 0x00, |
| 130 | 0xfe, 0xff, 0x00, 0xfc, 0x7f, 0x00, 0xf8, 0x3f, 0x00, 0xf0, 0x1f, 0x00, |
| 131 | 0xe0, 0x0f, 0x00, 0xe0, 0x0f, 0x00, 0xe0, 0x0f, 0x00, 0xe0, 0x0f, 0x00, |
| 132 | 0xe0, 0x0f, 0x00, 0xf0, 0x1f, 0x00, 0xf8, 0x3f, 0x00, 0xfc, 0x7f, 0x00, |
| 133 | 0xfe, 0xff, 0x00, 0xfe, 0xff, 0x00, 0xfe, 0xff, 0x00, 0xff, 0xff, 0x01, |
| 134 | 0xff, 0xff, 0x01}; |
| 135 | |
| 136 | ////////////////////////////////////////////////////////////////////// |
| 137 | // |
| 138 | // Print the help message |
| 139 | // |
| 140 | static void |
| 141 | print_usagecxx . . $ print_usage(85c52e162fed56f9).(const char *progname) |
| 142 | { |
| 143 | fprintf(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Usage: %s [-hpw] [infiles]\n", progname); |
| 144 | fprintf(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, |
| 145 | "\t-h : Print this message (help) and exit\n" |
| 146 | "\t-p : Enable performance meter\n" |
| 147 | "\t-w : Use walk viewer (examiner viewer is default)\n" |
| 148 | ); |
| 149 | |
| 150 | exit(99); |
| 151 | } |
| 152 | |
| 153 | ///////////////////////////////////////////////////////////////////// |
| 154 | // |
| 155 | // Parse the command line arguments |
| 156 | // |
| 157 | static void |
| 158 | parse_argscxx . . $ parse_args(c759356ac01a31e7).(int argc, char **argv) |
| 159 | { |
| 160 | int err = FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!; // Flag: error in options? |
| 161 | int c; |
| 162 | |
| 163 | showPerfMetercxx . . $ showPerfMeter. = FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!; |
| 164 | |
| 165 | while ((c = getopt(argc, argv, "hpqw")) != -1) { |
| 166 | switch(c) { |
| 167 | case 'h': // Help |
| 168 | err = TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!; |
| 169 | break; |
| 170 | case 'p': |
| 171 | showPerfMetercxx . . $ showPerfMeter. = TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!; |
| 172 | break; |
| 173 | case 'q': |
| 174 | // no-op for backward compatibility only |
| 175 | break; |
| 176 | case 'w': |
| 177 | useWalkViewercxx . . $ useWalkViewer. = TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!; |
| 178 | break; |
| 179 | default: |
| 180 | err = TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!; |
| 181 | break; |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | // Can't handle -pw, at least right now: |
| 186 | if (showPerfMetercxx . . $ showPerfMeter. && useWalkViewercxx . . $ useWalkViewer.) { |
| 187 | fprintf(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Sorry, can't show performance when using " |
| 188 | "walk viewer. Ignoring -p option\n"); |
| 189 | showPerfMetercxx . . $ showPerfMeter. = FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!; |
| 190 | } |
| 191 | |
| 192 | /* Handle multiple filenames */ |
| 193 | if (optind == argc) { |
| 194 | // Act like one argument "-" was given |
| 195 | argc++; |
| 196 | argv[optind] = "-"; |
| 197 | } |
| 198 | |
| 199 | filescxx . . $ files..countcxx . . $ $anonymous_type_1fc583390a39d005_0#count. = argc - optind; |
| 200 | filescxx . . $ files..namescxx . . $ $anonymous_type_1fc583390a39d005_0#names. = (char **) malloc (filescxx . . $ files..countcxx . . $ $anonymous_type_1fc583390a39d005_0#count. * sizeof(char *)); |
| 201 | for (int i=0; i<filescxx . . $ files..countcxx . . $ $anonymous_type_1fc583390a39d005_0#count.; i++, optind++) |
| 202 | filescxx . . $ files..namescxx . . $ $anonymous_type_1fc583390a39d005_0#names.[i] = argv[optind]; |
| 203 | |
| 204 | if (err) |
| 205 | print_usagecxx . . $ print_usage(85c52e162fed56f9).(argv[0]); |
| 206 | } |
| 207 | |
| 208 | |
| 209 | ///////////////////////////////////////////////////////////////////// |
| 210 | // |
| 211 | // Read the scene from the file(s). |
| 212 | // If there are multiple files, combine their contents under one separator. |
| 213 | // Returns TRUE if read was OK, FALSE if read error. |
| 214 | // |
| 215 | static SbBoolcxx . . $ SbBool# |
| 216 | readScenecxx . . $ readScene(4eb8fc26f8b57843).(FileInfocxx . . $ FileInfo# &files) |
| 217 | { |
| 218 | SoInputcxx . . $ SoInput# incxx . . $ SoInput#SoInput(49f6e7a06ebc5aa8).; |
| 219 | SoSeparatorcxx . . $ SoSeparator# *root; |
| 220 | |
| 221 | if (files.countcxx . . $ $anonymous_type_1fc583390a39d005_0#count. == 0) |
| 222 | return 0; |
| 223 | |
| 224 | // Watch out! There's a hidden dependence here between this code |
| 225 | // and the code in the optimizationChanged routine that runs files |
| 226 | // through ivfix. In particular, the optimizationChanged code |
| 227 | // assumes that, if stdin is being read from, that no other |
| 228 | // filenames are given. |
| 229 | if (files.countcxx . . $ $anonymous_type_1fc583390a39d005_0#count.==1 && strcmp(files.namescxx . . $ $anonymous_type_1fc583390a39d005_0#names.[0], "-")==0) { |
| 230 | // Read from stdin |
| 231 | if (isatty(fileno(stdincxx . . $ `<external>/232824719582829767/stdio.h:153:9`!))) { |
| 232 | fprintf(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Trying to read from standard input, "); |
| 233 | fprintf(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "but standard input is a tty!\n"); |
| 234 | return 0; |
| 235 | } |
| 236 | else |
| 237 | in.setFilePointercxx . . $ SoInput#setFilePointer(8d4262d45fc644ab).(stdincxx . . $ `<external>/232824719582829767/stdio.h:153:9`!); |
| 238 | |
| 239 | root = SoDBcxx . . $ SoDB#::readAllcxx . . $ SoDB#readAll(e6adbfcd7bb1cb98).(&in); |
| 240 | if (root == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) |
| 241 | fprintf(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Error reading file %s\n", files.namescxx . . $ $anonymous_type_1fc583390a39d005_0#names.[0]); |
| 242 | else |
| 243 | root->refcxx . . $ SoBase#ref(83f5f38750778ac8).(); |
| 244 | |
| 245 | // SoInput destructor automatically closes file. |
| 246 | } |
| 247 | else { // Not reading from stdin: |
| 248 | root = new SoSeparatorcxx . . $ SoSeparator#SoSeparator(49f6e7a06ebc5aa8).; |
| 249 | root->refcxx . . $ SoBase#ref(83f5f38750778ac8).(); |
| 250 | |
| 251 | // |
| 252 | // Combine all the files under one separator |
| 253 | // |
| 254 | for (int i=0; i<files.countcxx . . $ $anonymous_type_1fc583390a39d005_0#count.; i++) { |
| 255 | if (!in.openFilecxx . . $ SoInput#openFile(cb7559238bb26814).(files.namescxx . . $ $anonymous_type_1fc583390a39d005_0#names.[i])) { |
| 256 | root->unrefcxx . . $ SoBase#unref(83f5f38750778ac8).(); |
| 257 | return 0; |
| 258 | } |
| 259 | SoSeparatorcxx . . $ SoSeparator# *inputRoot = SoDBcxx . . $ SoDB#::readAllcxx . . $ SoDB#readAll(e6adbfcd7bb1cb98).(&in); |
| 260 | if (inputRoot == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) { |
| 261 | root->unrefcxx . . $ SoBase#unref(83f5f38750778ac8).(); |
| 262 | return 0; |
| 263 | } |
| 264 | root->addChildcxx . . $ SoGroup#addChild(da6c7544ccee32bd).(inputRoot); |
| 265 | in.closeFilecxx . . $ SoInput#closeFile(49f6e7a06ebc5aa8).(); |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | if (root && showPerfMetercxx . . $ showPerfMeter.) { |
| 270 | SoSeparatorcxx . . $ SoSeparator# *oldRoot = root; |
| 271 | root = addUpdateCountercxx . . $ addUpdateCounter(d2a3fd698ce0721a).(oldRoot); |
| 272 | root->refcxx . . $ SoBase#ref(83f5f38750778ac8).(); |
| 273 | oldRoot->unrefcxx . . $ SoBase#unref(83f5f38750778ac8).(); |
| 274 | numTriscxx . . $ numTris. = countTrianglescxx . . $ countTriangles(17223a0c8fe933a2).(root); |
| 275 | } |
| 276 | |
| 277 | // Nuke old scene(s): |
| 278 | if (files.originalcxx . . $ $anonymous_type_1fc583390a39d005_0#original.) { |
| 279 | files.originalcxx . . $ $anonymous_type_1fc583390a39d005_0#original.->unrefcxx . . $ SoBase#unref(83f5f38750778ac8).(); |
| 280 | files.originalcxx . . $ $anonymous_type_1fc583390a39d005_0#original. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 281 | } |
| 282 | if (files.optimizedcxx . . $ $anonymous_type_1fc583390a39d005_0#optimized.) { |
| 283 | files.optimizedcxx . . $ $anonymous_type_1fc583390a39d005_0#optimized.->unrefcxx . . $ SoBase#unref(83f5f38750778ac8).(); |
| 284 | files.optimizedcxx . . $ $anonymous_type_1fc583390a39d005_0#optimized. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 285 | } |
| 286 | if (files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed.) { |
| 287 | files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed.->unrefcxx . . $ SoBase#unref(83f5f38750778ac8).(); |
| 288 | files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 289 | } |
| 290 | |
| 291 | // And create new ones: |
| 292 | if (root) { |
| 293 | files.originalcxx . . $ $anonymous_type_1fc583390a39d005_0#original. = root; |
| 294 | optimizationChangedcxx . . $ optimizationChanged(3a512a24b89271c1).(files, FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!); |
| 295 | } |
| 296 | |
| 297 | return (root != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 298 | } |
| 299 | |
| 300 | ///////////////////////////////////////////////////////////////////// |
| 301 | // |
| 302 | // Called when optimization options change, or when a new file is |
| 303 | // read. |
| 304 | // |
| 305 | static void |
| 306 | optimizationChangedcxx . . $ optimizationChanged(3a512a24b89271c1).(FileInfocxx . . $ FileInfo# &files, SbBoolcxx . . $ SbBool# maintainCamera) |
| 307 | { |
| 308 | // If no original file, have nothing to do: |
| 309 | if (files.originalcxx . . $ $anonymous_type_1fc583390a39d005_0#original. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) return; |
| 310 | |
| 311 | // We'll recreate the optimized graph: |
| 312 | if (files.optimizedcxx . . $ $anonymous_type_1fc583390a39d005_0#optimized.) { |
| 313 | files.optimizedcxx . . $ $anonymous_type_1fc583390a39d005_0#optimized.->unrefcxx . . $ SoBase#unref(83f5f38750778ac8).(); |
| 314 | files.optimizedcxx . . $ $anonymous_type_1fc583390a39d005_0#optimized. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 315 | } |
| 316 | if (ivfixcxx . . $ ivfix.) { |
| 317 | SbBoolcxx . . $ SbBool# err = FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!; |
| 318 | char *tempFile = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 319 | setBusyCursorcxx . . $ setBusyCursor(d4f767463ce0a6b3).(TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!); |
| 320 | |
| 321 | if (files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) do { |
| 322 | |
| 323 | // First, special case-- read from stdin: |
| 324 | if (files.countcxx . . $ $anonymous_type_1fc583390a39d005_0#count.==1 && strcmp(files.namescxx . . $ $anonymous_type_1fc583390a39d005_0#names.[0], "-")==0) { |
| 325 | tempFile = tempnam(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, "ivfix"); |
| 326 | if (tempFile == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) { |
| 327 | err = 1; |
| 328 | break; |
| 329 | } |
| 330 | // |
| 331 | // Run ivfix on the original scene |
| 332 | // |
| 333 | |
| 334 | // String long enough for temp filename plus "ivfix >" |
| 335 | char ivfixCommand[L_tmpnamcxx . . $ `<external>/232824719582829767/stdio.h:124:9`! + 10]; |
| 336 | sprintf(ivfixCommand, "ivfix > %s", tempFile); |
| 337 | FILE *ivfixPipe = popen(ivfixCommand, "w"); |
| 338 | if (ivfixPipe == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) { |
| 339 | err = TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!; |
| 340 | break; |
| 341 | } |
| 342 | |
| 343 | // Write to ivfix through pipe: |
| 344 | SoOutputcxx . . $ SoOutput# outcxx . . $ SoOutput#SoOutput(49f6e7a06ebc5aa8).; |
| 345 | out.setBinarycxx . . $ SoOutput#setBinary(d4f767463ce0a6b3).(TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!); |
| 346 | out.setFilePointercxx . . $ SoOutput#setFilePointer(8d4262d45fc644ab).(ivfixPipe); |
| 347 | SoWriteActioncxx . . $ SoWriteAction# wacxx . . $ SoWriteAction#SoWriteAction(46d85c4d426f339d).(&out); |
| 348 | wa.applycxx . . $ SoAction#apply(da6c7544ccee32bd).(files.originalcxx . . $ $anonymous_type_1fc583390a39d005_0#original.); |
| 349 | if (ferror(ivfixPipe)) { |
| 350 | err = TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!; |
| 351 | break; |
| 352 | } |
| 353 | pclose(ivfixPipe); |
| 354 | |
| 355 | // Now read tempFile: |
| 356 | SoInputcxx . . $ SoInput# incxx . . $ SoInput#SoInput(49f6e7a06ebc5aa8).; |
| 357 | if (!in.openFilecxx . . $ SoInput#openFile(cb7559238bb26814).(tempFile)) { |
| 358 | err = TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!; |
| 359 | break; |
| 360 | } |
| 361 | files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed. = SoDBcxx . . $ SoDB#::readAllcxx . . $ SoDB#readAll(e6adbfcd7bb1cb98).(&in); |
| 362 | if (files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) { |
| 363 | err = TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!; |
| 364 | break; |
| 365 | } else { |
| 366 | files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed.->refcxx . . $ SoBase#ref(83f5f38750778ac8).(); |
| 367 | } |
| 368 | in.closeFilecxx . . $ SoInput#closeFile(49f6e7a06ebc5aa8).(); |
| 369 | } |
| 370 | else { // Not reading from stdin: |
| 371 | files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed. = new SoSeparatorcxx . . $ SoSeparator#SoSeparator(49f6e7a06ebc5aa8).; |
| 372 | files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed.->refcxx . . $ SoBase#ref(83f5f38750778ac8).(); |
| 373 | for (int i = 0; i < files.countcxx . . $ $anonymous_type_1fc583390a39d005_0#count.; i++) { |
| 374 | const char *filename = files.namescxx . . $ $anonymous_type_1fc583390a39d005_0#names.[i]; |
| 375 | char *ivfixCommand = (char *) |
| 376 | allocacxx . . $ `<external>/11612401604547820122/alloca.h:35:10`!(strlen("ivfix ")+strlen(filename)+1); |
| 377 | sprintf(ivfixCommand, "ivfix %s", filename); |
| 378 | |
| 379 | // Read from ivfix: |
| 380 | FILE *ivfixPipe = popen(ivfixCommand, "r"); |
| 381 | if (ivfixPipe == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) { |
| 382 | files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed.->unrefcxx . . $ SoBase#unref(83f5f38750778ac8).(); |
| 383 | files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 384 | err = TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!; |
| 385 | break; |
| 386 | } |
| 387 | |
| 388 | // If the filename includes a directory path, add |
| 389 | // the directory name to the list of directories |
| 390 | // where to look for input files: |
| 391 | const char *slashPtr; |
| 392 | char *searchPath = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 393 | if ((slashPtr = strrchr(filename, '/')) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) { |
| 394 | searchPath = strdup(filename); |
| 395 | searchPath[slashPtr - filename] = '\0'; |
| 396 | SoInputcxx . . $ SoInput#::addDirectoryFirstcxx . . $ SoInput#addDirectoryFirst(85c52e162fed56f9).(searchPath); |
| 397 | } |
| 398 | |
| 399 | SoInputcxx . . $ SoInput# incxx . . $ SoInput#SoInput(49f6e7a06ebc5aa8).; |
| 400 | in.setFilePointercxx . . $ SoInput#setFilePointer(8d4262d45fc644ab).(ivfixPipe); |
| 401 | SoSeparatorcxx . . $ SoSeparator# *root = SoDBcxx . . $ SoDB#::readAllcxx . . $ SoDB#readAll(e6adbfcd7bb1cb98).(&in); |
| 402 | |
| 403 | if (searchPath) { |
| 404 | SoInputcxx . . $ SoInput#::removeDirectorycxx . . $ SoInput#removeDirectory(85c52e162fed56f9).(searchPath); |
| 405 | free(searchPath); |
| 406 | } |
| 407 | |
| 408 | if (root == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) { |
| 409 | files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed.->unrefcxx . . $ SoBase#unref(83f5f38750778ac8).(); |
| 410 | files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 411 | err = TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!; |
| 412 | break; |
| 413 | } |
| 414 | files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed.->addChildcxx . . $ SoGroup#addChild(da6c7544ccee32bd).(root); |
| 415 | |
| 416 | pclose(ivfixPipe); |
| 417 | } |
| 418 | } |
| 419 | |
| 420 | if (showPerfMetercxx . . $ showPerfMeter.) { |
| 421 | SoNodecxx . . $ SoNode# *oldRoot = files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed.; |
| 422 | files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed. = addUpdateCountercxx . . $ addUpdateCounter(d2a3fd698ce0721a).(oldRoot); |
| 423 | files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed.->refcxx . . $ SoBase#ref(83f5f38750778ac8).(); |
| 424 | oldRoot->unrefcxx . . $ SoBase#unref(83f5f38750778ac8).(); |
| 425 | numTriscxx . . $ numTris. = countTrianglescxx . . $ countTriangles(17223a0c8fe933a2).(files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed.); |
| 426 | } |
| 427 | } while (0); |
| 428 | |
| 429 | if (files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed.) { |
| 430 | files.optimizedcxx . . $ $anonymous_type_1fc583390a39d005_0#optimized. = files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed.; |
| 431 | files.optimizedcxx . . $ $anonymous_type_1fc583390a39d005_0#optimized.->refcxx . . $ SoBase#ref(83f5f38750778ac8).(); |
| 432 | } |
| 433 | |
| 434 | setBusyCursorcxx . . $ setBusyCursor(d4f767463ce0a6b3).(FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!); |
| 435 | |
| 436 | // Clean up temporary file (whether or not there was an error): |
| 437 | if (tempFile && unlink(tempFile) < 0) { |
| 438 | fprintf(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Warning: Error removing %s after ivfix\n", |
| 439 | tempFile); |
| 440 | } |
| 441 | if (tempFile) free(tempFile); |
| 442 | |
| 443 | // If there was an error: |
| 444 | if (err) { |
| 445 | system("xmessage 'Error running ivfix' > /dev/null"); |
| 446 | } |
| 447 | } |
| 448 | |
| 449 | if (shapeHintBackfacecxx . . $ shapeHintBackface.) { |
| 450 | SoSeparatorcxx . . $ SoSeparator# *optRoot = new SoSeparatorcxx . . $ SoSeparator#SoSeparator(49f6e7a06ebc5aa8).; |
| 451 | optRoot->renderCachingcxx . . $ SoSeparator#renderCaching. =cxx . . $ SoSFEnum#`operator=`(7864480464b09eea). SoSeparatorcxx . . $ SoSeparator#::OFFcxx . . $ SoSeparator#OFF.; |
| 452 | optRoot->boundingBoxCachingcxx . . $ SoSeparator#boundingBoxCaching. =cxx . . $ SoSFEnum#`operator=`(7864480464b09eea). SoSeparatorcxx . . $ SoSeparator#::OFFcxx . . $ SoSeparator#OFF.; |
| 453 | optRoot->pickCullingcxx . . $ SoSeparator#pickCulling. =cxx . . $ SoSFEnum#`operator=`(7864480464b09eea). SoSeparatorcxx . . $ SoSeparator#::OFFcxx . . $ SoSeparator#OFF.; |
| 454 | |
| 455 | if (files.optimizedcxx . . $ $anonymous_type_1fc583390a39d005_0#optimized. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) { |
| 456 | // user also wants ivfix.... |
| 457 | optRoot->addChildcxx . . $ SoGroup#addChild(da6c7544ccee32bd).(files.ivfixedcxx . . $ $anonymous_type_1fc583390a39d005_0#ivfixed.); |
| 458 | files.optimizedcxx . . $ $anonymous_type_1fc583390a39d005_0#optimized.->unrefcxx . . $ SoBase#unref(83f5f38750778ac8).(); |
| 459 | files.optimizedcxx . . $ $anonymous_type_1fc583390a39d005_0#optimized. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 460 | } else { |
| 461 | optRoot->addChildcxx . . $ SoGroup#addChild(da6c7544ccee32bd).(files.originalcxx . . $ $anonymous_type_1fc583390a39d005_0#original.); |
| 462 | } |
| 463 | files.optimizedcxx . . $ $anonymous_type_1fc583390a39d005_0#optimized. = optRoot; |
| 464 | files.optimizedcxx . . $ $anonymous_type_1fc583390a39d005_0#optimized.->refcxx . . $ SoBase#ref(83f5f38750778ac8).(); |
| 465 | |
| 466 | // Insert a ShapeHints node as the first child of files.optimized |
| 467 | SoShapeHintscxx . . $ SoShapeHints# *hints = new SoShapeHintscxx . . $ SoShapeHints#; |
| 468 | hints->vertexOrderingcxx . . $ SoShapeHints#vertexOrdering. =cxx . . $ SoSFEnum#`operator=`(7864480464b09eea). SoShapeHintscxx . . $ SoShapeHints#::COUNTERCLOCKWISEcxx . . $ SoShapeHints#COUNTERCLOCKWISE.; |
| 469 | hints->shapeTypecxx . . $ SoShapeHints#shapeType. =cxx . . $ SoSFEnum#`operator=`(7864480464b09eea). SoShapeHintscxx . . $ SoShapeHints#::SOLIDcxx . . $ SoShapeHints#SOLID.; |
| 470 | hints->setOverridecxx . . $ SoNode#setOverride(d4f767463ce0a6b3).(TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!); |
| 471 | files.optimizedcxx . . $ $anonymous_type_1fc583390a39d005_0#optimized.->insertChildcxx . . $ SoGroup#insertChild(de18c6a3dadfdca6).(hints, 0); |
| 472 | } |
| 473 | |
| 474 | // |
| 475 | // Set scene graph to either optimized or original scene graph: |
| 476 | // |
| 477 | SoNodecxx . . $ SoNode# *currentCamera = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 478 | if (maintainCamera) { |
| 479 | SoNodecxx . . $ SoNode# *viewerCamera = viewercxx . . $ viewer.->getCameracxx . . $ SoXtViewer#getCamera(1a654f0e6690b6f5).(); |
| 480 | if (viewerCamera) { |
| 481 | // Make a copy: |
| 482 | currentCamera = viewerCamera->copycxx . . $ SoNode#copy(fd675789997d09c2).(FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!); |
| 483 | currentCamera->refcxx . . $ SoBase#ref(83f5f38750778ac8).(); |
| 484 | } |
| 485 | } |
| 486 | |
| 487 | if (files.optimizedcxx . . $ $anonymous_type_1fc583390a39d005_0#optimized.) { |
| 488 | // optimized AND/OR ivfixed |
| 489 | if (viewercxx . . $ viewer.->getSceneGraphcxx . . $ SoXtViewer#getSceneGraph(37b0c20759e6fed3).() != files.optimizedcxx . . $ $anonymous_type_1fc583390a39d005_0#optimized.) |
| 490 | viewercxx . . $ viewer.->setSceneGraphcxx . . $ SoXtViewer#setSceneGraph(da6c7544ccee32bd).(files.optimizedcxx . . $ $anonymous_type_1fc583390a39d005_0#optimized.); |
| 491 | } else { |
| 492 | if (viewercxx . . $ viewer.->getSceneGraphcxx . . $ SoXtViewer#getSceneGraph(37b0c20759e6fed3).() != files.originalcxx . . $ $anonymous_type_1fc583390a39d005_0#original.) { |
| 493 | viewercxx . . $ viewer.->setSceneGraphcxx . . $ SoXtViewer#setSceneGraph(da6c7544ccee32bd).(files.originalcxx . . $ $anonymous_type_1fc583390a39d005_0#original.); |
| 494 | } |
| 495 | } |
| 496 | if (currentCamera) { |
| 497 | SoNodecxx . . $ SoNode# *viewerCamera = viewercxx . . $ viewer.->getCameracxx . . $ SoXtViewer#getCamera(1a654f0e6690b6f5).(); |
| 498 | if (viewerCamera) { |
| 499 | // Copy back: |
| 500 | viewerCamera->copyFieldValuescxx . . $ SoFieldContainer#copyFieldValues(502fcadd2953076).(currentCamera, FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!); |
| 501 | } |
| 502 | currentCamera->unrefcxx . . $ SoBase#unref(83f5f38750778ac8).(); |
| 503 | } |
| 504 | } |
| 505 | |
| 506 | //////////////////////////////////////////////////////////////////// |
| 507 | // |
| 508 | // Initialize the performance meter in the overlay planes |
| 509 | // |
| 510 | static void |
| 511 | initPerfMetercxx . . $ initPerfMeter(e7cdb57e47b403f8).(SoXtViewercxx . . $ SoXtViewer# *vwr) |
| 512 | { |
| 513 | // |
| 514 | // Create the overlay scene |
| 515 | // |
| 516 | SoSeparatorcxx . . $ SoSeparator# *perfMeter = new SoSeparatorcxx . . $ SoSeparator#SoSeparator(49f6e7a06ebc5aa8).; |
| 517 | |
| 518 | // Add a callback node which will set the viewport |
| 519 | SoCallbackcxx . . $ SoCallback# *overlayCB = new SoCallbackcxx . . $ SoCallback#; |
| 520 | overlayCB->setCallbackcxx . . $ SoCallback#setCallback(8cbb79f918785003).(overlayViewportCBcxx . . $ overlayViewportCB(bce1023e0c0307e5).); |
| 521 | perfMeter->addChildcxx . . $ SoGroup#addChild(da6c7544ccee32bd).(overlayCB); |
| 522 | |
| 523 | // Add an orthographic camera |
| 524 | perfMeter->addChildcxx . . $ SoGroup#addChild(da6c7544ccee32bd).(new SoOrthographicCameracxx . . $ SoOrthographicCamera#()); |
| 525 | |
| 526 | // Add the text string to display the tris per second |
| 527 | char str[150]; |
| 528 | SoFontcxx . . $ SoFont# *perfMeterFont = new SoFontcxx . . $ SoFont#; |
| 529 | perfMeterFont->sizecxx . . $ SoFont#size. =cxx . . $ SoSFFloat#`operator=`(fbcf3211dfe1bfd1). 18; |
| 530 | perfMeterFont->namecxx . . $ SoFont#name. =cxx . . $ SoSFName#`operator=`(d01f2a08810c2f67). "Helvetica"cxx . . $ SbName#SbName(85c52e162fed56f9).; |
| 531 | perfMeter->addChildcxx . . $ SoGroup#addChild(da6c7544ccee32bd).(perfMeterFont); |
| 532 | SoText2cxx . . $ SoText2# *perfMeterText = new SoText2cxx . . $ SoText2#; |
| 533 | perfMeterText->justificationcxx . . $ SoText2#justification. =cxx . . $ SoSFEnum#`operator=`(7864480464b09eea). SoText2cxx . . $ SoText2#::LEFTcxx . . $ SoText2#LEFT.; |
| 534 | sprintf (str, "%d tris/frame", numTriscxx . . $ numTris.); |
| 535 | perfMeterText->stringcxx . . $ SoText2#string..setValuecxx . . $ SoMFString#setValue(85c52e162fed56f9).(str); |
| 536 | perfMeter->addChildcxx . . $ SoGroup#addChild(da6c7544ccee32bd).(perfMeterText); |
| 537 | |
| 538 | SbColorcxx . . $ SbColor# colcxx . . $ SbColor#SbColor(bd1040fe176e0786).(1, 1, 1); |
| 539 | vwr->setOverlayColorMapcxx . . $ SoXtRenderArea#setOverlayColorMap(dc2565f915532ad7).(1, 1, &col); |
| 540 | vwr->setOverlaySceneGraphcxx . . $ SoXtRenderArea#setOverlaySceneGraph(da6c7544ccee32bd).(perfMeter); |
| 541 | |
| 542 | // Update the performance meter every two seconds |
| 543 | SoTimerSensorcxx . . $ SoTimerSensor# *perfSensor = |
| 544 | new SoTimerSensorcxx . . $ SoTimerSensor#SoTimerSensor(2e94453e53abe5a2).(perfSensorCBcxx . . $ perfSensorCB(c8d298b3e215c027)., perfMeterText); |
| 545 | perfSensor->setIntervalcxx . . $ SoTimerSensor#setInterval(cf18edd44c50d8bf).(2.0cxx . . $ SbTime#SbTime(ba8836b59fb42830).); |
| 546 | perfSensor->schedulecxx . . $ SoTimerSensor#schedule(49f6e7a06ebc5aa8).(); |
| 547 | |
| 548 | // Reset the meter to only show the number of tris/frame - |
| 549 | // otherwise the numbers might look misleading |
| 550 | vwr->addStartCallbackcxx . . $ SoXtViewer#addStartCallback(584743347ba26ea5).(viewStartCBcxx . . $ viewStartCB(53b15af9fcb5e041)., perfMeterText); |
| 551 | } |
| 552 | |
| 553 | |
| 554 | static void |
| 555 | overlayViewportCBcxx . . $ overlayViewportCB(bce1023e0c0307e5).(void *, SoActioncxx . . $ SoAction# *action) |
| 556 | { |
| 557 | if (action->isOfTypecxx . . $ SoAction#isOfType(1fd66475a268b64e).(SoGLRenderActioncxx . . $ SoGLRenderAction#::getClassTypeIdcxx . . $ SoGLRenderAction#getClassTypeId(c00c150378d2b968).())) |
| 558 | glViewport(0, 0, 40, 40); |
| 559 | } |
| 560 | |
| 561 | |
| 562 | //////////////////////////////////////////////////////////////////// |
| 563 | // |
| 564 | // A sensor callback in the overlay scene updates the |
| 565 | // performance meter while the object is animating. |
| 566 | // |
| 567 | static void |
| 568 | perfSensorCBcxx . . $ perfSensorCB(c8d298b3e215c027).(void *data, SoSensorcxx . . $ SoSensor# *) |
| 569 | { |
| 570 | SoText2cxx . . $ SoText2# *perfText = (SoText2cxx . . $ SoText2# *) data; |
| 571 | static SbBoolcxx . . $ SbBool# wasAnimating = FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!; |
| 572 | static SbTimecxx . . $ SbTime# startTimecxx . . $ SbTime#SbTime(49f6e7a06ebc5aa8).; |
| 573 | static double lastFrames = 0; |
| 574 | char str[100]; |
| 575 | |
| 576 | assertcxx . . $ `<external>/4398592474888995393/assert.h:50:10`!(!useWalkViewer); |
| 577 | |
| 578 | if (((SoXtExaminerViewercxx . . $ SoXtExaminerViewer# *)viewercxx . . $ viewer.)->isAnimatingcxx . . $ SoXtExaminerViewer#isAnimating(b126dc7c1de90089).()) { |
| 579 | if (wasAnimating) { |
| 580 | SbTimecxx . . $ SbTime# timeDiff = SbTimecxx . . $ SbTime#::getTimeOfDaycxx . . $ SbTime#getTimeOfDay(a7df0c55874e8fee).() -cxx . . $ operator-(22f32cf074e3d57c). startTime; |
| 581 | double frames = |
| 582 | numFramesRenderedcxx . . $ numFramesRendered. * 1000.0 / timeDiff.getMsecValuecxx . . $ SbTime#getMsecValue(fe4d2d262d4164a8).(); |
| 583 | frames = floor(frames * 100.0 + 0.5) / 100.0; |
| 584 | |
| 585 | // Update the perf meter display if the numbers have changed |
| 586 | if (frames != lastFrames) { |
| 587 | sprintf (str, |
| 588 | "%d tris/frame, %.2lf frames/sec, %.0lf tris/sec", |
| 589 | numTriscxx . . $ numTris., frames, frames * numTriscxx . . $ numTris.); |
| 590 | perfText->stringcxx . . $ SoText2#string..setValuecxx . . $ SoMFString#setValue(85c52e162fed56f9).(str); |
| 591 | lastFrames = frames; |
| 592 | } |
| 593 | |
| 594 | // Don't reset the timer here. By using the total |
| 595 | // time from when the object started animating |
| 596 | // we will get more accurate numbers - especially |
| 597 | // for slow objects. |
| 598 | } |
| 599 | else { |
| 600 | // Reset the timer when we detect the object has |
| 601 | // started animating. |
| 602 | numFramesRenderedcxx . . $ numFramesRendered. = 0; |
| 603 | startTime =cxx . . $ SbTime#`operator=`(73027bd0a2429d7a). SbTimecxx . . $ SbTime#::getTimeOfDaycxx . . $ SbTime#getTimeOfDay(a7df0c55874e8fee).(); |
| 604 | wasAnimating = TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!; |
| 605 | } |
| 606 | } |
| 607 | else |
| 608 | wasAnimating = FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!; |
| 609 | } |
| 610 | |
| 611 | // |
| 612 | // Reset the meter to only show the tris/sec number. |
| 613 | // Otherwise the numbers might look misleading |
| 614 | // |
| 615 | static void |
| 616 | viewStartCBcxx . . $ viewStartCB(53b15af9fcb5e041).(void *data, SoXtViewercxx . . $ SoXtViewer# *) |
| 617 | { |
| 618 | char str[150]; |
| 619 | SoText2cxx . . $ SoText2# *perfText = (SoText2cxx . . $ SoText2# *) data; |
| 620 | |
| 621 | sprintf (str, "%d tris/frame", numTriscxx . . $ numTris.); |
| 622 | perfText->stringcxx . . $ SoText2#string..setValuecxx . . $ SoMFString#setValue(85c52e162fed56f9).(str); |
| 623 | } |
| 624 | |
| 625 | //////////////////////////////////////////////////////////////////// |
| 626 | // |
| 627 | // Turn busy cursor on/off |
| 628 | // |
| 629 | static void |
| 630 | setBusyCursorcxx . . $ setBusyCursor(d4f767463ce0a6b3).(SbBoolcxx . . $ SbBool# showBusy) |
| 631 | { |
| 632 | Displaycxx . . $ Display# *display = shellcxx . . $ shell. ? XtDisplay(shellcxx . . $ shell.) : NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 633 | Windowcxx . . $ Window# window = shellcxx . . $ shell. ? XtWindow(shellcxx . . $ shell.) : (Windowcxx . . $ Window#) NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 634 | |
| 635 | if (!shellcxx . . $ shell. || !display || !window) return; |
| 636 | |
| 637 | // make sure we have defined the cursor |
| 638 | if (! busyCursorcxx . . $ busyCursor.) |
| 639 | createBusyCursorcxx . . $ createBusyCursor(5cb9ad5594625c7a).(display); |
| 640 | |
| 641 | if (showBusy) |
| 642 | XDefineCursor(display, window, busyCursorcxx . . $ busyCursor.); |
| 643 | else |
| 644 | XUndefineCursor(display, window); |
| 645 | |
| 646 | if (viewercxx . . $ viewer.) |
| 647 | viewercxx . . $ viewer.->setCursorEnabledcxx . . $ SoXtViewer#setCursorEnabled(d4f767463ce0a6b3).(!showBusy); |
| 648 | |
| 649 | // force the busy cursor to show up right now |
| 650 | if (showBusy) |
| 651 | XSync(display, Falsecxx . . $ `<external>/4815335266304551920/ICElib.h:38:9`!); |
| 652 | } |
| 653 | |
| 654 | //////////////////////////////////////////////////////////////////// |
| 655 | // |
| 656 | // Define busy cursor |
| 657 | // |
| 658 | static void |
| 659 | createBusyCursorcxx . . $ createBusyCursor(5cb9ad5594625c7a).(Displaycxx . . $ Display# *display) |
| 660 | { |
| 661 | Drawablecxx . . $ Drawable# d = DefaultRootWindowcxx . . $ `<external>/7073035915403465041/Xlib.h:90:9`!(display); |
| 662 | XColorcxx . . $ XColor# foreground, background; |
| 663 | foreground.redcxx . . $ $anonymous_type_17d7f07cf933eea7_12#red. = 65535; |
| 664 | foreground.greencxx . . $ $anonymous_type_17d7f07cf933eea7_12#green. = foreground.bluecxx . . $ $anonymous_type_17d7f07cf933eea7_12#blue. = 0; |
| 665 | background.redcxx . . $ $anonymous_type_17d7f07cf933eea7_12#red. = background.greencxx . . $ $anonymous_type_17d7f07cf933eea7_12#green. = background.bluecxx . . $ $anonymous_type_17d7f07cf933eea7_12#blue. = 65535; |
| 666 | |
| 667 | Pixmapcxx . . $ Pixmap# source = XCreateBitmapFromData(display, d, |
| 668 | hourglass_bitscxx . . $ hourglass_bits., hourglass_widthcxx . . $ `apps/tools/ivview/ivview.c++:116:9`!, hourglass_heightcxx . . $ `apps/tools/ivview/ivview.c++:117:9`!); |
| 669 | Pixmapcxx . . $ Pixmap# mask = XCreateBitmapFromData(display, d, |
| 670 | hourglass_mask_bitscxx . . $ hourglass_mask_bits., hourglass_widthcxx . . $ `apps/tools/ivview/ivview.c++:116:9`!, hourglass_heightcxx . . $ `apps/tools/ivview/ivview.c++:117:9`!); |
| 671 | |
| 672 | busyCursorcxx . . $ busyCursor. = XCreatePixmapCursor(display, source, mask, |
| 673 | &foreground, &background, hourglass_x_hotcxx . . $ `apps/tools/ivview/ivview.c++:118:9`!, hourglass_y_hotcxx . . $ `apps/tools/ivview/ivview.c++:119:9`!); |
| 674 | |
| 675 | XFreePixmap(display, source); |
| 676 | XFreePixmap(display, mask); |
| 677 | } |
| 678 | |
| 679 | //////////////////////////////////////////////////////////////////// |
| 680 | // |
| 681 | // Add a callback node to the main scene which will count the number |
| 682 | // of frames that have been rendered (to compute the tris/sec). |
| 683 | // Make sure the callback doesn't get cached or ruin the caching for |
| 684 | // the rest of the scene |
| 685 | // |
| 686 | static SoSeparatorcxx . . $ SoSeparator# * |
| 687 | addUpdateCountercxx . . $ addUpdateCounter(d2a3fd698ce0721a).(SoNodecxx . . $ SoNode# *root) |
| 688 | { |
| 689 | SoSeparatorcxx . . $ SoSeparator# *newRoot = new SoSeparatorcxx . . $ SoSeparator#SoSeparator(49f6e7a06ebc5aa8).; |
| 690 | newRoot->renderCachingcxx . . $ SoSeparator#renderCaching. =cxx . . $ SoSFEnum#`operator=`(7864480464b09eea). SoSeparatorcxx . . $ SoSeparator#::OFFcxx . . $ SoSeparator#OFF.; |
| 691 | newRoot->boundingBoxCachingcxx . . $ SoSeparator#boundingBoxCaching. =cxx . . $ SoSFEnum#`operator=`(7864480464b09eea). SoSeparatorcxx . . $ SoSeparator#::OFFcxx . . $ SoSeparator#OFF.; |
| 692 | newRoot->pickCullingcxx . . $ SoSeparator#pickCulling. =cxx . . $ SoSFEnum#`operator=`(7864480464b09eea). SoSeparatorcxx . . $ SoSeparator#::OFFcxx . . $ SoSeparator#OFF.; |
| 693 | |
| 694 | SoCallbackcxx . . $ SoCallback# *countUpdates = new SoCallbackcxx . . $ SoCallback#; |
| 695 | countUpdates->setCallbackcxx . . $ SoCallback#setCallback(8cbb79f918785003).(countUpdatesCBcxx . . $ countUpdatesCB(bce1023e0c0307e5).); |
| 696 | |
| 697 | newRoot->addChildcxx . . $ SoGroup#addChild(da6c7544ccee32bd).(countUpdates); |
| 698 | newRoot->addChildcxx . . $ SoGroup#addChild(da6c7544ccee32bd).(root); |
| 699 | |
| 700 | return (newRoot); |
| 701 | } |
| 702 | |
| 703 | static void |
| 704 | countUpdatesCBcxx . . $ countUpdatesCB(bce1023e0c0307e5).(void *, SoActioncxx . . $ SoAction# *action) |
| 705 | { |
| 706 | if (action->isOfTypecxx . . $ SoAction#isOfType(1fd66475a268b64e).(SoGLRenderActioncxx . . $ SoGLRenderAction#::getClassTypeIdcxx . . $ SoGLRenderAction#getClassTypeId(c00c150378d2b968).())) { |
| 707 | numFramesRenderedcxx . . $ numFramesRendered.++; |
| 708 | } |
| 709 | } |
| 710 | |
| 711 | /////////////////////////////////////////////////////////////////// |
| 712 | // |
| 713 | // Brings up the "About..." dialog |
| 714 | // |
| 715 | static void |
| 716 | showAboutDialogcxx . . $ showAboutDialog(49f6e7a06ebc5aa8).() |
| 717 | { |
| 718 | if (access(IVHELPDIRcxx . . $ `<built-in>:436:9`!"/ivview/ivview.about.pdf", R_OKcxx . . $ `<external>/12628407106812493757/unistd.h:281:9`!) != 0) { |
| 719 | system("xmessage 'Sorry, could not find " |
| 720 | IVHELPDIRcxx . . $ `<built-in>:436:9`!"/ivview/ivview.about.pdf' > /dev/null"); |
| 721 | return; |
| 722 | } |
| 723 | |
| 724 | char command[2*PATH_MAXcxx . . $ `<external>/6347054901304145714/limits.h:13:9`!+100]; |
| 725 | sprintf(command, "which " PDFVIEWERcxx . . $ `<built-in>:439:9`! " > /dev/null"); |
| 726 | |
| 727 | int err = system(command); |
| 728 | if (err) { |
| 729 | system("xmessage 'You must install " PDFVIEWERcxx . . $ `<built-in>:439:9`! |
| 730 | " for this function to work' > /dev/null"); |
| 731 | return; |
| 732 | } |
| 733 | |
| 734 | sprintf(command, PDFVIEWERcxx . . $ `<built-in>:439:9`! " "IVHELPDIRcxx . . $ `<built-in>:436:9`!"/ivview/ivview.about.pdf &"); |
| 735 | system(command); |
| 736 | } |
| 737 | |
| 738 | /////////////////////////////////////////////////////////////////// |
| 739 | // |
| 740 | // Use a motif file selection dialog to get the new filename. |
| 741 | // Set up a callback to open the file and create the new scenegraph. |
| 742 | // |
| 743 | static void |
| 744 | getNewScenecxx . . $ getNewScene(49f6e7a06ebc5aa8).() |
| 745 | { |
| 746 | static Widgetcxx . . $ Widget# fileDialog = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 747 | |
| 748 | |
| 749 | if (fileDialog == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) { |
| 750 | Argcxx . . $ Arg# args[5]; |
| 751 | int n = 0; |
| 752 | |
| 753 | // Unmanage when ok/cancel are pressed |
| 754 | XtSetArgcxx . . $ `<external>/3673480128541058774/Intrinsic.h:1160:9`!(args[n], XmNautoUnmanagecxx . . $ `<external>/427401153941432933/XmStrDefs.h:2409:9`!, TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!); n++; |
| 755 | fileDialog = XmCreateFileSelectionDialog( |
| 756 | shellcxx . . $ shell., "File Dialog", args, n); |
| 757 | |
| 758 | XtAddCallback(fileDialog, XmNokCallbackcxx . . $ `<external>/427401153941432933/XmStrDefs.h:3117:9`!, |
| 759 | (XtCallbackProccxx . . $ XtCallbackProc#)newSceneCBcxx . . $ newSceneCB(23cdf17a8f279c9d)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 760 | } |
| 761 | |
| 762 | // Manage the dialog |
| 763 | XtManageChild(fileDialog); |
| 764 | } |
| 765 | |
| 766 | // |
| 767 | // Callback routine that gets called when the new filename |
| 768 | // has been entered |
| 769 | // |
| 770 | static void |
| 771 | newSceneCBcxx . . $ newSceneCB(23cdf17a8f279c9d).(Widgetcxx . . $ Widget#, void *, XmFileSelectionBoxCallbackStruct *data) |
| 772 | { |
| 773 | |
| 774 | // Get the file name |
| 775 | char *filename; |
| 776 | XmStringGetLtoR(data->value, |
| 777 | (XmStringCharSet) XmSTRING_DEFAULT_CHARSETcxx . . $ `<external>/427401153941432933/XmStrDefs.h:5447:9`!, &filename); |
| 778 | |
| 779 | filescxx . . $ files..countcxx . . $ $anonymous_type_1fc583390a39d005_0#count. = 1; |
| 780 | filescxx . . $ files..namescxx . . $ $anonymous_type_1fc583390a39d005_0#names.[0] = strdup(filename); |
| 781 | XtFree(filename); |
| 782 | |
| 783 | setBusyCursorcxx . . $ setBusyCursor(d4f767463ce0a6b3).(TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!); |
| 784 | SbBoolcxx . . $ SbBool# readOk = readScenecxx . . $ readScene(4eb8fc26f8b57843).(filescxx . . $ files.); |
| 785 | setBusyCursorcxx . . $ setBusyCursor(d4f767463ce0a6b3).(FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!); |
| 786 | |
| 787 | if (!readOk) { |
| 788 | char str[100]; |
| 789 | strcpy(str, "Error reading file: "); |
| 790 | strcat(str, filescxx . . $ files..namescxx . . $ $anonymous_type_1fc583390a39d005_0#names.[0]); |
| 791 | SoXtcxx . . $ SoXt#::createSimpleErrorDialogcxx . . $ SoXt#createSimpleErrorDialog(f9dbcb154b73d276).(shellcxx . . $ shell., "File Error Dialog", str); |
| 792 | return; |
| 793 | } |
| 794 | } |
| 795 | |
| 796 | |
| 797 | /////////////////////////////////////////////////////////////////// |
| 798 | // |
| 799 | // Modify the viewer's background color using the color editor |
| 800 | // from the sample directory |
| 801 | // |
| 802 | static void |
| 803 | editBackgroundColorcxx . . $ editBackgroundColor(49f6e7a06ebc5aa8).() |
| 804 | { |
| 805 | static MyColorEditorcxx . . $ MyColorEditor# *backgroundColorEditor = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 806 | |
| 807 | if (backgroundColorEditor == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) { |
| 808 | backgroundColorEditor = new MyColorEditorcxx . . $ MyColorEditor#; |
| 809 | backgroundColorEditor->setColorcxx . . $ MyColorEditor#setColor(fad0b7baf6bfdbd3).(SbColorcxx . . $ SbColor#SbColor(bd1040fe176e0786).(0, 0, 0)); |
| 810 | backgroundColorEditor->setTitlecxx . . $ SoXtComponent#setTitle(85c52e162fed56f9).( "Background Color" ); |
| 811 | backgroundColorEditor->addColorChangedCallbackcxx . . $ MyColorEditor#addColorChangedCallback(dcdee526c386ce58).( |
| 812 | backgroundColorCBcxx . . $ backgroundColorCB(a23719629555fa40).); |
| 813 | } |
| 814 | |
| 815 | backgroundColorEditor->showcxx . . $ SoXtComponent#show(49f6e7a06ebc5aa8).(); |
| 816 | } |
| 817 | |
| 818 | // |
| 819 | // Callback routine that gets called when the background |
| 820 | // color editor values change |
| 821 | // |
| 822 | static void |
| 823 | backgroundColorCBcxx . . $ backgroundColorCB(a23719629555fa40).(void *, const SbColorcxx . . $ SbColor# *color) |
| 824 | { |
| 825 | viewercxx . . $ viewer.->setBackgroundColorcxx . . $ SoXtRenderArea#setBackgroundColor(fad0b7baf6bfdbd3).(*color); |
| 826 | } |
| 827 | |
| 828 | |
| 829 | /////////////////////////////////////////////////////////////////// |
| 830 | // |
| 831 | // Process the topbar menu events. |
| 832 | static void |
| 833 | processTopbarEventcxx . . $ processTopbarEvent(fc67a36ad48db9ed).(Widgetcxx . . $ Widget#, ivMenuItemcxx . . $ ivMenuItem# *data, XmAnyCallbackStruct *) |
| 834 | { |
| 835 | switch (data->idcxx . . $ ivMenuItem#id.) { |
| 836 | |
| 837 | // |
| 838 | // File |
| 839 | // |
| 840 | |
| 841 | case IV_FILE_ABOUTcxx . . $ IV_FILE_ABOUT.: |
| 842 | showAboutDialogcxx . . $ showAboutDialog(49f6e7a06ebc5aa8).(); |
| 843 | break; |
| 844 | |
| 845 | case IV_FILE_OPENcxx . . $ IV_FILE_OPEN.: |
| 846 | getNewScenecxx . . $ getNewScene(49f6e7a06ebc5aa8).(); |
| 847 | break; |
| 848 | |
| 849 | case IV_FILE_QUITcxx . . $ IV_FILE_QUIT.: |
| 850 | exit (0); |
| 851 | break; |
| 852 | |
| 853 | // |
| 854 | // Edit |
| 855 | // |
| 856 | |
| 857 | case IV_EDIT_TRANSPARENCYcxx . . $ IV_EDIT_TRANSPARENCY.: |
| 858 | // Toggle the transparency mode |
| 859 | if (viewercxx . . $ viewer.->getTransparencyTypecxx . . $ SoXtRenderArea#getTransparencyType(813fd8548af75531).() == SoGLRenderActioncxx . . $ SoGLRenderAction#::SCREEN_DOORcxx . . $ SoGLRenderAction#SCREEN_DOOR.) |
| 860 | viewercxx . . $ viewer.->setTransparencyTypecxx . . $ SoXtRenderArea#setTransparencyType(8f19ff67a6c488dd).(SoGLRenderActioncxx . . $ SoGLRenderAction#::DELAYED_BLENDcxx . . $ SoGLRenderAction#DELAYED_BLEND.); |
| 861 | else |
| 862 | viewercxx . . $ viewer.->setTransparencyTypecxx . . $ SoXtRenderArea#setTransparencyType(8f19ff67a6c488dd).(SoGLRenderActioncxx . . $ SoGLRenderAction#::SCREEN_DOORcxx . . $ SoGLRenderAction#SCREEN_DOOR.); |
| 863 | break; |
| 864 | |
| 865 | case IV_EDIT_BACKGROUND_CLRcxx . . $ IV_EDIT_BACKGROUND_CLR.: |
| 866 | editBackgroundColorcxx . . $ editBackgroundColor(49f6e7a06ebc5aa8).(); |
| 867 | break; |
| 868 | |
| 869 | // |
| 870 | // Optimize |
| 871 | // |
| 872 | case IV_OPTIMIZE_IVFIXcxx . . $ IV_OPTIMIZE_IVFIX.: |
| 873 | ivfixcxx . . $ ivfix. = !ivfixcxx . . $ ivfix.; |
| 874 | optimizationChangedcxx . . $ optimizationChanged(3a512a24b89271c1).(filescxx . . $ files., TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!); |
| 875 | break; |
| 876 | |
| 877 | case IV_OPTIMIZE_SHAPEHINTScxx . . $ IV_OPTIMIZE_SHAPEHINTS.: |
| 878 | shapeHintBackfacecxx . . $ shapeHintBackface. = !shapeHintBackfacecxx . . $ shapeHintBackface.; |
| 879 | optimizationChangedcxx . . $ optimizationChanged(3a512a24b89271c1).(filescxx . . $ files., TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!); |
| 880 | break; |
| 881 | |
| 882 | } |
| 883 | } |
| 884 | |
| 885 | /////////////////////////////////////////////////////////////////////// |
| 886 | // |
| 887 | // Create the top menu bar and the associated menus |
| 888 | // |
| 889 | static Widgetcxx . . $ Widget# |
| 890 | buildAndLayoutMenuscxx . . $ buildAndLayoutMenus(a686be44a4028679).(Widgetcxx . . $ Widget# parent) |
| 891 | { |
| 892 | ivMenuItemcxx . . $ ivMenuItem# *menuItems = new ivMenuItemcxx . . $ ivMenuItem#[IV_MENU_NUMcxx . . $ IV_MENU_NUM.]; |
| 893 | int i; |
| 894 | for (i=0; i<IV_MENU_NUMcxx . . $ IV_MENU_NUM.; i++) { |
| 895 | menuItems[i].idcxx . . $ ivMenuItem#id. = i; |
| 896 | menuItems[i].widgetcxx . . $ ivMenuItem#widget. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 897 | } |
| 898 | |
| 899 | // |
| 900 | // Create the topbar menu |
| 901 | // |
| 902 | Widgetcxx . . $ Widget# menuWidget = XmCreateMenuBar(parent, "menuBar", NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 0); |
| 903 | |
| 904 | Argcxx . . $ Arg# popupargs[4]; |
| 905 | int popupn = 0; |
| 906 | #ifdef MENUS_IN_POPUP |
| 907 | Widget shell = SoXt::getShellWidget(menuWidget); |
| 908 | SoXt::getPopupArgs(XtDisplay(menuWidget), SCREEN(menuWidget), |
| 909 | popupargs, &popupn); |
| 910 | #endif |
| 911 | |
| 912 | int itemCount = XtNumbercxx . . $ `<external>/3673480128541058774/Intrinsic.h:114:9`!(pulldownData); |
| 913 | WidgetListcxx . . $ WidgetList# buttons = (WidgetListcxx . . $ WidgetList#) XtMalloc(itemCount * sizeof(Widgetcxx . . $ Widget#)); |
| 914 | |
| 915 | |
| 916 | Argcxx . . $ Arg# args[12]; |
| 917 | int n; |
| 918 | for (i=0; i<itemCount; i++) { |
| 919 | // |
| 920 | // Make Topbar menu button |
| 921 | // |
| 922 | Widgetcxx . . $ Widget# subMenu = |
| 923 | XmCreatePulldownMenu(menuWidget, "subMenu", popupargs, popupn); |
| 924 | |
| 925 | #ifdef MENUS_IN_POPUP |
| 926 | // register callbacks to load/unload the pulldown colormap when the |
| 927 | // pulldown menu is posted. |
| 928 | SoXt::registerColormapLoad(subMenu, shell); |
| 929 | #endif |
| 930 | |
| 931 | int id = pulldownDatacxx . . $ pulldownData.[i].idcxx . . $ ivMenu#id.; |
| 932 | menuItems[id].widgetcxx . . $ ivMenuItem#widget. = subMenu; |
| 933 | |
| 934 | XtSetArgcxx . . $ `<external>/3673480128541058774/Intrinsic.h:1160:9`!(args[0], XmNsubMenuIdcxx . . $ `<external>/427401153941432933/XmStrDefs.h:3408:9`!, subMenu); |
| 935 | buttons[i] = XtCreateWidget(pulldownDatacxx . . $ pulldownData.[i].namecxx . . $ ivMenu#name., |
| 936 | xmCascadeButtonGadgetClass, menuWidget, args, 1); |
| 937 | |
| 938 | // |
| 939 | // Make subMenu buttons |
| 940 | // |
| 941 | int subItemCount = pulldownDatacxx . . $ pulldownData.[i].subItemCountcxx . . $ ivMenu#subItemCount.; |
| 942 | WidgetListcxx . . $ WidgetList# subButtons = |
| 943 | (WidgetListcxx . . $ WidgetList#) XtMalloc(subItemCount * sizeof(Widgetcxx . . $ Widget#)); |
| 944 | |
| 945 | for (int j=0; j<subItemCount; j++) { |
| 946 | if (pulldownDatacxx . . $ pulldownData.[i].subMenucxx . . $ ivMenu#subMenu.[j].buttonTypecxx . . $ ivButton#buttonType. == IV_SEPARATORcxx . . $ IV_SEPARATOR.) { |
| 947 | subButtons[j] = XtCreateWidget( |
| 948 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, xmSeparatorGadgetClass, subMenu, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 0); |
| 949 | } |
| 950 | else { |
| 951 | Stringcxx . . $ String# callbackReason; |
| 952 | WidgetClasscxx . . $ WidgetClass# widgetClass; |
| 953 | |
| 954 | switch (pulldownDatacxx . . $ pulldownData.[i].subMenucxx . . $ ivMenu#subMenu.[j].buttonTypecxx . . $ ivButton#buttonType.) { |
| 955 | case IV_PUSH_BUTTONcxx . . $ IV_PUSH_BUTTON.: |
| 956 | widgetClass = xmPushButtonGadgetClass; |
| 957 | callbackReason = XmNactivateCallbackcxx . . $ `<external>/427401153941432933/XmStrDefs.h:2349:9`!; |
| 958 | n = 0; |
| 959 | break; |
| 960 | case IV_TOGGLE_BUTTONcxx . . $ IV_TOGGLE_BUTTON.: |
| 961 | widgetClass = xmToggleButtonGadgetClass; |
| 962 | callbackReason = XmNvalueChangedCallbackcxx . . $ `<external>/427401153941432933/XmStrDefs.h:3531:9`!; |
| 963 | n = 0; |
| 964 | break; |
| 965 | case IV_RADIO_BUTTONcxx . . $ IV_RADIO_BUTTON.: |
| 966 | widgetClass = xmToggleButtonGadgetClass; |
| 967 | callbackReason = XmNvalueChangedCallbackcxx . . $ `<external>/427401153941432933/XmStrDefs.h:3531:9`!; |
| 968 | XtSetArgcxx . . $ `<external>/3673480128541058774/Intrinsic.h:1160:9`!(args[0], XmNindicatorTypecxx . . $ `<external>/427401153941432933/XmStrDefs.h:2847:9`!, XmONE_OF_MANY); |
| 969 | n = 1; |
| 970 | break; |
| 971 | default: |
| 972 | fprintf(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, |
| 973 | "ivview INTERNAL ERROR: bad buttonType\n"); |
| 974 | break; |
| 975 | } |
| 976 | |
| 977 | // |
| 978 | // Check for keyboard accelerator |
| 979 | // |
| 980 | char *accel = pulldownDatacxx . . $ pulldownData.[i].subMenucxx . . $ ivMenu#subMenu.[j].acceleratorcxx . . $ ivButton#accelerator.; |
| 981 | char *accelText = pulldownDatacxx . . $ pulldownData.[i].subMenucxx . . $ ivMenu#subMenu.[j].accelTextcxx . . $ ivButton#accelText.; |
| 982 | XmString xmstr = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 983 | if (accel != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) { |
| 984 | XtSetArgcxx . . $ `<external>/3673480128541058774/Intrinsic.h:1160:9`!(args[n], XmNacceleratorcxx . . $ `<external>/427401153941432933/XmStrDefs.h:2343:9`!, accel); n++; |
| 985 | |
| 986 | if (accelText != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) { |
| 987 | xmstr = XmStringCreate(accelText, |
| 988 | XmSTRING_DEFAULT_CHARSETcxx . . $ `<external>/427401153941432933/XmStrDefs.h:5447:9`!); |
| 989 | XtSetArgcxx . . $ `<external>/3673480128541058774/Intrinsic.h:1160:9`!(args[n], XmNacceleratorTextcxx . . $ `<external>/427401153941432933/XmStrDefs.h:2346:9`!, xmstr); n++; |
| 990 | } |
| 991 | } |
| 992 | |
| 993 | subButtons[j] = XtCreateWidget( |
| 994 | pulldownDatacxx . . $ pulldownData.[i].subMenucxx . . $ ivMenu#subMenu.[j].namecxx . . $ ivButton#name., |
| 995 | widgetClass, subMenu, args, n); |
| 996 | if (xmstr != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) |
| 997 | XmStringFree(xmstr); |
| 998 | id = pulldownDatacxx . . $ pulldownData.[i].subMenucxx . . $ ivMenu#subMenu.[j].idcxx . . $ ivButton#id.; |
| 999 | menuItems[id].widgetcxx . . $ ivMenuItem#widget. = subButtons[j]; |
| 1000 | XtAddCallback(subButtons[j], callbackReason, |
| 1001 | (XtCallbackProccxx . . $ XtCallbackProc#)processTopbarEventcxx . . $ processTopbarEvent(fc67a36ad48db9ed)., |
| 1002 | (XtPointercxx . . $ XtPointer#) &menuItems[id]); |
| 1003 | } |
| 1004 | } |
| 1005 | XtManageChildren(subButtons, subItemCount); |
| 1006 | XtFree((char *)subButtons); |
| 1007 | } |
| 1008 | XtManageChildren(buttons, itemCount); |
| 1009 | XtFree((char *)buttons); |
| 1010 | |
| 1011 | // |
| 1012 | // Layout the menu bar |
| 1013 | // |
| 1014 | n = 0; |
| 1015 | XtSetArgcxx . . $ `<external>/3673480128541058774/Intrinsic.h:1160:9`!(args[n], XmNtopAttachmentcxx . . $ `<external>/427401153941432933/XmStrDefs.h:3453:9`!, XmATTACH_FORM); n++; |
| 1016 | XtSetArgcxx . . $ `<external>/3673480128541058774/Intrinsic.h:1160:9`!(args[n], XmNleftAttachmentcxx . . $ `<external>/427401153941432933/XmStrDefs.h:2898:9`!, XmATTACH_FORM); n++; |
| 1017 | XtSetArgcxx . . $ `<external>/3673480128541058774/Intrinsic.h:1160:9`!(args[n], XmNrightAttachmentcxx . . $ `<external>/427401153941432933/XmStrDefs.h:3231:9`!, XmATTACH_FORM); n++; |
| 1018 | XtSetValues(menuWidget, args, n); |
| 1019 | XtManageChild(menuWidget); |
| 1020 | |
| 1021 | return (menuWidget); |
| 1022 | } |
| 1023 | |
| 1024 | |
| 1025 | /////////////////////////////////////////////////////////////////// |
| 1026 | // Create the viewer and lay it out so that it is attached |
| 1027 | // to the bottom of the menu bar |
| 1028 | // |
| 1029 | static SoXtViewercxx . . $ SoXtViewer# * |
| 1030 | buildAndLayoutViewercxx . . $ buildAndLayoutViewer(b0e2796c0278ef0a).(Widgetcxx . . $ Widget# parent, Widgetcxx . . $ Widget# menuWidget, SbBoolcxx . . $ SbBool# walk) |
| 1031 | { |
| 1032 | // |
| 1033 | // |
| 1034 | Argcxx . . $ Arg# args[12]; |
| 1035 | int n = 0; |
| 1036 | SoXtViewercxx . . $ SoXtViewer# *viewer = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 1037 | if (!walk) |
| 1038 | viewer = new SoXtExaminerViewercxx . . $ SoXtExaminerViewer#(parent); |
| 1039 | else |
| 1040 | viewer = new SoXtWalkViewercxx . . $ SoXtWalkViewer#(parent); |
| 1041 | |
| 1042 | viewer->setViewingcxx . . $ SoXtViewer#setViewing(d4f767463ce0a6b3).(TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!); // default to VIEW |
| 1043 | |
| 1044 | XtSetArgcxx . . $ `<external>/3673480128541058774/Intrinsic.h:1160:9`!(args[n], XmNtopAttachmentcxx . . $ `<external>/427401153941432933/XmStrDefs.h:3453:9`!, XmATTACH_WIDGET); n++; |
| 1045 | XtSetArgcxx . . $ `<external>/3673480128541058774/Intrinsic.h:1160:9`!(args[n], XmNtopWidgetcxx . . $ `<external>/427401153941432933/XmStrDefs.h:3480:9`!, menuWidget); n++; |
| 1046 | XtSetArgcxx . . $ `<external>/3673480128541058774/Intrinsic.h:1160:9`!(args[n], XmNbottomAttachmentcxx . . $ `<external>/427401153941432933/XmStrDefs.h:2424:9`!, XmATTACH_FORM); n++; |
| 1047 | XtSetArgcxx . . $ `<external>/3673480128541058774/Intrinsic.h:1160:9`!(args[n], XmNleftAttachmentcxx . . $ `<external>/427401153941432933/XmStrDefs.h:2898:9`!, XmATTACH_FORM); n++; |
| 1048 | XtSetArgcxx . . $ `<external>/3673480128541058774/Intrinsic.h:1160:9`!(args[n], XmNrightAttachmentcxx . . $ `<external>/427401153941432933/XmStrDefs.h:3231:9`!, XmATTACH_FORM); n++; |
| 1049 | XtSetValues(viewer->getWidgetcxx . . $ SoXtComponent#getWidget(24ba213de9f943e3).(), args, n); |
| 1050 | |
| 1051 | return (viewer); |
| 1052 | } |
| 1053 | |
| 1054 | |
| 1055 | |
| 1056 | /////////////////////////////////////////////////////////////////// |
| 1057 | // |
| 1058 | |
| 1059 | static void |
| 1060 | countTriangleCBcxx . . $ countTriangleCB(b8d71376c8e60307).(void *userData, SoCallbackActioncxx . . $ SoCallbackAction# *, |
| 1061 | const SoPrimitiveVertexcxx . . $ SoPrimitiveVertex# *, |
| 1062 | const SoPrimitiveVertexcxx . . $ SoPrimitiveVertex# *, |
| 1063 | const SoPrimitiveVertexcxx . . $ SoPrimitiveVertex# *) |
| 1064 | { |
| 1065 | int32_t *curCount = (int32_t *) userData; |
| 1066 | (*curCount)++; |
| 1067 | } |
| 1068 | |
| 1069 | |
| 1070 | int |
| 1071 | countTrianglescxx . . $ countTriangles(17223a0c8fe933a2).(SoNodecxx . . $ SoNode# *root) |
| 1072 | { |
| 1073 | SoCallbackActioncxx . . $ SoCallbackAction# cacxx . . $ SoCallbackAction#SoCallbackAction(49f6e7a06ebc5aa8).; |
| 1074 | int32_t numTris = 0; |
| 1075 | |
| 1076 | root->refcxx . . $ SoBase#ref(83f5f38750778ac8).(); |
| 1077 | |
| 1078 | ca.addTriangleCallbackcxx . . $ SoCallbackAction#addTriangleCallback(7698ee1e5e3e2f0d).(SoShapecxx . . $ SoShape#::getClassTypeIdcxx . . $ SoShape#getClassTypeId(c00c150378d2b968).(), countTriangleCBcxx . . $ countTriangleCB(b8d71376c8e60307)., |
| 1079 | (void *) &numTris); |
| 1080 | ca.applycxx . . $ SoAction#apply(da6c7544ccee32bd).(root); |
| 1081 | |
| 1082 | root->unrefNoDeletecxx . . $ SoBase#unrefNoDelete(83f5f38750778ac8).(); |
| 1083 | |
| 1084 | return (numTris); |
| 1085 | } |
| 1086 | |
| 1087 | |
| 1088 | // Stolen from Annotator. |
| 1089 | // |
| 1090 | static Stringcxx . . $ String# _myXtDefaultLanguageProccxx . . $ _myXtDefaultLanguageProc(4e3002eb7bcd388).(Displaycxx . . $ Display# *, Stringcxx . . $ String# xnl, XtPointercxx . . $ XtPointer#) |
| 1091 | { |
| 1092 | if (! setlocale(LC_ALLcxx . . $ `<external>/3736975272097309885/locale.h:41:9`!, xnl)) |
| 1093 | XtWarning("locale not supported by C library, locale unchanged"); |
| 1094 | |
| 1095 | if (! XSupportsLocale()) { |
| 1096 | XtWarning("locale not supported by Xlib, locale set to C"); |
| 1097 | setlocale(LC_ALLcxx . . $ `<external>/3736975272097309885/locale.h:41:9`!, "C"); |
| 1098 | } |
| 1099 | if (! XSetLocaleModifiers("")) |
| 1100 | XtWarning("X locale modifiers not supported, using default"); |
| 1101 | |
| 1102 | setlocale(LC_NUMERICcxx . . $ `<external>/3736975272097309885/locale.h:36:9`!, "C"); |
| 1103 | |
| 1104 | return setlocale(LC_CTYPEcxx . . $ `<external>/3736975272097309885/locale.h:35:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 1105 | } |
| 1106 | |
| 1107 | |
| 1108 | /////////////////////////////////////////////////////////////////// |
| 1109 | // |
| 1110 | int |
| 1111 | maincxx . . $ main(afcd3168fc1188a4).(int argc, char **argv) |
| 1112 | { |
| 1113 | XtAppContextcxx . . $ XtAppContext# appContext; |
| 1114 | |
| 1115 | XtSetLanguageProc( NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, _myXtDefaultLanguageProccxx . . $ _myXtDefaultLanguageProc(4e3002eb7bcd388)., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`! ); |
| 1116 | |
| 1117 | shellcxx . . $ shell. = XtAppInitialize( |
| 1118 | &appContext, // context will be returned |
| 1119 | "Ivview", // application class |
| 1120 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 0, // options |
| 1121 | (int *) &argc, argv, // command line args in/out |
| 1122 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, // fallback_resources |
| 1123 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 0); // args, num_args |
| 1124 | |
| 1125 | XtGetSubresources( shellcxx . . $ shell., &fileDatacxx . . $ fileData.[0], "intl", "Intl", |
| 1126 | intl_file_resourcescxx . . $ intl_file_resources., intl_num_file_resourcescxx . . $ intl_num_file_resources., |
| 1127 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 0 ); |
| 1128 | XtGetSubresources( shellcxx . . $ shell., &editDatacxx . . $ editData.[0], "intl", "Intl", |
| 1129 | intl_edit_resourcescxx . . $ intl_edit_resources., intl_num_edit_resourcescxx . . $ intl_num_edit_resources., |
| 1130 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 0 ); |
| 1131 | XtGetSubresources( shellcxx . . $ shell., &optimizeDatacxx . . $ optimizeData.[0], "intl", "Intl", |
| 1132 | intl_optimize_resourcescxx . . $ intl_optimize_resources., intl_num_optimize_resourcescxx . . $ intl_num_optimize_resources., |
| 1133 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 0 ); |
| 1134 | XtGetSubresources( shellcxx . . $ shell., &pulldownDatacxx . . $ pulldownData.[0], "intl", "Intl", |
| 1135 | intl_pulldown_resourcescxx . . $ intl_pulldown_resources., intl_num_pulldown_resourcescxx . . $ intl_num_pulldown_resources., |
| 1136 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 0 ); |
| 1137 | |
| 1138 | // Parse command line arguments |
| 1139 | parse_argscxx . . $ parse_args(c759356ac01a31e7).(argc, argv); |
| 1140 | |
| 1141 | // build the main window - this is done FIRST (before initialzing |
| 1142 | // Inventor and reading) to make the application startup feel |
| 1143 | // faster. |
| 1144 | |
| 1145 | Widgetcxx . . $ Widget# form = XtCreateWidget("Form", xmFormWidgetClass, shellcxx . . $ shell., NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 0); |
| 1146 | XtVaSetValues(shellcxx . . $ shell., XmNwidthcxx . . $ `<external>/427401153941432933/XmStrDefs.h:6374:9`!, 520, XmNheightcxx . . $ `<external>/427401153941432933/XmStrDefs.h:6054:9`!, 510, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!); |
| 1147 | |
| 1148 | Widgetcxx . . $ Widget# menuWidget = buildAndLayoutMenuscxx . . $ buildAndLayoutMenus(a686be44a4028679).(form); |
| 1149 | XtManageChild(form); |
| 1150 | XtRealizeWidget(shellcxx . . $ shell.); |
| 1151 | XmUpdateDisplay(shellcxx . . $ shell.); // better than XSync() because it redraws too |
| 1152 | setBusyCursorcxx . . $ setBusyCursor(d4f767463ce0a6b3).(TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!); |
| 1153 | |
| 1154 | // Initialize Inventor |
| 1155 | SoXtcxx . . $ SoXt#::initcxx . . $ SoXt#init(cfa999c5a14729dd).(shellcxx . . $ shell.); |
| 1156 | |
| 1157 | // Create and lay out the viewer |
| 1158 | viewercxx . . $ viewer. = buildAndLayoutViewercxx . . $ buildAndLayoutViewer(b0e2796c0278ef0a).(form, menuWidget, useWalkViewercxx . . $ useWalkViewer.); |
| 1159 | viewercxx . . $ viewer.->showcxx . . $ SoXtComponent#show(49f6e7a06ebc5aa8).(); |
| 1160 | XSync(XtDisplay(shellcxx . . $ shell.), Falsecxx . . $ `<external>/4815335266304551920/ICElib.h:38:9`!); |
| 1161 | |
| 1162 | // Read the input scene from the file(s) |
| 1163 | SbBoolcxx . . $ SbBool# readOk = readScenecxx . . $ readScene(4eb8fc26f8b57843).(filescxx . . $ files.); |
| 1164 | |
| 1165 | // The lower left corner of the window is used to draw |
| 1166 | // the tris/second meter (if enabled) |
| 1167 | if (showPerfMetercxx . . $ showPerfMeter.) |
| 1168 | initPerfMetercxx . . $ initPerfMeter(e7cdb57e47b403f8).(viewercxx . . $ viewer.); |
| 1169 | |
| 1170 | setBusyCursorcxx . . $ setBusyCursor(d4f767463ce0a6b3).(FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!); |
| 1171 | |
| 1172 | SoXtcxx . . $ SoXt#::mainLoopcxx . . $ SoXt#mainLoop(49f6e7a06ebc5aa8).(); |
| 1173 | return 0; |
| 1174 | } |