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

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

change in NO3

File size: 3.1 KB
Line 
1#######################################################################
2#  MACRO FILE NAME: exN03Vis7.mac                                     #
3#                                                                     #
4#  AUTHOR(S): Satoshi Tanaka                                          #
5#                                                                     #
6#  DATE:                                                              #
7#        Nov      14, 2001                                            #
8#                                                                     #
9#  CONTENTS: A macro to demonstrate batch visualization to generate   #
10#            PostScript file with the DAWNFILE driver                 #
11#                                                                     #
12#          % setenv DAWN_BATCH               1                        #
13#          % make visclean                                            #
14#          % $G4BINDIR/exampleN03                                     #
15#          Idle> /control/execute visTutor/exN03Vis7.mac              #
16#          Idle> exit                                                 #
17#          % gv g4_00.eps &                                           #
18#          % gv g4_01.eps &                                           #
19#          % gv g4_02.eps &                                           #
20#                                                                     #
21#  REQUIRED PLATFORMS & SOFTWARES: Unix, X-window,                    #
22#                                  DAWN (version 3.85 or after)       #
23#                                                                     #
24#  ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION:               #
25#  (See geant4/source/visualization/README for details.)              #
26#                                                                     #
27#    * Unnecessary                                                    #
28#                                                                     #
29#  ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION:                #
30#  (See geant4/source/visualization/README for details.)              #
31#                                                                     #
32#    * Unnecessary                                                    #
33#                                                                     #
34#######################################################################
35
36####################################################################
37# Creation of a multi-page PostScript file with the DAWNFILE driver
38####################################################################
39
40# Invoke the DAWNFILE driver
41/vis/open DAWNFILE
42
43# Add the world volume to the current scene
44/vis/drawVolume
45
46# Add trajectories to the current scene
47#  Note: This command is not necessary in exampleN03,
48#        since the C++ method DrawTrajectory() is
49#        described in the event action.
50#/vis/scene/add/trajectories
51
52# Set camera
53/vis/viewer/reset
54/vis/viewer/zoom              1.5
55/vis/viewer/set/viewpointThetaPhi 70 20
56
57# Visualize events added to the current scene
58/tracking/storeTrajectory 1
59/run/beamOn 3
Note: See TracBrowser for help on using the repository browser.