source: trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization/visTutor/exN03Vis7_mac.html @ 1345

Last change on this file since 1345 was 904, checked in by garnier, 16 years ago

ajout de la doc

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