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

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

ajout de la doc

File size: 3.6 KB
Line 
1<pre>
2#######################################################################
3# MACRO FILE NAME: exN03Vis9.mac #
4# #
5# AUTHOR(S): Guy Barrand
6# #
7# DATE: #
8# Appril 08, 2004 #
9# #
10# CONTENTS: A simplest macro to demonstrate visualization of #
11# detector geometry and events #
12# #
13# USAGE: % gmake visclean #
14# % $G4BINDIR/exampleN03 #
15# Idle> /control/execute visTutor/exN03Vis9.mac #
16# #
17# REQUIRED PLATFORMS & SOFTWARES: Windows, OpenGL #
18# OPTIONAL : DAWN (version 3.85 or after) #
19# #
20# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
21# (See geant4/source/visualization/README for details.) #
22# #
23# G4VIS_BUILD_OPENGLWIN32_DRIVER #
24# (G4UI_BUILD_WIN32_SESSION) #
25# #
26# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
27# (See geant4/source/visualization/README for details.) #
28# #
29# G4VIS_USE_OPENGLWIN32 #
30# (G4UI_USE_WIN32) #
31# #
32# ADDITIONAL NOTES: #
33# The compound command "/vis/open <vis-driver-name>" #
34# is equivalent to the following set of commands: #
35# #
36# /vis/sceneHandler/create $1 #
37# /vis/viewer/create #
38# #
39# The compound command "/vis/drawVolume <physical-volume-name>" #
40# is equivalent to the following set of commands: #
41# #
42# /vis/scene/create #
43# /vis/scene/add/volume $1 #
44# /vis/sceneHandler/attach #
45# #
46#######################################################################
47
48##############################################
49# Visualization of detector geometry and trajectories
50# with the OGLIWin32 (OpenGL Immediate Windows) driver
51##############################################
52
53# Invoke the OGLIWin32 driver
54/vis/open OGLIWin32
55
56# Set camera
57/vis/viewer/reset
58/vis/viewer/set/viewpointThetaPhi 70 20
59
60# Create an empty scene and add the detector geometry to it
61/vis/drawVolume
62
63# Visualize events added to the current scene
64/tracking/storeTrajectory 1
65/run/beamOn 1
66</pre>
Note: See TracBrowser for help on using the repository browser.