source: trunk/geant4/interfaces/visTutor/exN03Vis12.mac@ 689

Last change on this file since 689 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
RevLine 
[562]1#######################################################################
[571]2# MACRO FILE NAME: exN03Vis12.mac #
[562]3# #
[571]4# AUTHOR(S): Laurent Garnier #
[562]5# #
[571]6# DATE: July 01, 2007 #
[562]7# #
[571]8# CONTENTS: A basic macro for demonstrating Inventor driver #
[562]9# #
[571]10# USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis12.mac #
[562]11# #
[571]12# REQUIRED PLATFORMS & SOFTWARES: Unix, Motif, X-window, OpenGL,Qt #
13# HEPVis #
14# Inventor (TGS or SoFree) #
[562]15# #
[571]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# #
[562]26# ADDITIONAL NOTES: #
27# #
28#######################################################################
29
[571]30# Create "scene-0"
31/vis/scene/create
[562]32
[571]33# Invoke the OpenInventor driver
34/vis/sceneHandler/create OGLIQT
35/vis/viewer/create
[562]36
[571]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
[562]46
[571]47# Bird-eye view of events
48/vis/viewer/reset
49/vis/viewer/set/viewpointThetaPhi 45 45
50
51/vis/scene/notifyHandlers
52
[562]53/control/verbose 2
[571]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#######################################################################
[562]66
[571]67/vis/viewer/update
[562]68
[571]69/run/beamOn 1
[562]70
Note: See TracBrowser for help on using the repository browser.