ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4OpenInventorQtViewer.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4OpenInventorQtViewer.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 // Frederick Jones TRIUMF 07 November 2017
27 // Open Inventor viewer using SoQt.
28 
29 #ifndef G4OPENINVENTORQTVIEWER_HH
30 #define G4OPENINVENTORQTVIEWER_HH
31 
32 #ifdef G4VIS_BUILD_OIQT_DRIVER
33 
34 // Inheritance :
35 #include "G4OpenInventorViewer.hh"
36 
37 // This causes clash with enum CursorShape in qnamespace.h !
38 //#include <X11/Intrinsic.h>
39 
40 #include <Inventor/nodes/SoEventCallback.h>
41 
42 //class SoQtExaminerViewer;
43 class G4OpenInventorQtExaminerViewer;
44 
45 class G4OpenInventorQtViewer: public G4OpenInventorViewer {
46 public:
47  G4OpenInventorQtViewer(G4OpenInventorSceneHandler& scene,
48  const G4String& name = "");
49  virtual ~G4OpenInventorQtViewer();
50  void Initialise();
51 public: //G4VViewer
52  virtual void FinishView();
53  virtual void SetView();
54 protected:
55  virtual void ViewerRender();
56  virtual SoCamera* GetCamera();
57 
58 protected:
59 
60  //SoQtExaminerViewer* fViewer;
61  G4OpenInventorQtExaminerViewer* fViewer;
62 
63  // FWJ from OpenInventorXtViewer.hh
64  // Widget AddMenu(Widget,const G4String&,const G4String&);
65  // void AddButton(Widget,const G4String&,XtCallbackProc);
66  // static void PostScriptCbk(Widget,XtPointer,XtPointer);
67  // static void PixmapPostScriptCbk(Widget,XtPointer,XtPointer);
68  // static void WriteInventorCbk(Widget,XtPointer,XtPointer);
69  // static void EscapeCbk(Widget,XtPointer,XtPointer);
70  // static void SceneGraphStatisticsCbk(Widget,XtPointer,XtPointer);
71  // static void EraseDetectorCbk(Widget,XtPointer,XtPointer);
72  // static void EraseEventCbk(Widget,XtPointer,XtPointer);
73  // static void SetSolidCbk(Widget,XtPointer,XtPointer);
74  // static void SetWireFrameCbk(Widget,XtPointer,XtPointer);
75  // static void SetReducedWireFrameCbk(Widget,XtPointer,XtPointer);
76  // static void SetFullWireFrameCbk(Widget,XtPointer,XtPointer);
77  // static void UpdateSceneCbk(Widget,XtPointer,XtPointer);
78  // static void HelpCbk(Widget,XtPointer,XtPointer);
79  // static void HelpCancelCbk(Widget,XtPointer,XtPointer);
80  // static void SetPreviewCbk(Widget,XtPointer,XtPointer);
81  // static void SetPreviewAndFullCbk(Widget,XtPointer,XtPointer);
82  // Widget fShell;
83  // Widget fHelpForm;
84  // Widget fHelpForm;
85  // Widget fHelpText;
86 };
87 
88 #endif
89 
90 #endif