source: trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization/visTutor/exN03Vis10_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.5 KB
Line 
1<pre>
2#######################################################################
3#  MACRO FILE NAME: exN03Vis10.mac                                     #
4#                                                                     #
5#  AUTHOR(S): Guy Barrand                                             #
6#                                                                     #
7#  DATE: June 09, 2000                                                #
8#                                                                     #
9#  CONTENTS: A basic macro for demonstrating Inventor driver          #
10#                                                                     #
11#  USAGE:  % $G4BINDIR/exampleN03  visTutor/exN03Vis6.mac             #
12#                                                                     #
13#  REQUIRED PLATFORMS & SOFTWARES: Windows,                           #
14#                                  some Inventor (TGS, SGI, Coin)     #
15#                                                                     #
16#  ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION:               #
17#  (See geant4/source/visualization/README for details.)              #
18#                                                                     #
19#    G4VIS_BUILD_OIWIN32_DRIVER                                       #
20#    G4UI_BUILD_WIN32_SESSION                                         #
21#                                                                     #
22#  ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION:                #
23#  (See geant4/source/visualization/README for details.)              #
24#                                                                     #
25#    G4VIS_USE_OIWIN32                                                #
26#    G4UI_USE_WIN32                                                   #
27#                                                                     #
28#  ADDITIONAL NOTES:                                                  #
29#                                                                     #
30#######################################################################
31
32# Create "scene-0"
33/vis/scene/create
34
35# Invoke the OpenInventor driver
36/vis/sceneHandler/create OIWin32
37/vis/viewer/create
38
39# Add the world volume to the current scene
40/vis/scene/add/volume
41#/vis/scene/add/volume Layer
42# Name of the absorbers = name of their material (Lead) !
43#/vis/scene/add/volume Lead
44# Name of the gaps = name of their material (liquidArgon) !
45#/vis/scene/add/volume liquidArgon
46#/vis/scene/add/trajectories
47/tracking/storeTrajectory 1
48
49# Bird-eye view of events
50/vis/viewer/reset
51/vis/viewer/set/viewpointThetaPhi   45 45
52
53/vis/scene/notifyHandlers
54
55/control/verbose 2
56#######################################################################
57#   Controls on an Inventor examiner viewer are :                     #
58#  - in picking mode (cursor is the upper left arrow)                 #
59#   Ctrl + pick a volume : see daughters.                             #
60#   Shift + pick a volume : see mother.                               #
61#  - in viewing mode (cursor is the hand)                             #
62#   Left-button + pointer move : rotate.                              #
63#   Ctrl+Left-button + pointer move : pane.                           #
64#   Ctrl+Shift+Left-button + pointer move : scale.                    #
65#   Middle-button + pointer move : pane.                              #
66#                                                                     #
67#######################################################################
68
69/vis/viewer/update
70
71/run/beamOn 1
72</pre>
Note: See TracBrowser for help on using the repository browser.