Geant4-11
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
w
y
Enumerations
a
b
c
d
e
f
g
l
m
p
r
s
t
v
y
z
Enumerator
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
:
a
b
c
d
g
h
i
o
q
r
s
t
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
x
z
Enumerations
b
c
d
e
f
g
i
j
l
m
n
p
r
s
t
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
source
visualization
OpenGL
include
G4OpenGLStoredQtViewer.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
//
27
//
28
//
29
// Class G4OpenGLStoredQtViewer : a class derived from
30
// G4OpenGLQtViewer and G4OpenGLStoredViewer.
31
32
#ifndef G4OPENGLSTOREDQTVIEWER_HH
33
#define G4OPENGLSTOREDQTVIEWER_HH
34
35
#include "
G4OpenGLStoredViewer.hh
"
36
#include "
G4OpenGLQtViewer.hh
"
37
#include <qgl.h>
// include qglwidget
38
39
class
QMouseEvent;
40
class
QWheelEvent;
41
class
QContextMenuEvent;
42
43
class
G4OpenGLStoredSceneHandler
;
44
45
class
G4OpenGLStoredQtViewer
:
46
public
G4OpenGLQtViewer
,
public
G4OpenGLStoredViewer
,
public
QGLWidget {
47
48
public
:
49
G4OpenGLStoredQtViewer
(
G4OpenGLStoredSceneHandler
& scene,
50
const
G4String
&
name
=
""
);
51
~G4OpenGLStoredQtViewer
();
52
void
Initialise
();
53
void
initializeGL
();
54
void
DrawView
();
55
void
resizeGL
(
int
width,
int
height);
56
void
paintGL
();
57
void
updateQWidget
();
58
void
ShowView
();
59
void
DisplayTimePOColourModification
(
G4Colour
&,
size_t
);
60
61
protected
:
62
63
// Special version for Qt - avoid comparing VisAttributesModifiers.
64
G4bool
CompareForKernelVisit
(
G4ViewParameters
&);
65
66
// Two virtual functions to return sub-class selection.
67
G4bool
POSelected
(
size_t
POListIndex);
68
G4bool
TOSelected
(
size_t
TOListIndex);
69
70
void
showEvent
(QShowEvent * event );
71
void
wheelEvent
(QWheelEvent *event);
72
void
mousePressEvent
(QMouseEvent *event);
73
void
mouseMoveEvent
(QMouseEvent *event);
74
void
mouseDoubleClickEvent
(QMouseEvent *event);
75
void
mouseReleaseEvent
(QMouseEvent *event);
76
void
contextMenuEvent
(QContextMenuEvent *e);
77
void
keyPressEvent
(QKeyEvent * event);
78
void
keyReleaseEvent
(QKeyEvent * event);
79
void
paintEvent
(QPaintEvent *event);
80
private
:
81
void
ComputeView
();
82
83
// QImage glBufferImage;
84
};
85
86
#endif
G4OpenGLQtViewer.hh
G4OpenGLStoredViewer.hh
G4bool
bool G4bool
Definition:
G4Types.hh:86
G4Colour
Definition:
G4Colour.hh:82
G4OpenGLQtViewer
Definition:
G4OpenGLQtViewer.hh:84
G4OpenGLStoredQtViewer
Definition:
G4OpenGLStoredQtViewer.hh:46
G4OpenGLStoredQtViewer::keyReleaseEvent
void keyReleaseEvent(QKeyEvent *event)
Definition:
G4OpenGLStoredQtViewer.cc:368
G4OpenGLStoredQtViewer::ComputeView
void ComputeView()
Definition:
G4OpenGLStoredQtViewer.cc:211
G4OpenGLStoredQtViewer::~G4OpenGLStoredQtViewer
~G4OpenGLStoredQtViewer()
Definition:
G4OpenGLStoredQtViewer.cc:65
G4OpenGLStoredQtViewer::paintGL
void paintGL()
Definition:
G4OpenGLStoredQtViewer.cc:295
G4OpenGLStoredQtViewer::mouseReleaseEvent
void mouseReleaseEvent(QMouseEvent *event)
Definition:
G4OpenGLStoredQtViewer.cc:394
G4OpenGLStoredQtViewer::CompareForKernelVisit
G4bool CompareForKernelVisit(G4ViewParameters &)
Definition:
G4OpenGLStoredQtViewer.cc:108
G4OpenGLStoredQtViewer::G4OpenGLStoredQtViewer
G4OpenGLStoredQtViewer(G4OpenGLStoredSceneHandler &scene, const G4String &name="")
Definition:
G4OpenGLStoredQtViewer.cc:44
G4OpenGLStoredQtViewer::mouseDoubleClickEvent
void mouseDoubleClickEvent(QMouseEvent *event)
Definition:
G4OpenGLStoredQtViewer.cc:389
G4OpenGLStoredQtViewer::TOSelected
G4bool TOSelected(size_t TOListIndex)
Definition:
G4OpenGLStoredQtViewer.cc:202
G4OpenGLStoredQtViewer::mousePressEvent
void mousePressEvent(QMouseEvent *event)
Definition:
G4OpenGLStoredQtViewer.cc:358
G4OpenGLStoredQtViewer::updateQWidget
void updateQWidget()
Definition:
G4OpenGLStoredQtViewer.cc:410
G4OpenGLStoredQtViewer::initializeGL
void initializeGL()
Definition:
G4OpenGLStoredQtViewer.cc:91
G4OpenGLStoredQtViewer::keyPressEvent
void keyPressEvent(QKeyEvent *event)
Definition:
G4OpenGLStoredQtViewer.cc:363
G4OpenGLStoredQtViewer::paintEvent
void paintEvent(QPaintEvent *event)
Definition:
G4OpenGLStoredQtViewer.cc:343
G4OpenGLStoredQtViewer::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *event)
Definition:
G4OpenGLStoredQtViewer.cc:399
G4OpenGLStoredQtViewer::wheelEvent
void wheelEvent(QWheelEvent *event)
Definition:
G4OpenGLStoredQtViewer.cc:373
G4OpenGLStoredQtViewer::showEvent
void showEvent(QShowEvent *event)
Definition:
G4OpenGLStoredQtViewer.cc:378
G4OpenGLStoredQtViewer::POSelected
G4bool POSelected(size_t POListIndex)
Definition:
G4OpenGLStoredQtViewer.cc:197
G4OpenGLStoredQtViewer::DisplayTimePOColourModification
void DisplayTimePOColourModification(G4Colour &, size_t)
Definition:
G4OpenGLStoredQtViewer.cc:451
G4OpenGLStoredQtViewer::contextMenuEvent
void contextMenuEvent(QContextMenuEvent *e)
Definition:
G4OpenGLStoredQtViewer.cc:405
G4OpenGLStoredQtViewer::Initialise
void Initialise()
Definition:
G4OpenGLStoredQtViewer.cc:72
G4OpenGLStoredQtViewer::DrawView
void DrawView()
Definition:
G4OpenGLStoredQtViewer.cc:207
G4OpenGLStoredQtViewer::ShowView
void ShowView()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition:
G4OpenGLStoredQtViewer.cc:432
G4OpenGLStoredQtViewer::resizeGL
void resizeGL(int width, int height)
Definition:
G4OpenGLStoredQtViewer.cc:278
G4OpenGLStoredSceneHandler
Definition:
G4OpenGLStoredSceneHandler.hh:43
G4OpenGLStoredViewer
Definition:
G4OpenGLStoredViewer.hh:44
G4String
Definition:
G4String.hh:62
G4ViewParameters
Definition:
G4ViewParameters.hh:90
G4InuclParticleNames::name
const char * name(G4int ptype)
Definition:
G4InuclParticleNames.hh:76
Generated by
1.9.3