3 # ================================================================== 6 # Visualization Control Panel 9 # ================================================================== 11 from G4interface
import *
18 def __init__(self, aname, vol= "world", acopyno=0,
25 self.
mode= (
"accumulate",
"refresh")
28 ApplyUICommand(
"/vis/scene/create " + self.
name)
29 ApplyUICommand(
"/vis/scene/add/volume %s %d" %
31 ApplyUICommand(
"/vis/scene/add/trajectories")
35 ApplyUICommand(
"/vis/scene/select " + self.
name)
36 ApplyUICommand(
"/vis/sceneHandler/attach")
37 ApplyUICommand(
"/vis/scene/endOfEventAction %s" %
39 ApplyUICommand(
"/vis/scene/endOfRunAction %s" %
46 "G4 Visualization Control Panel" 53 rc= ApplyUICommand(
"/vis/open " + gsys)
58 ApplyUICommand(
"/vis/viewer/set/viewpointThetaPhi %f %f" 60 ApplyUICommand(
"/tracking/storeTrajectory 1")
67 ApplyUICommand(
"/vis/viewer/set/viewpointThetaPhi %f %f"
def __init__(self, gsys="OGLIX")
def __init__(self, aname, vol="world", acopyno=0, amode=0, bmode=1)
def add_scene(self, ascene)
def select_scene(self, iscene)