ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4OpenInventorQtExaminerViewer.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4OpenInventorQtExaminerViewer.hh
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 
27 // Frederick Jones TRIUMF 07 January 2018
28 
29 
30 #ifndef G4OPENINVENTORQTEXAMINERVIEWER_HH
31 #define G4OPENINVENTORQTEXAMINERVIEWER_HH
32 
33 #ifdef G4VIS_BUILD_OIQT_DRIVER
34 
35 //#include <map>
36 //#include <vector>
37 //#include <fstream>
38 //#include <Inventor/SbLinear.h>
39 //#include <Inventor/nodes/SoLineSet.h>
40 #include <Inventor/nodes/SoEventCallback.h>
41 #include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
42 #include <Inventor/events/SoKeyboardEvent.h>
43 
44 class SoCoordinate3;
45 class SoFont;
46 class SoText2;
47 class SoPointSet;
48 
49 class G4OpenInventorQtExaminerViewer : public SoQtExaminerViewer {
50 
51  // friend class G4OpenInventorQtExaminerViewerMessenger;
52  // FWJ
53  friend class G4OpenInventorQtViewer;
54 
55 private:
56 
57  static G4OpenInventorQtExaminerViewer* viewer;
58  // void (*escapeCallback)(void *);
59  // void * examinerObject;
60  // SbBool lshiftdown, rshiftdown, lctrldown, rctrldown;
61 
62 public:
63 
64  // Same constructor as the SoQtExaminerViewer
65  G4OpenInventorQtExaminerViewer(QWidget* parent = NULL,
66  const char* name = NULL,
67  SbBool embed = TRUE,
68  SoQtFullViewer::BuildFlag flag = BUILD_ALL,
69  SoQtViewer::Type type = BROWSER);
70 
71  ~G4OpenInventorQtExaminerViewer();
72 
73 protected:
74  // FWJ why this?
75  // Same constructor as the SoQtExaminerViewer
76  // G4OpenInventorQtExaminerViewer(QWidget parent,
77  // const char *name,
78  // SbBool embed,
79  // SoQtFullViewer::BuildFlag flag,
80  // SoQtViewer::Type type,
81  // SbBool build);
82 
83  // FWJ try to handle events as in XtExaminerViewer
84  SbBool processSoEvent(const SoEvent* const event);
85 
86 };
87 
88 #endif
89 
90 #endif /* G4OPENINVENTORQTEXAMINERVIEWER_HH */