36 #ifdef G4VIS_BUILD_OIX_DRIVER
41 #include <Inventor/Xt/SoXt.h>
52 G4OpenInventorXtExaminerViewerMessenger(getInstance());
55 void G4OpenInventorXtExtended::Initialize()
67 G4cout <<
"TOP LEVEL WIDGET FOR SoXt::init() = " << top <<
G4endl;
69 if(getenv(
"XENVIRONMENT")==NULL) {
70 XrmDatabase database = XrmGetDatabase(XtDisplay(top));
72 XrmPutLineResource(&database,
"*topShadowColor:white");
73 XrmPutLineResource(&database,
"*bottomShadowColor:black");
74 XrmPutLineResource(&database,
"*foreground:black");
75 XrmPutLineResource(&database,
"*background:lightgrey");
76 XrmPutLineResource(&database,
"*borderColor:lightgrey");
77 XrmPutLineResource(&database,
"*fontList:-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-1");
78 XrmPutLineResource(&database,
"*help_popup.title:Help");
79 XrmPutLineResource(&database,
"*helpCancel.labelString:Cancel");
80 XrmPutLineResource(&database,
"*helpText.editMode:multi_line_edit");
81 XrmPutLineResource(&database,
"*helpText.columns:60");
82 XrmPutLineResource(&database,
"*helpText.rows:20");
83 XrmPutLineResource(&database,
"*helpText.background:white");
84 XrmPutLineResource(&database,
"*helpText.fontList:*courier*-r-*--14-*");
85 XrmPutLineResource(&database,
"*helpText.maxLength:8000");
89 if(!SoXt::getTopLevelWidget()) SoXt::init(top);
102 G4OpenInventorSceneHandler* pScene = (G4OpenInventorSceneHandler*)&scene;
103 return new G4OpenInventorXtExtendedViewer (*pScene, name);
G4VInteractorManager * GetInteractorManager()
G4Interactor GetMainInteractor()
G4bool(* G4DispatchFunction)(void *)
G4GLOB_DLL std::ostream G4cout
void SetInteractorManager(G4VInteractorManager *)
G4VViewer * CreateViewer(G4VSceneHandler &, const G4String &name="")
virtual ~G4OpenInventorXtExtended()
G4OpenInventorXtExtended()