source: trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization/visTutor/exN03Vis4_mac.html @ 904

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

ajout de la doc

File size: 4.9 KB
Line 
1<pre>
2#######################################################################
3#  MACRO FILE NAME: exN03Vis4.mac                                     #
4#                                                                     #
5#  AUTHOR(S): Satoshi Tanaka                                          #
6#                                                                     #
7#  DATE:                                                              #
8#        Nov      07, 2001                                            #
9#        Sept     08-09, 2001 (at Hebden Bridge, UK)                  #
10#        June     20, 2001                                            #
11#        November 26, 2000                                            #
12#        October  17, 2000                                            #
13#        June     06, 2000                                            #
14#                                                                     #
15#  CONTENTS: An example for the compound command,                     #
16#            "/vis/specify  <logical_volume_name>"                    #
17#                                                                     #
18#  USAGE:  % gmake visclean                                           #
19#          % $G4BINDIR/exampleN03                                     #
20#          Idle> /control/execute visTutor/exN03Vis4.mac              #
21#                                                                     #
22#  REQUIRED PLATFORMS & SOFTWARES: Unix, X-window,                    #
23#                                  DAWN (version 3.85 or after)       #
24#                                  gv (Ghostview), Tcl/Tk             #
25#                                                                     #
26#  ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION:               #
27#  (See geant4/source/visualization/README for details.)              #
28#                                                                     #
29#    % setenv OGLHOME     ... (e.g. /usr/X11R6)                       #
30#    % setenv G4VIS_BUILD_OPENGLX_DRIVER   1                          #
31#                                                                     #
32#  ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION:                #
33#  (See geant4/source/visualization/README for details.)              #
34#                                                                     #
35#    % setenv G4VIS_USE_OPENGLX            1                          #
36#                                                                     #
37#  ADDITIONAL NOTES:                                                  #
38#    The compound command "/vis/open <vis-driver-name>"               #
39#    is equivalent to the following set of commands:                  #
40#                                                                     #
41#      /vis/sceneHandler/create $1                                    #
42#      /vis/viewer/create                                             #
43#                                                                     #
44#    The compound command "/vis/specify <logical-volume-name>"        #
45#    is equivalent to the following set of commands:                  #
46#                                                                     #
47#      /vis/scene/create                                              # 
48#      /vis/scene/add/logicalVolume $1                                #
49#      /vis/sceneHandler/attach                                       #
50#                                                                     #
51#######################################################################
52
53##########################################################
54# Visualization with the OGLIX driver
55##########################################################
56
57# Invoke the OGLIX driver
58/vis/open OGLIX
59
60# Set camera
61/vis/viewer/reset
62/vis/viewer/zoom       0.9
63/vis/viewer/set/viewpointThetaPhi  35 35
64
65# Visualize a selected logical volume
66/vis/specify           Absorber
67/vis/viewer/flush
68
69##########################################################
70# Visualization with the DAWNFILE driver
71#
72#  * Each visualized view is saved to a file "g4_XX.eps" 
73#    with the "vectorized" PostScript format.
74#
75#  * Set an environmental variable if you wish to
76#    skip DAWN GUI:
77#     % setenv G4DAWNFILE_VIEWER "dawn -d"
78##########################################################
79# Invoke the DAWNFILE driver
80/vis/open DAWNFILE
81
82# Set camera
83/vis/viewer/reset
84/vis/viewer/zoom       0.9
85/vis/viewer/set/viewpointThetaPhi  35 35
86
87# Visualize a selected logical volume (1)
88/vis/specify                  Absorber
89/vis/scene/add/axes    0 0 0 500 mm
90/vis/scene/add/text    0 0 0 mm  40 -100 -200   LogVol:Absorber
91/vis/scene/notifyHandlers
92/vis/viewer/update
93
94# FOR FUTURE UPDATION
95#/vis/viewer/flushAll
96
97# Visualize a selected logical volume (2)
98/vis/specify  Gap
99/vis/scene/add/axes    0 0 0 500 mm
100/vis/scene/add/text    0 0 0 mm  40 -100 -200   LogVol:Gap
101/vis/scene/notifyHandlers
102/vis/viewer/update
103
104# FOR FUTURE UPDATION
105#/vis/viewer/flushAll
106</pre>
Note: See TracBrowser for help on using the repository browser.