source: trunk/examples/novice/N03/visTutor/exN03Vis6.mac @ 1302

Last change on this file since 1302 was 1302, checked in by garnier, 14 years ago

change in NO3

File size: 3.4 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/exN03Vis6.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#  OPTIONAL ENVIRONMENTAL VARIABLES FOR VISUALIZATION:                #
31#                                                                     #
32#    % setenv G4VRMLFILE_VIEWER vrmlview                              #
33#     ( Example for 'vrmlview'. The default value is "NONE".)         #
34#                                                                     #
35#######################################################################
36
37###################################################
38# Visualization of detector geometry and events 
39# with the VRML2FILE driver.
40###################################################
41
42# Store particle trajactories for visualization
43/tracking/storeTrajectory 1
44
45# Invoke the VRML2FILE driver
46#  Note: The VRML1FILE driver generates VRML 1.0 format files.
47#        The VRML2FILE driver generates VRML 2.0 format files.
48/vis/open VRML2FILE
49
50# Create an empty scene and add the detector geometry to it
51/vis/drawVolume
52
53# Visualize 3 events in the wireframe mode
54#  Note: The command /vis/scene/add/trajectories
55#        is not necessary in exampleN03,
56#        since the C++ method DrawTrajectory() is 
57#        described in the event action.
58#  Note: "/vis/viewer/set/style wireframe" means 
59#       "half-transparent" in the VRML2FILE driver. 
60#       It is a convention only for this driver.
61#/vis/scene/add/trajectories
62/vis/viewer/set/style wireframe
63/run/beamOn 3
Note: See TracBrowser for help on using the repository browser.