Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4OpenInventorQtViewer.hh
Go to the documentation of this file.
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// Inheritance :
34
35#include <Inventor/nodes/SoEventCallback.h>
36
38
39class SoQtViewer;
40
41#include <qobject.h>
42
43class QMenuBar;
44class QFont;
45class QAction;
46
47
48class G4OpenInventorQtViewer: public QObject,
50
51 Q_OBJECT
52
53private Q_SLOTS :
54
55 // File menu
56 void FileWritePSCB();
57 void FileWritePDFCB();
58 void FileWriteIVCB();
59 void FileEscapeCB();
60
61 // Etc menu
62 void EtcEraseDetectorCB();
63 void EtcEraseEventCB();
64 void EtcSetSolidCB();
65 void EtcSetReducedWireframeCB();
66 void EtcSetFullWireframeCB();
67 void EtcVisibMInvisibDCB();
68 void EtcVisibMVisibDCB();
69 void EtcUpdateSceneCB();
70 void EtcSceneGraphStatsCB();
71
72private:
73
74 // File menu
75 QAction* FileWritePS;
76 QAction* FileWritePDF;
77 QAction* FileWriteIV;
78 QAction* FileEscape;
79
80 // Etc menu
81 QAction* EtcEraseDetector;
82 QAction* EtcEraseEvent;
83 QAction* EtcSetSolid;
84 QAction* EtcSetReducedWireframe;
85 QAction* EtcSetFullWireframe;
86 QAction* EtcVisibMInvisibD;
87 QAction* EtcVisibMVisibD;
88 QAction* EtcUpdateScene;
89 QAction* EtcSceneGraphStats;
90
91public:
92
94 const G4String& name = "");
96 void Initialise();
97
98public: //G4VViewer
99
100 virtual void FinishView();
101 virtual void SetView();
102
103protected:
104
105 virtual void ViewerRender();
106 virtual SoCamera* GetCamera();
107 // FWJ found insufficient to replace group and camera sensors
108 // static void FinishCB(void*, SoQtViewer*);
109
110protected:
111
112 //SoQtExaminerViewer* fViewer;
114
115};
116
117#endif
virtual SoCamera * GetCamera()
G4OpenInventorQtExaminerViewer * fViewer