2# ==================================================================
10from G4interface import *
12# ------------------------------------------------------------------
14# ------------------------------------------------------------------
17 def __init__(self, aname, vol= "world", acopyno=0,
24 self.
mode= (
"accumulate",
"refresh")
27 ApplyUICommand(
"/vis/scene/create " + self.
name)
28 ApplyUICommand(
"/vis/scene/add/volume %s %d" %
30 ApplyUICommand(
"/vis/scene/add/trajectories")
34 ApplyUICommand(
"/vis/scene/select " + self.
name)
35 ApplyUICommand(
"/vis/sceneHandler/attach")
36 ApplyUICommand(
"/vis/scene/endOfEventAction %s" %
38 ApplyUICommand(
"/vis/scene/endOfRunAction %s" %
45 "G4 Visualization Control Panel"
52 rc= ApplyUICommand(
"/vis/open " + gsys)
57 ApplyUICommand(
"/vis/viewer/set/viewpointThetaPhi %f %f"
59 ApplyUICommand(
"/tracking/storeTrajectory 1")
66 ApplyUICommand(
"/vis/viewer/set/viewpointThetaPhi %f %f"
def __init__(self, aname, vol="world", acopyno=0, amode=0, bmode=1)
def __init__(self, gsys="OGLIX")
def select_scene(self, iscene)
def add_scene(self, ascene)