35#include <Inventor/Xt/SoXt.h>
43 return SoXt::dispatchEvent((XEvent*)a_event);
52void G4OpenInventorXt::Initialize()
68 if(std::getenv(
"XENVIRONMENT")==NULL) {
69 XrmDatabase database = XrmGetDatabase(XtDisplay(top));
71 XrmPutLineResource(&database,
"*topShadowColor:white");
72 XrmPutLineResource(&database,
"*bottomShadowColor:black");
73 XrmPutLineResource(&database,
"*foreground:black");
74 XrmPutLineResource(&database,
"*background:lightgrey");
75 XrmPutLineResource(&database,
"*borderColor:lightgrey");
76 XrmPutLineResource(&database,
"*fontList:-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-1");
77 XrmPutLineResource(&database,
"*help_popup.title:Help");
78 XrmPutLineResource(&database,
"*helpCancel.labelString:Cancel");
79 XrmPutLineResource(&database,
"*helpText.editMode:multi_line_edit");
80 XrmPutLineResource(&database,
"*helpText.columns:60");
81 XrmPutLineResource(&database,
"*helpText.rows:20");
82 XrmPutLineResource(&database,
"*helpText.background:white");
83 XrmPutLineResource(&database,
"*helpText.fontList:*courier*-r-*--14-*");
84 XrmPutLineResource(&database,
"*helpText.maxLength:8000");
88 if(!SoXt::getTopLevelWidget()) SoXt::init(top);
bool soxt_dispatch_event(void *a_event)
virtual ~G4OpenInventorXt()
G4VViewer * CreateViewer(G4VSceneHandler &, const G4String &name="")
void SetInteractorManager(G4VInteractorManager *)
G4VInteractorManager * GetInteractorManager()
G4Interactor GetMainInteractor()
static G4Xt * getInstance()
static bool xt_dispatch_event(void *a_event)