Definition at line 45 of file g4viscp.py.
◆ __init__()
def python.g4viscp.G4VisCP.__init__ |
( |
|
self, |
|
|
|
gsys = "OGLIX" |
|
) |
| |
Definition at line 48 of file g4viscp.py.
48 def __init__(self, gsys="OGLIX"):
50 self.scenelist= [
G4Scene(
"default")]
51 self.viewpoint= [270., 90.]
53 rc= ApplyUICommand(
"/vis/open " + gsys)
57 self.scenelist[0].create_scene()
58 ApplyUICommand(
"/vis/viewer/set/viewpointThetaPhi %f %f" 59 % (self.viewpoint[0], self.viewpoint[1]) )
60 ApplyUICommand(
"/tracking/storeTrajectory 1")
◆ add_scene()
def python.g4viscp.G4VisCP.add_scene |
( |
|
self, |
|
|
|
ascene |
|
) |
| |
Definition at line 62 of file g4viscp.py.
62 def add_scene(self, ascene):
63 self.scenelist.append(ascene)
◆ select_scene()
def python.g4viscp.G4VisCP.select_scene |
( |
|
self, |
|
|
|
iscene |
|
) |
| |
Definition at line 65 of file g4viscp.py.
65 def select_scene(self, iscene):
66 self.scenelist[iscene].update_scene()
67 ApplyUICommand(
"/vis/viewer/set/viewpointThetaPhi %f %f" 68 % (self.viewpoint[0], self.viewpoint[1]) )
◆ gsystem
python.g4viscp.G4VisCP.gsystem |
◆ scenelist
python.g4viscp.G4VisCP.scenelist |
◆ viewpoint
python.g4viscp.G4VisCP.viewpoint |
The documentation for this class was generated from the following file: