Public Member Functions | Public Attributes | List of all members
python.g4viscp.G4VisCP Class Reference

Public Member Functions

def __init__ (self, gsys="OGLIX")
 
def add_scene (self, ascene)
 
def select_scene (self, iscene)
 

Public Attributes

 gsystem
 
 scenelist
 
 viewpoint
 

Detailed Description

Definition at line 45 of file g4viscp.py.

Constructor & Destructor Documentation

def python.g4viscp.G4VisCP.__init__ (   self,
  gsys = "OGLIX" 
)

Definition at line 48 of file g4viscp.py.

48  def __init__(self, gsys="OGLIX"):
49  self.gsystem= gsys
50  self.scenelist= [G4Scene("default")]
51  self.viewpoint= [270., 90.]
52 
53  rc= ApplyUICommand("/vis/open " + gsys)
54  if (rc != 0):
55  return
56 
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")
61 
def __init__(self, gsys="OGLIX")
Definition: g4viscp.py:48

Member Function Documentation

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)
64 
def add_scene(self, ascene)
Definition: g4viscp.py:62
def python.g4viscp.G4VisCP.select_scene (   self,
  iscene 
)

Definition at line 65 of file g4viscp.py.

References python.g4viscp.G4VisCP.scenelist, and python.g4viscp.G4VisCP.viewpoint.

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]) )
69 
70 
def select_scene(self, iscene)
Definition: g4viscp.py:65

Member Data Documentation

python.g4viscp.G4VisCP.gsystem

Definition at line 49 of file g4viscp.py.

python.g4viscp.G4VisCP.scenelist
python.g4viscp.G4VisCP.viewpoint

The documentation for this class was generated from the following file: