Import Geant4 9.1.0 source tree
This commit is contained in:
@@ -0,0 +1,156 @@
|
||||
#######################################################################
|
||||
# MACRO FILE NAME: exN03Vis14.mac #
|
||||
# #
|
||||
# AUTHOR(S): Laurent Garnier #
|
||||
# #
|
||||
# DATE: July 13, 2007 #
|
||||
# #
|
||||
# CONTENTS: A basic macro for visualization of detector geometry #
|
||||
# #
|
||||
# USAGE: % gmake visclean #
|
||||
# % $G4BINDIR/exampleN03 #
|
||||
# Idle> /control/execute visTutor/exN03Vis14.mac #
|
||||
# #
|
||||
# REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, OpenGL,Qt #
|
||||
# DAWN (version 3.85 or after) #
|
||||
# gv (Ghostview), Tcl/Tk #
|
||||
# #
|
||||
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
|
||||
# (See geant4/source/visualization/README for details.) #
|
||||
# #
|
||||
# % setenv OGLHOME ... (e.g. /usr/X11R6) #
|
||||
# % setenv G4VIS_BUILD_OPENGLQT_DRIVER 1 #
|
||||
# #
|
||||
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
|
||||
# (See geant4/source/visualization/README for details.) #
|
||||
# #
|
||||
# % setenv G4VIS_USE_OPENGLQT 1 #
|
||||
# #
|
||||
# ADDITIONAL NOTES: #
|
||||
# The compound command "/vis/open <vis-driver-name>" #
|
||||
# is equivalent to the following set of commands: #
|
||||
# #
|
||||
# /vis/sceneHandler/create $1 #
|
||||
# /vis/viewer/create #
|
||||
# #
|
||||
# The compound command "/vis/drawVolume <physical-volume-name>" #
|
||||
# is equivalent to the following set of commands: #
|
||||
# #
|
||||
# /vis/scene/create #
|
||||
# /vis/scene/add/volume $1 #
|
||||
# /vis/sceneHandler/attach #
|
||||
# #
|
||||
#######################################################################
|
||||
|
||||
###########################################
|
||||
# Visualization of detector geometry
|
||||
# with the OGLSQT (OpenGL Stored QT) driver
|
||||
###########################################
|
||||
|
||||
# Invoke the OGLSQT driver
|
||||
/vis/open OGLSQT
|
||||
|
||||
# Bird's-eye view of the detector geometry
|
||||
#
|
||||
# viewpoint : (theta,phi) = (20*deg, 70*deg),
|
||||
# zoom factor: 0.8 of the full screen size
|
||||
#
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/set/viewpointThetaPhi 20 70
|
||||
/vis/viewer/zoom 0.8
|
||||
/vis/drawVolume
|
||||
|
||||
# The following two commands "flush"
|
||||
# the action of the current viewer.
|
||||
# They are required for the post-processing drivers
|
||||
# such as DAWNFILE, VRMLFILE, HepRep drivers, etc.
|
||||
# For OpenGL drivers, these commands are not required
|
||||
# but harmless even if they are described.
|
||||
/vis/viewer/flush
|
||||
|
||||
##########################################################
|
||||
# Visualization with the DAWNFILE driver
|
||||
#
|
||||
# * Each visualized view is saved to a file "g4_XX.eps"
|
||||
# with the "vectorized" PostScript format.
|
||||
#
|
||||
# * Set an environmental variable if you wish to
|
||||
# skip DAWN GUI:
|
||||
# % setenv G4DAWNFILE_VIEWER "dawn -d"
|
||||
##########################################################
|
||||
|
||||
# Invoke the DAWNFILE driver
|
||||
/vis/open DAWNFILE
|
||||
|
||||
# Bird's-eye view of a detector component (Absorber)
|
||||
# viewpoint : (theta,phi) = (35*deg, 35*deg),
|
||||
# zoom factor: 1.1 of the full screen size
|
||||
# coordinate axes:
|
||||
# x-axis:red, y-axis:green, z-axis:blue
|
||||
# origin: (0,0,0), length: 500
|
||||
# Scale: length = 10 cm, Orientation = z, color = red,
|
||||
# placing_algorithm = manual,
|
||||
# center = (-2.5 cm , -5 cm, 0 cm)
|
||||
#
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/zoom 1.1
|
||||
/vis/viewer/set/viewpointThetaPhi 35 35
|
||||
/vis/drawVolume Absorber
|
||||
/vis/scene/add/axes 0 0 0 500 mm
|
||||
/vis/scene/add/text 0 0 0 mm 40 -100 -140 Absorber
|
||||
/vis/scene/add/scale 10 cm z 1 0 0 manual -2.5 -5 0 cm
|
||||
|
||||
# "Flush the action of all the existing viewers.
|
||||
# Note: You should execute these commands, e.g.,
|
||||
# when the current scene is modified.
|
||||
/vis/scene/notifyHandlers
|
||||
/vis/viewer/update
|
||||
|
||||
# FOR FUTURE UPDATION
|
||||
#/vis/viewer/flushAll
|
||||
|
||||
# Bird's-eye view of a detector component (Gap)
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/zoom 1.1
|
||||
/vis/viewer/set/viewpointThetaPhi 35 35
|
||||
/vis/drawVolume Gap
|
||||
/vis/scene/add/axes 0 0 0 500 mm
|
||||
/vis/scene/add/text 0 0 0 mm 50 -100 -140 Gap
|
||||
/vis/scene/add/scale 10 cm z 1 0 0 manual -2.5 -5 0 cm
|
||||
|
||||
# "Flush the action of all the existing viewers.
|
||||
/vis/scene/notifyHandlers
|
||||
/vis/viewer/update
|
||||
|
||||
# FOR FUTURE UPDATION
|
||||
#/vis/viewer/flushAll
|
||||
|
||||
|
||||
# Bird's-eye view of the whole detector components (world)
|
||||
# * The argument "world" of the command
|
||||
# "/vis/scene/add/volume" is omittable.
|
||||
# * "/vis/viewer/set/culling false" makes the invisible
|
||||
# world volume visible.
|
||||
# (The invisibility of the world volume is set
|
||||
# in ExN03DetectorConstruction.cc.)
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/zoom 1.1
|
||||
/vis/viewer/set/viewpointThetaPhi 35 35
|
||||
/vis/viewer/set/culling global false
|
||||
/vis/drawVolume
|
||||
/vis/scene/add/axes 0 0 0 500 mm
|
||||
/vis/scene/add/text 0 0 0 mm 50 -100 -240 World
|
||||
/vis/scene/add/scale 10 cm x 1 0 0
|
||||
|
||||
# "Flush the action of all the existing viewers.
|
||||
/vis/scene/notifyHandlers
|
||||
/vis/viewer/update
|
||||
|
||||
# FOR FUTURE UPDATION
|
||||
#/vis/viewer/flushAll
|
||||
|
||||
|
||||
# Make the culling on for next visualization
|
||||
# Note: You may also use "/vis/viewer/reset"
|
||||
# for this initialization.
|
||||
/vis/viewer/set/culling global true
|
||||
@@ -0,0 +1,70 @@
|
||||
#######################################################################
|
||||
# MACRO FILE NAME: exN03Vis12.mac #
|
||||
# #
|
||||
# AUTHOR(S): Laurent Garnier #
|
||||
# #
|
||||
# DATE: July 01, 2007 #
|
||||
# #
|
||||
# CONTENTS: A basic macro for demonstrating Inventor driver #
|
||||
# #
|
||||
# USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis12.mac #
|
||||
# #
|
||||
# REQUIRED PLATFORMS & SOFTWARES: Unix, Motif, X-window, OpenGL,Qt #
|
||||
# HEPVis #
|
||||
# Inventor (TGS or SoFree) #
|
||||
# #
|
||||
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
|
||||
# (See geant4/source/visualization/README for details.) #
|
||||
# #
|
||||
# % setenv G4VIS_BUILD_OIX_DRIVER 1 #
|
||||
# #
|
||||
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
|
||||
# (See geant4/source/visualization/README for details.) #
|
||||
# #
|
||||
# % setenv G4VIS_USE_OIQT 1 #
|
||||
# #
|
||||
# ADDITIONAL NOTES: #
|
||||
# #
|
||||
#######################################################################
|
||||
|
||||
# Create "scene-0"
|
||||
/vis/scene/create
|
||||
|
||||
# Invoke the OpenInventor driver
|
||||
/vis/sceneHandler/create OGLIQT
|
||||
/vis/viewer/create
|
||||
|
||||
# Add the world volume to the current scene
|
||||
/vis/scene/add/volume
|
||||
#/vis/scene/add/volume Layer
|
||||
# Name of the absorbers = name of their material (Lead) !
|
||||
#/vis/scene/add/volume Lead
|
||||
# Name of the gaps = name of their material (liquidArgon) !
|
||||
#/vis/scene/add/volume liquidArgon
|
||||
#/vis/scene/add/trajectories
|
||||
/tracking/storeTrajectory 1
|
||||
|
||||
# Bird-eye view of events
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/set/viewpointThetaPhi 45 45
|
||||
|
||||
/vis/scene/notifyHandlers
|
||||
|
||||
/control/verbose 2
|
||||
#######################################################################
|
||||
# Controls on an Inventor examiner viewer are : #
|
||||
# - in picking mode (cursor is the upper left arrow) #
|
||||
# Ctrl + pick a volume : see daughters. #
|
||||
# Shift + pick a volume : see mother. #
|
||||
# - in viewing mode (cursor is the hand) #
|
||||
# Left-button + pointer move : rotate. #
|
||||
# Ctrl+Left-button + pointer move : pane. #
|
||||
# Ctrl+Shift+Left-button + pointer move : scale. #
|
||||
# Middle-button + pointer move : pane. #
|
||||
# #
|
||||
#######################################################################
|
||||
|
||||
/vis/viewer/update
|
||||
|
||||
/run/beamOn 1
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
/gui/addButton vis Vis2(OGLSX) "/control/execute visTutor/exN03Vis2.mac"
|
||||
/gui/addButton vis Vis3(OGLSX) "/control/execute visTutor/exN03Vis3.mac"
|
||||
/gui/addButton vis Vis4(OGLIX) "/control/execute visTutor/exN03Vis4.mac"
|
||||
/gui/addButton vis Vis15(OGLIQT) "/control/execute visTutor/exN03Vis15.mac"
|
||||
/gui/addButton vis Vis14(OGLSQT) "/control/execute visTutor/exN03Vis14.mac"
|
||||
/gui/addButton vis Vis5(OIX) "/control/execute visTutor/exN03Vis5.mac"
|
||||
/gui/addButton vis Vis6(VRML2FILE) "/control/execute visTutor/exN03Vis6.mac"
|
||||
/gui/addButton vis Vis7(DAWNFILE) "/control/execute visTutor/exN03Vis7.mac"
|
||||
|
||||
Reference in New Issue
Block a user