38#include <Inventor/Xt/SoXt.h>
47 return SoXt::dispatchEvent((XEvent*)a_event);
57void G4OpenInventorXtExtended::Initialize()
73 G4cout <<
"TOP LEVEL WIDGET FOR SoXt::init() = " << top <<
G4endl;
75 if(std::getenv(
"XENVIRONMENT")==NULL) {
76 XrmDatabase database = XrmGetDatabase(XtDisplay(top));
78 XrmPutLineResource(&database,
"*topShadowColor:white");
79 XrmPutLineResource(&database,
"*bottomShadowColor:black");
80 XrmPutLineResource(&database,
"*foreground:black");
81 XrmPutLineResource(&database,
"*background:lightgrey");
82 XrmPutLineResource(&database,
"*borderColor:lightgrey");
83 XrmPutLineResource(&database,
"*fontList:-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-1");
84 XrmPutLineResource(&database,
"*help_popup.title:Help");
85 XrmPutLineResource(&database,
"*helpCancel.labelString:Cancel");
86 XrmPutLineResource(&database,
"*helpText.editMode:multi_line_edit");
87 XrmPutLineResource(&database,
"*helpText.columns:60");
88 XrmPutLineResource(&database,
"*helpText.rows:20");
89 XrmPutLineResource(&database,
"*helpText.background:white");
90 XrmPutLineResource(&database,
"*helpText.fontList:*courier*-r-*--14-*");
91 XrmPutLineResource(&database,
"*helpText.maxLength:8000");
95 if(!SoXt::getTopLevelWidget()) SoXt::init(top);
bool soxt_dispatch_event(void *a_event)
bool soxt_dispatch_event(void *a_event)
G4GLOB_DLL std::ostream G4cout
static G4OpenInventorXtExaminerViewerMessenger * GetInstance()
virtual ~G4OpenInventorXtExtended()
G4VViewer * CreateViewer(G4VSceneHandler &, const G4String &name="")
G4OpenInventorXtExtended()
void SetInteractorManager(G4VInteractorManager *)
G4VInteractorManager * GetInteractorManager()
G4Interactor GetMainInteractor()
static G4Xt * getInstance()
static bool xt_dispatch_event(void *a_event)