Geant4-11
source
visualization
OpenInventor
include
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 :
33
#include "
G4OpenInventorViewer.hh
"
34
35
#include <Inventor/nodes/SoEventCallback.h>
36
37
class
G4OpenInventorQtExaminerViewer
;
38
39
class
SoQtViewer;
40
41
#include <qobject.h>
42
43
class
QMenuBar;
44
class
QFont;
45
class
QAction;
46
47
48
class
G4OpenInventorQtViewer
:
public
QObject,
49
public
G4OpenInventorViewer
{
50
51
Q_OBJECT
52
53
private
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
72
private
:
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
91
public
:
92
93
G4OpenInventorQtViewer
(
G4OpenInventorSceneHandler
& scene,
94
const
G4String
&
name
=
""
);
95
virtual
~G4OpenInventorQtViewer
();
96
void
Initialise
();
97
98
public
:
//G4VViewer
99
100
virtual
void
FinishView
();
101
virtual
void
SetView
();
102
103
protected
:
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
110
protected
:
111
112
//SoQtExaminerViewer* fViewer;
113
G4OpenInventorQtExaminerViewer
*
fViewer
;
114
115
};
116
117
#endif
G4OpenInventorViewer.hh
G4OpenInventorQtExaminerViewer
Definition:
G4OpenInventorQtExaminerViewer.hh:88
G4OpenInventorQtViewer
Definition:
G4OpenInventorQtViewer.hh:49
G4OpenInventorQtViewer::FileWritePDF
QAction * FileWritePDF
Definition:
G4OpenInventorQtViewer.hh:76
G4OpenInventorQtViewer::EtcVisibMVisibDCB
void EtcVisibMVisibDCB()
Definition:
G4OpenInventorQtViewer.cc:388
G4OpenInventorQtViewer::EtcSetReducedWireframeCB
void EtcSetReducedWireframeCB()
Definition:
G4OpenInventorQtViewer.cc:369
G4OpenInventorQtViewer::FileEscapeCB
void FileEscapeCB()
Definition:
G4OpenInventorQtViewer.cc:340
G4OpenInventorQtViewer::EtcEraseDetector
QAction * EtcEraseDetector
Definition:
G4OpenInventorQtViewer.hh:81
G4OpenInventorQtViewer::Initialise
void Initialise()
Definition:
G4OpenInventorQtViewer.cc:71
G4OpenInventorQtViewer::EtcVisibMInvisibD
QAction * EtcVisibMInvisibD
Definition:
G4OpenInventorQtViewer.hh:86
G4OpenInventorQtViewer::FileWritePSCB
void FileWritePSCB()
Definition:
G4OpenInventorQtViewer.cc:310
G4OpenInventorQtViewer::EtcEraseEvent
QAction * EtcEraseEvent
Definition:
G4OpenInventorQtViewer.hh:82
G4OpenInventorQtViewer::EtcSetFullWireframe
QAction * EtcSetFullWireframe
Definition:
G4OpenInventorQtViewer.hh:85
G4OpenInventorQtViewer::EtcVisibMInvisibDCB
void EtcVisibMInvisibDCB()
Definition:
G4OpenInventorQtViewer.cc:381
G4OpenInventorQtViewer::EtcSetSolidCB
void EtcSetSolidCB()
Definition:
G4OpenInventorQtViewer.cc:363
G4OpenInventorQtViewer::FileWritePDFCB
void FileWritePDFCB()
Definition:
G4OpenInventorQtViewer.cc:322
G4OpenInventorQtViewer::EtcUpdateScene
QAction * EtcUpdateScene
Definition:
G4OpenInventorQtViewer.hh:88
G4OpenInventorQtViewer::EtcSetFullWireframeCB
void EtcSetFullWireframeCB()
Definition:
G4OpenInventorQtViewer.cc:375
G4OpenInventorQtViewer::ViewerRender
virtual void ViewerRender()
Definition:
G4OpenInventorQtViewer.cc:289
G4OpenInventorQtViewer::EtcUpdateSceneCB
void EtcUpdateSceneCB()
Definition:
G4OpenInventorQtViewer.cc:395
G4OpenInventorQtViewer::GetCamera
virtual SoCamera * GetCamera()
Definition:
G4OpenInventorQtViewer.cc:295
G4OpenInventorQtViewer::G4OpenInventorQtViewer
G4OpenInventorQtViewer(G4OpenInventorSceneHandler &scene, const G4String &name="")
Definition:
G4OpenInventorQtViewer.cc:61
G4OpenInventorQtViewer::FinishView
virtual void FinishView()
Definition:
G4OpenInventorQtViewer.cc:272
G4OpenInventorQtViewer::EtcEraseDetectorCB
void EtcEraseDetectorCB()
Definition:
G4OpenInventorQtViewer.cc:350
G4OpenInventorQtViewer::fViewer
G4OpenInventorQtExaminerViewer * fViewer
Definition:
G4OpenInventorQtViewer.hh:113
G4OpenInventorQtViewer::FileWritePS
QAction * FileWritePS
Definition:
G4OpenInventorQtViewer.hh:75
G4OpenInventorQtViewer::EtcEraseEventCB
void EtcEraseEventCB()
Definition:
G4OpenInventorQtViewer.cc:357
G4OpenInventorQtViewer::FileWriteIV
QAction * FileWriteIV
Definition:
G4OpenInventorQtViewer.hh:77
G4OpenInventorQtViewer::EtcSetSolid
QAction * EtcSetSolid
Definition:
G4OpenInventorQtViewer.hh:83
G4OpenInventorQtViewer::EtcSceneGraphStats
QAction * EtcSceneGraphStats
Definition:
G4OpenInventorQtViewer.hh:89
G4OpenInventorQtViewer::FileEscape
QAction * FileEscape
Definition:
G4OpenInventorQtViewer.hh:78
G4OpenInventorQtViewer::EtcVisibMVisibD
QAction * EtcVisibMVisibD
Definition:
G4OpenInventorQtViewer.hh:87
G4OpenInventorQtViewer::SetView
virtual void SetView()
Definition:
G4OpenInventorQtViewer.cc:279
G4OpenInventorQtViewer::EtcSetReducedWireframe
QAction * EtcSetReducedWireframe
Definition:
G4OpenInventorQtViewer.hh:84
G4OpenInventorQtViewer::EtcSceneGraphStatsCB
void EtcSceneGraphStatsCB()
Definition:
G4OpenInventorQtViewer.cc:401
G4OpenInventorQtViewer::FileWriteIVCB
void FileWriteIVCB()
Definition:
G4OpenInventorQtViewer.cc:334
G4OpenInventorQtViewer::~G4OpenInventorQtViewer
virtual ~G4OpenInventorQtViewer()
Definition:
G4OpenInventorQtViewer.cc:260
G4OpenInventorSceneHandler
Definition:
G4OpenInventorSceneHandler.hh:49
G4OpenInventorViewer
Definition:
G4OpenInventorViewer.hh:49
G4String
Definition:
G4String.hh:62
G4InuclParticleNames::name
const char * name(G4int ptype)
Definition:
G4InuclParticleNames.hh:76
Generated by
1.9.3