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