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

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

ajout de la doc

File size: 3.8 KB
Line 
1<pre>
2#######################################################################
3# MACRO FILE NAME: exN03Vis6.mac #
4# #
5# AUTHOR(S): Satoshi Tanaka #
6# #
7# DATE: #
8# Nov 07, 2001 #
9# Sept 08-09, 2001 (at Hebden Bridge, UK) #
10# June 20, 2001 #
11# November 26, 2000 #
12# October 17, 2000 #
13# #
14# CONTENTS: A macro to demonstrate the VRMLFILE driver #
15# #
16# USAGE: % gmake visclean #
17# % $G4BINDIR/exampleN03 #
18# Idle> /control/execute visTutor/exN03Vis7.mac #
19# #
20# REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, #
21# VRML viewer (e.g. VRMLview) #
22# #
23# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
24# (See geant4/source/visualization/README for details.) #
25# * Unnecessary #
26# #
27# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
28# (See geant4/source/visualization/README for details.) #
29# * Unnecessary #
30# #
31# RECOMMENDED ENVIRONMENTAL VARIABLES FOR VISUALIZATION: #
32# #
33# % setenv G4VRMLFILE_VIEWER vrmlview #
34# ( The default value is "NONE".) #
35# #
36# ADDITIONAL NOTES: #
37# The VRML-file viewer "vrmlview" is obtainable from the following #
38# Web site: #
39# http://www.sim.no/downloads.html #
40# #
41#######################################################################
42
43###################################################
44# Visualization of detector geometry and events
45# with the VRML2FILE driver.
46###################################################
47
48# Store particle trajactories for visualization
49/tracking/storeTrajectory 1
50
51# Invoke the VRML2FILE driver
52# Note: The VRML1FILE driver generates VRML 1.0 format files.
53# The VRML2FILE driver generates VRML 2.0 format files.
54/vis/open VRML2FILE
55
56# Create an empty scene and add the detector geometry to it
57/vis/drawVolume
58
59# Visualize 3 events in the wireframe mode
60# Note: The command /vis/scene/add/trajectories
61# is not necessary in exampleN03,
62# since the C++ method DrawTrajectory() is
63# described in the event action.
64# Note: "/vis/viewer/set/style wireframe" means
65# "half-transparent" in the VRML2FILE driver.
66# It is a convention only for this driver.
67#/vis/scene/add/trajectories
68/vis/viewer/set/style wireframe
69/run/beamOn 3
70</pre>
Note: See TracBrowser for help on using the repository browser.