next up previous contents
Next: About this document ... Up: Status of GEANT4 Visualization Previous: Conclusions

Appendix

##################################
##   Log of executing example2  ##
##   (prototype/run/example2)   ##
##################################

> pwd
/home/tanaka/tmp/geant4alpha_97_10_13B/prototype/run/example2
> G++-Linux/exampe2

###### Display command list 
PreInit> ls

  Command directory path : /
   Sub-directories : 
     /control/   UI control commands.
     /particle/   Particle control commands.
     /init/   Initializer commands.
     /mydet/   My detector control.
     /vis/   Visualization
     /tracking/   TrackingManager and SteppingManager control commands.
     /event/   EventManager control commands.
     /hits/   Sensitive detectors and Hits
     /run/   RunManager control commands.
     /gun/   Particle Gun control commands.
  Commands : 


###### Create geometry etc
PreInit> /run/initialize

  G4Initializer::initialize - Default G4ParticleList constructed.
  G4Initializer::initialize - Default G4ProcessList constructed.
  CutLength : 10 (mm)

###### Invoke OpenGLImmediateX graphics driver
Idle> /vis/create_view/new_graphics_system OGLIX

  1 OpenGLImmediateX scenes extanct.
  OpenGLImmediateX.0.0 (i.e., scene 0, view 0) instantiated.
  Got standard cmap
  Window name: OpenGLImmediateX.0.0

###### Draw current scene
Idle> /vis/draw/current

  Registering a "world" with no vis attributes or which
  is marked as visible.  For a better view of the contents,
  mark the world as invisible, e.g.,
  myWorldLogicalVol -> SetVisAttributes (G4VisAttributes::Invisible);
  G4BoundingSphereSystem.0.0 (i.e., scene 0, view 0) instantiated.
  G4VisManager: scene has been set to "world".
  Traverse geometry tree and draw expHall_P

  ###################################
  #                                 #
  #        FIGURE                   #
  #  (with default camera setting ) #
  #                                 #
  ###################################

###### Add coordinate axes to the view
Idle> /vis/draw/axes 0 0 0 10000 

  ####################################
  #                                  #
  #        FIGURE                    #
  #     ( with coord axes            #
  #       X: red, Y, green, Z: blue) #
  #                                  #  
  ####################################


###### Flush drawing (not necessary in OGLIX)
Idle> /vis/show/view

  ############################
  #                          #
  #        FIGURE            #
  #     (with coord axes)    #
  #                          #
  ############################


###### Zoom up by factor 10
Idle> /vis/camera/zoom 10

  Traverse geometry tree and draw expHall_P
  ########################
  #                      #
  #        FIGURE        #
  #    (zoomed up by 10) #
  #                      #  
  ########################

###### Initialize the camera 
Idle> vis/camera/reset
Traverse geometry tree and draw expHall_P

  ###########################
  #                         #
  #        FIGURE           #
  #   (with normal scale)   #
  #                         #  
  ###########################

Idle> /vis/camera/viewpoint 5 30

  Traverse geometry tree and draw expHall_P
  #################################
  #                               #
  #        FIGURE                 #
  #   (from theta = 5, phi = 30 ) #
  #                               #  
  #################################

###### Display supported drawing styles
Idle> /vis/set/drawing_style 

  Available drawing styles:
  0) wireframe
  1) hidden line removal
  2) solid (hidden surface removal)
  3) solids with edges (hidden line, hidden surface removal)

  Drawing style is currently0
  Culling is currently off
  Culling of invisible objects is currently off
  Density culling is currently off
  To override culling, /vis/set/culling off.
  To set/reset culling of invisible objects,
  /vis/set/cull_invisible_objects on/off.
  To reset density culling, /vis/set/cull_by_density off.
  To set density culling, e.g., /vis/set/cull_by_density on 0.01.

  Choose by specifying integer parameter.

###### Reset the drawing styles to "surface mode"

Idle> /vis/set/drawing_style 2

  Drawing style changed to 2
  Culling is now on
  Culling of invisible objects is now on
  Density culling is now on - invisible if density less than 0.01 g cm^-3
  To override culling, /vis/set/culling off.
  To set/reset culling of invisible objects,
  /vis/set/cull_invisible_objects on/off.
  To reset density culling, /vis/set/cull_by_density off.
  To set density culling, e.g., /vis/set/cull_by_density on 0.01.
  Traverse geometry tree and draw expHall_P

  ###############################################################
  #                                                             #
  #        FIGURE                                               #
  #     (surface mode)                                          #
  #                                                             #
  #   Note: The figure looks like a wireframe-mode view,        #
  #         It is because the forced wireframe attribute        #
  #         is assigned to each 3D object.                      # 
  #         You can see, however, the covering box is missing,  #
  #         since culling is made active in the surface mode.   #
  #                                                             #  
  ###############################################################

###### Reset the drawing styles to "wireframe mode"
Idle> /vis/set/drawing_style 0

  #################################
  #                               #
  #        FIGURE                 #
  #       (wireframe)             #
  #                               #  
  #################################

###### Invoke DAWN graphics driver
Idle> /vis/create_view/new_graphics_system DAWN

  **********************************
            Fukui  Renderer         
                DAWN                
   (Drawer for Academic WritiNgs)   
     ver 3.16a-GL    October 9, 1997
  **********************************
  
  ***** Daemon mode with INET domain (-G option)
  
  ***** Socket is bound!
  ***** Trying connection to  ryoto
  ***** GEANT4 is connected to port  40701  of server
  ***** GEANT4 is connected to FukuiRenderer DAWN in the same host
  1 FukuiRenderer scenes extanct.
  FukuiRenderer.0.0 (i.e., scene 0, view 0) instantiated.

###### Quick re-drawing of the current scene
Idle> /vis/refresh/view

  Traverse geometry tree and draw expHall_P
  ---------------------------------------------------
   Drawing completed. 
   Click Drawing Area or Hit Any Key!

   <Key>           : go on to next drawing
   <Mouse Button1> : no effect
   <Mouse Button2> : invoke GUI and redraw 
   <Mouse Button3> : go on to next drawing ( = Key ) 
  
  ---------------------------------------------------

  ########################
  #                      #
  #        FIGURE        #
  #                      #  
  ########################

###### Invoke OpenGLStoredX graphics driver
Idle> /vis/create_view/new_graphics_system OGLSX

  1 OpenGLStoredX scenes extanct.
  OpenGLStoredX.0.0 (i.e., scene 0, view 0) instantiated.
  Got standard cmap
  Window name: OpenGLStoredX.0.0

###### Spinning (draw 100 frames, angle_step = 2 deg)
Idle> /vis/camera/spin 100 2

  Traverse geometry tree and draw expHall_P

  ########################
  #                      #
  #        FIGURE        #
  #       (spin)         #
  #                      #  
  ########################

###### Terminate GEANT4
Idle> exit



Satoshi Tanaka
3/13/1998