37 #ifdef G4VIS_BUILD_OIX_DRIVER
42 #include <Inventor/Xt/SoXt.h>
54 void G4OpenInventorXtExtended::Initialize()
66 if(getenv(
"XENVIRONMENT")==NULL) {
67 XrmDatabase database = XrmGetDatabase(XtDisplay(top));
69 XrmPutLineResource(&database,
"*topShadowColor:white");
70 XrmPutLineResource(&database,
"*bottomShadowColor:black");
71 XrmPutLineResource(&database,
"*foreground:black");
72 XrmPutLineResource(&database,
"*background:lightgrey");
73 XrmPutLineResource(&database,
"*borderColor:lightgrey");
74 XrmPutLineResource(&database,
"*fontList:-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-1");
75 XrmPutLineResource(&database,
"*help_popup.title:Help");
76 XrmPutLineResource(&database,
"*helpCancel.labelString:Cancel");
77 XrmPutLineResource(&database,
"*helpText.editMode:multi_line_edit");
78 XrmPutLineResource(&database,
"*helpText.columns:60");
79 XrmPutLineResource(&database,
"*helpText.rows:20");
80 XrmPutLineResource(&database,
"*helpText.background:white");
81 XrmPutLineResource(&database,
"*helpText.fontList:*courier*-r-*--14-*");
82 XrmPutLineResource(&database,
"*helpText.maxLength:8000");
86 if(!SoXt::getTopLevelWidget()) SoXt::init(top);
97 G4OpenInventorSceneHandler* pScene = (G4OpenInventorSceneHandler*)&scene;
98 return new G4OpenInventorXtExtendedViewer (*pScene, name);