source: trunk/source/interfaces/visTutor/exN03Vis4.mac @ 1202

Last change on this file since 1202 was 562, checked in by garnier, 17 years ago

r565@mac-90108: laurentgarnier | 2007-08-14 14:18:03 +0200
mise a jour suite au plantage de svk (cheksum error) suite au crash du DD en juin

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