55# include <Inventor/Win/SoXt2SoWin.h>
67#include <Inventor/Xt/SoXtLocalisation.h>
214 static void exit(
int returnCode = 0);
221 { XtAppNextEvent(appContext, event); }
303 char *errorStr1,
char *errorStr2 = NULL);
341 static void addExtensionEventHandler(
SoWidget w,
342 int extensionEventType,
345 static void removeExtensionEventHandler(
SoWidget w,
346 int extensionEventType,
354 static SoWidget getwidget(
unsigned int whatisit );
357 static void canExit(
SbBool ce);
359 static void setEventHandler();
364 static void getExtensionEventHandler(
375 static void activeLoop();
377 static int s_returnCode;
380 static bool m_internalApp;
389 static void localisationlabel(
SoWidget parent);
393 static void setupInventorGLDisplay();
395 static int s_initRefCount;
396 static const char *s_versionString;
struct _XtAppStruct * XtAppContext
List of generic (void *) pointers.
Abstract base class for all actions.
Routines for Open Inventor/Xt compatibility.
static void registerColormapLoad(SoWidget widget, SoWidget shell)
Convenience routine which will register map/unmap callbacks to load and unload the pulldown menu colo...
static void getPopupArgs(Display *d, int scr, ArgList args, int *n)
Convenience routine which gets visual args for the popup planes.
static void exit(int returnCode=0)
Tells the main event loop to exit with a return code.
static Boolean dispatchEvent(XEvent *event)
Dispatches the passed event to a handler.
static int mainLoop()
Enters the main event loop and waits until exit() is called.
static void nextEvent(XtAppContext appContext, XEvent *event)
Gets the nextEvent by calling XtAppNextEvent().
static XtAppContext getAppContext()
This method is included for portability only.
static void removeColormapFromShell(SoWidget widget, SoWidget shell)
Convenience routine to remove the given widget colormap from the supplied shell widget.
static void createSimpleErrorDialog(SoWidget widget, char *dialogTitle, char *errorStr1, char *errorStr2=NULL)
Convenience routine which brings a simple Xt error dialog box displaying the given error string(s) an...
static XmString encodeString(char *s)
Convenience routine for encoding a character string as an XmString .
static void show(SoWidget widget)
Convenience routine to show the passed widget.
static bool isInitialized()
Returns TRUE if SoXt module is currently initialized.
static SoWidget getShellWidget(SoWidget w)
Convenience routine which will return the topmost window containing the given widget.
static void hide(SoWidget widget)
Convenience routine to hide the passed widget.
static SoDEPRECATED SoWidget threadInit(const char *appName, const char *className="Inventor")
static void finish()
Frees Open Inventor's internal static memory allocations.
static void init(SoWidget topLevelWidget)
This alternate form of init allows the application to initialize Xt.
static SoWidget init(const char *appName, const char *className="Inventor")
This is called to initialize Open Inventor and Xt, and bind Open Inventor with X events handling so t...
static SbVec2s getWidgetSize(SoWidget w)
Convenience routine to get the size of the given window.
static void setWidgetSize(SoWidget w, const SbVec2s &size)
Convenience routine to set the size of the given window.
static void addColormapToShell(SoWidget widget, SoWidget shell)
Convenience routine to insert the given widget colormap onto the supplied shell widget.
static SoWidget getTopLevelWidget()
Returns information based on the initial widget returned by or passed to init.
static Display * getDisplay()
This method is included for portability only.
static SoDEPRECATED void threadInit(SoWidget topLevelWidget)
static char * decodeString(XmString xs)
Convenience routine for decoding an XmString back to a character string.