source: trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization/visTutor/exN03Vis8_mac.html

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

ajout de la doc

File size: 4.7 KB
Line 
1<pre>
2#######################################################################
3# MACRO FILE NAME: exN03Vis8.mac #
4# #
5# AUTHOR(S): Satoshi Tanaka #
6# #
7# DATE: #
8# Nov 14, 2001 (renamed from exN03Vis8.mac) #
9# Nov 07, 2001 #
10# Sept 08-09, 2001 (at Hebden Bridge, UK) #
11# June 20, 2001 #
12# November 26, 2000 #
13# October 17, 2000 #
14# #
15# CONTENTS: A macro to demonstrate creation of a "multi-page" #
16# PostScript file #
17# #
18# USAGE: % setenv G4DAWNFILE_MAX_FILE_NUM 1 #
19# % setenv DAWN_BATCH a #
20# % gmake visclean #
21# % $G4BINDIR/exampleN03 #
22# Idle> /control/execute visTutor/exN03Vis9.mac #
23# Idle> exit #
24# % gv g4_00.eps #
25# #
26# Then click, "<<", ">>" etc to traverse pages #
27# #
28# REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, #
29# DAWN (version 3.85 or after) #
30# gv (Ghostview), Tcl/Tk #
31# #
32# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
33# (See geant4/source/visualization/README for details.) #
34# #
35# * Unnecessary #
36# #
37# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
38# (See geant4/source/visualization/README for details.) #
39# #
40# * Unnecessary #
41# #
42# ADDITIONAL NOTES: #
43# * If you execute this macro plural times, all the views are #
44# sequentially appended to the file "g4_00.eps". #
45# For example if you execute it two times, a 6-page (3+3 page) #
46# PostScript file is made. #
47# Unset environmental variables to initialize your environment: #
48# #
49# % unsetenv G4DAWNFILE_MAX_FILE_NUM #
50# % unsetenv DAWN_BATCH #
51# #
52#######################################################################
53
54####################################################################
55# Creation of a multi-page PostScript file with the DAWNFILE driver
56####################################################################
57
58# Invoke the DAWNFILE driver
59/vis/open DAWNFILE
60
61# Set viewing parameters
62/vis/viewer/reset
63/vis/viewer/zoom 0.9
64/vis/viewer/set/viewpointThetaPhi 35 35
65
66# Generate page 1: Absorber
67/vis/drawVolume Absorber
68/vis/scene/add/axes 0 0 0 500 mm
69/vis/scene/add/text 0 0 0 mm 30 -150 -200 Page1/3:Absorber
70/vis/viewer/flush
71
72# Generate page 2: Gap
73/vis/drawVolume Gap
74/vis/scene/add/axes 0 0 0 500 mm
75/vis/scene/add/text 0 0 0 mm 30 -100 -200 Page2/3:Gap
76/vis/viewer/flush
77
78# Generate page 3: World
79/vis/viewer/set/culling global false
80/vis/drawVolume
81/vis/scene/add/axes 0 0 0 500 mm
82/vis/scene/add/text 0 0 0 mm 50 -100 -200 Page3/3:world
83/vis/viewer/flush
84
85# Make the culling on for next visualization
86# Note: You may also use "/vis/viewer/reset"
87# for this initialization.
88/vis/viewer/set/culling global true
89</pre>
Note: See TracBrowser for help on using the repository browser.