29 #ifdef G4VIS_BUILD_OIQT_DRIVER
35 #include <Inventor/Qt/SoQt.h>
36 #include <Inventor/events/SoKeyboardEvent.h>
39 G4OpenInventorQtExaminerViewer* G4OpenInventorQtExaminerViewer::viewer = 0;
43 G4OpenInventorQtExaminerViewer::
44 G4OpenInventorQtExaminerViewer(QWidget* parent,
const char*
name, SbBool embed,
45 SoQtFullViewer::BuildFlag flag,
47 : SoQtExaminerViewer(parent, name, embed, flag, type)
49 G4cout <<
"G4OpenInventorQtExaminerViewer CONSTRUCTOR CALLED" <<
G4endl;
54 G4OpenInventorQtExaminerViewer::~G4OpenInventorQtExaminerViewer()
75 G4OpenInventorQtExaminerViewer::processSoEvent(
const SoEvent*
const ev)
79 const SoType type(ev->getTypeId());
81 if (type.isDerivedFrom(SoKeyboardEvent::getClassTypeId())) {
82 SoKeyboardEvent* ke = (SoKeyboardEvent*)ev;
84 if (SoKeyboardEvent::isKeyPressEvent(ev, ke->getKey())) {
85 switch (ke->getKey()) {
87 G4cout <<
"E KEY PRESSED, EXITING Qt MAIN LOOP" <<
G4endl;
97 return SoQtExaminerViewer::processSoEvent(ev);