source: trunk/examples/advanced/Rich/RichTbVis0.mac@ 1214

Last change on this file since 1214 was 807, checked in by garnier, 17 years ago

update

File size: 4.2 KB
RevLine 
[807]1#######################################################################
2# MACRO FILE NAME: RichTbVis0.mac #
3# #
4# AUTHOR(S): Satoshi Tanaka #
5# Mod SE 20-3-01 #
6# DATE: November 10, 1999 #
7# May 20, 2000 #
8# June 06, 2000 #
9# #
10# CONTENTS: A simplest macro to demonstrate visualization of #
11# detector geometry and events #
12# #
13# USAGE: #
14# Idle> /control/execute RichTbVis0.mac #
15# #
16# REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, OpenGL, #
17# DAWN (version 3.80 or after) #
18# gv (Ghostview), Tcl/Tk #
19# #
20# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
21# (See geant4/source/visualization/README for details.) #
22# #
23# % setenv OGLHOME ... (e.g. /usr/local) #
24# % setenv G4VIS_BUILD_OPENGLX_DRIVER 1 #
25# % setenv G4VIS_BUILD_DAWNFILE_DRIVER 1 #
26# #
27# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
28# (See geant4/source/visualization/README for details.) #
29# #
30# % setenv G4VIS_USE_OPENGLX 1 #
31# % setenv G4VIS_USE_DAWNFILE 1 #
32# #
33# Addional Notes: #
34# The compound command "/vis/open <graphics-system-name>" #
35# is equivalent to the following set of commands: #
36# #
37# /vis/sceneHandler/create $1 #
38# /vis/viewer/create #
39# #
40# The compound command "/vis/drawVolume <physical-volume-name>" #
41# is equivalent to the following set of commands: #
42# #
43# /vis/scene/create #
44# /vis/scene/add/volume $1 #
45# /vis/sceneHandler/attach #
46# /vis/viewer/refresh #
47# /vis/viewer/update #
48# #
49#######################################################################
50
51##############################################
52# Visualization of detector geometry
53# with the OGLIX (OpenGL Immediate X) driver
54##############################################
55
56# Invoke the OGLIX driver
57#/vis/open OGLIX
58
59# Set camera
60# Note: Camera setting should be done
61# for each scene handler.
62/vis/camera/reset
63/vis/scene/create
64#/vis/sceneHandler/create OGLIX
65#/vis/sceneHandler/create DAWNFILE
66#/vis/sceneHandler/create OGLSXm
67/vis/open DAWNFILE
68/vis/open OGLIX
69/vis/viewer/create
70/vis/scene/add/volume
71#/vis/camera/viewpoint 0 0
72
73/vis/camera/viewpoint -90 -90
74#/vis/camera/viewpoint 270 0
75/vis/camera/zoom 0.8
76#/vis/camera/spin 20 10
77
78# Visualize of the whole detector geometry
79/vis/drawVolume
80/vis/viewer/update
81
82
83
84
85
86
87
88
89
90
91
Note: See TracBrowser for help on using the repository browser.