36 #ifdef G4VIS_BUILD_OIX_DRIVER
41 #include <Inventor/Xt/SoXt.h>
53 void G4OpenInventorXtExtended::Initialize()
65 if(getenv(
"XENVIRONMENT")==NULL) {
66 XrmDatabase database = XrmGetDatabase(XtDisplay(top));
68 XrmPutLineResource(&database,
"*topShadowColor:white");
69 XrmPutLineResource(&database,
"*bottomShadowColor:black");
70 XrmPutLineResource(&database,
"*foreground:black");
71 XrmPutLineResource(&database,
"*background:lightgrey");
72 XrmPutLineResource(&database,
"*borderColor:lightgrey");
73 XrmPutLineResource(&database,
"*fontList:-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-1");
74 XrmPutLineResource(&database,
"*help_popup.title:Help");
75 XrmPutLineResource(&database,
"*helpCancel.labelString:Cancel");
76 XrmPutLineResource(&database,
"*helpText.editMode:multi_line_edit");
77 XrmPutLineResource(&database,
"*helpText.columns:60");
78 XrmPutLineResource(&database,
"*helpText.rows:20");
79 XrmPutLineResource(&database,
"*helpText.background:white");
80 XrmPutLineResource(&database,
"*helpText.fontList:*courier*-r-*--14-*");
81 XrmPutLineResource(&database,
"*helpText.maxLength:8000");
85 if(!SoXt::getTopLevelWidget()) SoXt::init(top);
96 G4OpenInventorSceneHandler* pScene = (G4OpenInventorSceneHandler*)&scene;
97 return new G4OpenInventorXtExtendedViewer (*pScene, name);
G4VInteractorManager * GetInteractorManager()
G4Interactor GetMainInteractor()
G4bool(* G4DispatchFunction)(void *)
void SetInteractorManager(G4VInteractorManager *)
G4VViewer * CreateViewer(G4VSceneHandler &, const G4String &name="")
virtual ~G4OpenInventorXtExtended()
G4OpenInventorXtExtended()