source: trunk/source/interfaces/visTutor/exN03Vis12.mac@ 876

Last change on this file since 876 was 571, checked in by garnier, 18 years ago

r581@mac-90108: laurentgarnier | 2007-08-17 17:30:26 +0200
deplacement de frame

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