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

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

ajout de la doc

File size: 3.4 KB
Line 
1<pre>
2#######################################################################
3# MACRO FILE NAME: exN03Vis5.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: Unix, Motif, X-window, OpenGL, #
14# HEPVis #
15# Inventor (TGS or SoFree) #
16# #
17# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
18# (See geant4/source/visualization/README for details.) #
19# #
20# % setenv G4VIS_BUILD_OIX_DRIVER 1 #
21# #
22# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
23# (See geant4/source/visualization/README for details.) #
24# #
25# % setenv G4VIS_USE_OIX 1 #
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 OIX
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 : pane. #
63# Ctrl+Shift+Left-button + pointer move : scale. #
64# Middle-button + pointer move : pane. #
65# #
66#######################################################################
67
68/vis/viewer/update
69
70/run/beamOn 1
71</pre>
Note: See TracBrowser for help on using the repository browser.