ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
tree
geant4-10.6-release
config
environments
examples
source
analysis
digits_hits
error_propagation
event
externals
g3tog4
geometry
global
graphics_reps
intercoms
interfaces
materials
parameterisations
particles
persistency
physics_lists
processes
readout
run
track
tracking
visualization
externals
FukuiRenderer
gMocren
HepRep
management
modeling
OpenGL
include
src
G4OpenGLFontBaseStore.cc
G4OpenGLImmediateQt.cc
G4OpenGLImmediateQtViewer.cc
G4OpenGLImmediateSceneHandler.cc
G4OpenGLImmediateViewer.cc
G4OpenGLImmediateWin32.cc
G4OpenGLImmediateWin32Viewer.cc
G4OpenGLImmediateWt.cc
G4OpenGLImmediateWtViewer.cc
G4OpenGLImmediateX.cc
G4OpenGLImmediateXm.cc
G4OpenGLImmediateXmViewer.cc
G4OpenGLImmediateXViewer.cc
G4OpenGLQt.cc
G4OpenGLQtExportDialog.cc
G4OpenGLQtMovieDialog.cc
G4OpenGLQtViewer.cc
G4OpenGLSceneHandler.cc
G4OpenGLStoredQt.cc
G4OpenGLStoredQtSceneHandler.cc
G4OpenGLStoredQtViewer.cc
G4OpenGLStoredSceneHandler.cc
G4OpenGLStoredViewer.cc
G4OpenGLStoredWin32.cc
G4OpenGLStoredWin32Viewer.cc
G4OpenGLStoredX.cc
G4OpenGLStoredXm.cc
G4OpenGLStoredXmViewer.cc
G4OpenGLStoredXViewer.cc
G4OpenGLTransform3D.cc
G4OpenGLVboDrawer.cc
G4OpenGLViewer.cc
G4OpenGLViewerMessenger.cc
G4OpenGLWin32Viewer.cc
G4OpenGLWtViewer.cc
G4OpenGLXm.cc
G4OpenGLXmBox.cc
G4OpenGLXmConvenienceRoutines.cc
G4OpenGLXmFourArrowButtons.cc
G4OpenGLXmFramedBox.cc
G4OpenGLXmMainMenubarCallbacks.cc
G4OpenGLXmPanningCallbacks.cc
G4OpenGLXmPushButton.cc
G4OpenGLXmRadioButton.cc
G4OpenGLXmRotationCallbacks.cc
G4OpenGLXmSeparator.cc
G4OpenGLXmSliderBar.cc
G4OpenGLXmStyleCallbacks.cc
G4OpenGLXmTextField.cc
G4OpenGLXmTopLevelShell.cc
G4OpenGLXmViewer.cc
G4OpenGLXmViewerMessenger.cc
G4OpenGLXmVWidgetComponent.cc
G4OpenGLXmVWidgetContainer.cc
G4OpenGLXmVWidgetObject.cc
G4OpenGLXmVWidgetShell.cc
G4OpenGLXmWindowHandlingCallbacks.cc
G4OpenGLXViewer.cc
G4VisFeaturesOfOpenGL.cc
OpenInventor
RayTracer
Tree
VRML
XXX
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4OpenGLXm.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4OpenGLXm.cc
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
// John Allison 16th July 2015
29
// Base class for OpenGLImmediate/StoredXm graphics system factories.
30
31
#ifdef G4VIS_BUILD_OPENGLXM_DRIVER
32
33
#include "
G4OpenGLXm.hh
"
34
35
#include "
G4UImanager.hh
"
36
#include "
G4UIbatch.hh
"
37
38
G4OpenGLXm::G4OpenGLXm
(
const
G4String
&
name
,
39
const
G4String
& nickname,
40
const
G4String
& description,
41
Functionality
f
):
42
G4VGraphicsSystem
(name,
43
nickname,
44
description,
45
f)
46
{}
47
48
G4bool
G4OpenGLXm::IsUISessionCompatible
()
const
49
{
50
G4bool
isCompatible =
false
;
51
G4UImanager
* ui =
G4UImanager::GetUIpointer
();
52
G4UIsession
*
session
= ui->
GetSession
();
53
54
// If session is a batch session, it may be:
55
// a) this is a batch job (the user has not instantiated any UI session);
56
// b) we are currently processing a UI command, in which case the UI
57
// manager creates a temporary batch session and to find out if there is
58
// a genuine UI session that the user has instantiated we must drill
59
// down through previous sessions to a possible non-batch session.
60
while
(
G4UIbatch
* batch = dynamic_cast<G4UIbatch*>(session)) {
61
session = batch->GetPreviousSession();
62
}
63
64
// Xm windows are not appropriate in a batch session.
65
if
(session) {
66
// If non-zero, this is the originating non-batch session
67
// The user has instantiated a UI session...
68
isCompatible =
true
;
69
}
70
71
return
isCompatible;
72
}
73
74
#endif
geant4
tree
geant4-10.6-release
source
visualization
OpenGL
src
G4OpenGLXm.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:57
using
1.8.2 with
ECCE GitHub integration