source: trunk/examples/novice/N03/visTutor/exN03Vis10.mac @ 1209

Last change on this file since 1209 was 1209, checked in by garnier, 15 years ago

CVS update

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