source: trunk/geant4/N03/visTutor/exN03Vis6.mac @ 474

Last change on this file since 474 was 474, checked in by garnier, 17 years ago

r553@wl-72148: laurentgarnier | 2007-05-15 16:01:10 +0200


File size: 3.8 KB
Line 
1#######################################################################
2#  MACRO FILE NAME: exN03Vis6.mac                                     #
3#                                                                     #
4#  AUTHOR(S): Satoshi Tanaka                                          #
5#                                                                     #
6#  DATE:                                                              #
7#        Nov      07, 2001                                            #
8#        Sept     08-09, 2001 (at Hebden Bridge, UK)                  #
9#        June     20, 2001                                            #
10#        November 26, 2000                                            #
11#        October  17, 2000                                            # 
12#                                                                     #
13#  CONTENTS: A macro to demonstrate the VRMLFILE driver               #
14#                                                                     #
15#  USAGE:  % gmake visclean                                           #
16#          % $G4BINDIR/exampleN03                                     #
17#          Idle> /control/execute visTutor/exN03Vis7.mac              #
18#                                                                     #
19#  REQUIRED PLATFORMS & SOFTWARES: Unix, X-window,                    #
20#                                  VRML viewer (e.g. VRMLview)        #
21#                                                                     #
22#  ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION:               #
23#  (See geant4/source/visualization/README for details.)              #
24#    * Unnecessary                                                    #
25#                                                                     #
26#  ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION:                #
27#  (See geant4/source/visualization/README for details.)              #
28#    * Unnecessary                                                    #
29#                                                                     #
30#  RECOMMENDED ENVIRONMENTAL VARIABLES FOR VISUALIZATION:             #
31#                                                                     #
32#    % setenv G4VRMLFILE_VIEWER        vrmlview                       #
33#     ( The default value is "NONE".)                                 #
34#                                                                     #
35#  ADDITIONAL NOTES:                                                  #
36#   The VRML-file viewer "vrmlview" is obtainable from the following  #
37#   Web site:                                                         #
38#      http://www.sim.no/downloads.html                               #
39#                                                                     #
40#######################################################################
41
42###################################################
43# Visualization of detector geometry and events 
44# with the VRML2FILE driver.
45###################################################
46
47# Store particle trajactories for visualization
48/tracking/storeTrajectory 1
49
50# Invoke the VRML2FILE driver
51#  Note: The VRML1FILE driver generates VRML 1.0 format files.
52#        The VRML2FILE driver generates VRML 2.0 format files.
53/vis/open VRML2FILE
54
55# Create an empty scene and add the detector geometry to it
56/vis/drawVolume
57
58# Visualize 3 events in the wireframe mode
59#  Note: The command /vis/scene/add/trajectories
60#        is not necessary in exampleN03,
61#        since the C++ method DrawTrajectory() is 
62#        described in the event action.
63#  Note: "/vis/viewer/set/style wireframe" means 
64#       "half-transparent" in the VRML2FILE driver. 
65#       It is a convention only for this driver.
66#/vis/scene/add/trajectories
67/vis/viewer/set/style wireframe
68/run/beamOn 3
Note: See TracBrowser for help on using the repository browser.