Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
python.g4viscp.G4VisCP Class Reference

Public Member Functions

def __init__
 
def add_scene
 
def select_scene
 

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 
49  def __init__(self, gsys="OGLIX"):
50  self.gsystem= gsys
51  self.scenelist= [G4Scene("default")]
52  self.viewpoint= [270., 90.]
53 
54  rc= ApplyUICommand("/vis/open " + gsys)
55  if (rc != 0):
56  return
57 
58  self.scenelist[0].create_scene()
59  ApplyUICommand("/vis/viewer/set/viewpointThetaPhi %f %f"
60  % (self.viewpoint[0], self.viewpoint[1]) )
61  ApplyUICommand("/tracking/storeTrajectory 1")

Member Function Documentation

def python.g4viscp.G4VisCP.add_scene (   self,
  ascene 
)

Definition at line 62 of file g4viscp.py.

62 
63  def add_scene(self, ascene):
64  self.scenelist.append(ascene)
def python.g4viscp.G4VisCP.select_scene (   self,
  iscene 
)

Definition at line 65 of file g4viscp.py.

65 
66  def select_scene(self, iscene):
67  self.scenelist[iscene].update_scene()
68  ApplyUICommand("/vis/viewer/set/viewpointThetaPhi %f %f"
69  % (self.viewpoint[0], self.viewpoint[1]) )
70 

Member Data Documentation

python.g4viscp.G4VisCP.gsystem

Definition at line 49 of file g4viscp.py.

python.g4viscp.G4VisCP.scenelist

Definition at line 50 of file g4viscp.py.

python.g4viscp.G4VisCP.viewpoint

Definition at line 51 of file g4viscp.py.


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