Ignore:
Timestamp:
Jun 2, 2010, 3:31:28 PM (14 years ago)
Author:
garnier
Message:

change in NO3

Location:
trunk/examples/novice/N03/visTutor
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/novice/N03/visTutor/exN03Vis10.mac

    r1209 r1302  
    11#######################################################################
    2 #  MACRO FILE NAME: exN03Vis10.mac                                     #
     2#  MACRO FILE NAME: exN03Vis10.mac                                    #
    33#                                                                     #
    44#  AUTHOR(S): Guy Barrand                                             #
     
    88#  CONTENTS: A basic macro for demonstrating Inventor driver          #
    99#                                                                     #
    10 #  USAGE:  % $G4BINDIR/exampleN03  visTutor/exN03Vis6.mac             #
     10#  USAGE:  % $G4BINDIR/exampleN03  visTutor/exN03Vis10.mac            #
    1111#                                                                     #
    1212#  REQUIRED PLATFORMS & SOFTWARES: Windows,                           #
  • trunk/examples/novice/N03/visTutor/exN03Vis11.mac

    r1209 r1302  
    11#######################################################################
    2 #  MACRO FILE NAME: exN03Vis11.mac                                     #
     2#  MACRO FILE NAME: exN03Vis11.mac                                    #
    33#                                                                     #
    44#  AUTHOR(S): Guy Barrand dd                                          #
  • trunk/examples/novice/N03/visTutor/exN03Vis12.mac

    r1209 r1302  
    88#  CONTENTS: A basic macro for demonstrating time slicing             #
    99#                                                                     #
    10 #  USAGE:  % $G4BINDIR/exampleN03  visTutor/exN03Vis12.mac             #
     10#  USAGE:  % $G4BINDIR/exampleN03  visTutor/exN03Vis12.mac            #
    1111#                                                                     #
    1212#  REQUIRED PLATFORMS & SOFTWARES: Mac/Unix with X-Windows, OpenGL    #
  • trunk/examples/novice/N03/visTutor/exN03Vis13.mac

    r1209 r1302  
    88#  CONTENTS: Time development of an electrmagnetic shower.            #
    99#                                                                     #
    10 #  USAGE:  % $G4BINDIR/exampleN03  visTutor/exN03Vis12.mac             #
     10#  USAGE:  % $G4BINDIR/exampleN03  visTutor/exN03Vis13.mac            #
    1111#                                                                     #
    1212#  REQUIRED PLATFORMS & SOFTWARES: Mac/Unix with X-Windows, OpenGL    #
  • trunk/examples/novice/N03/visTutor/exN03Vis14.mac

    r893 r1302  
    1313#                                                                     #
    1414#  REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, OpenGL,Qt          #
    15 #                                  DAWN (version 3.85 or after)       #
    1615#                                  gv (Ghostview), Tcl/Tk             #
    1716#                                                                     #
     
    5150/vis/open OGLSQt
    5251
    53 # Bird's-eye view of the detector geometry
     52# Bird's-eye view of the whole detector components (world)
    5453#
    55 #  viewpoint  : (theta,phi) = (20*deg, 70*deg),
    56 #  zoom factor: 0.8 of the full screen size
    57 #
    58 /vis/viewer/reset
    59 /vis/viewer/set/viewpointThetaPhi  20 70
    60 /vis/viewer/zoom               0.8
    61 /vis/drawVolume
    62 
    63 # The following two commands "flush"
    64 #  the action of the current viewer.
    65 #  They are required for the post-processing drivers
    66 #  such as DAWNFILE, VRMLFILE, HepRep drivers, etc.
    67 #  For OpenGL drivers, these commands are not required
    68 #  but harmless even if they are described.
    69 /vis/viewer/flush
    70 
    71 ##########################################################
    72 # Visualization with the DAWNFILE driver
    73 #
    74 #  * Each visualized view is saved to a file "g4_XX.eps" 
    75 #    with the "vectorized" PostScript format.
    76 #
    77 #  * Set an environmental variable if you wish to
    78 #    skip DAWN GUI:
    79 #     % setenv G4DAWNFILE_VIEWER "dawn -d"
    80 ##########################################################
    81 
    82 # Invoke the DAWNFILE driver
    83 /vis/open DAWNFILE
    84 
    85 # Bird's-eye view of a detector component (Absorber)
    86 #  viewpoint  : (theta,phi) = (35*deg, 35*deg),
    87 #  zoom factor: 1.1 of the full screen size
    88 #  coordinate axes:
     54#   viewpoint  : (theta,phi) = (35*deg, 35*deg),
     55#   zoom factor: 5.0 of the full screen size
     56#   coordinate axes:
    8957#     x-axis:red,  y-axis:green,  z-axis:blue
    9058#     origin: (0,0,0),  length: 500
    91 Scale: length = 10 cm, Orientation = z, color = red,
     59 Scale: length = 10 cm, Orientation = z, color = red,
    9260#         placing_algorithm = manual,
    9361#         center = (-2.5 cm , -5 cm, 0 cm)
    9462#
    9563/vis/viewer/reset
    96 /vis/viewer/zoom               1.1
     64/vis/viewer/zoom               5.0
    9765/vis/viewer/set/viewpointThetaPhi  35 35
    98 /vis/drawVolume           Absorber
     66/vis/drawVolume
    9967/vis/scene/add/axes      0 0 0 500 mm
    100 /vis/scene/add/text      0 0 0 mm  40 -100 -140   Absorber
     68/vis/scene/add/text      0 0 0 mm 50 -100 -240   World
    10169/vis/scene/add/scale     10 cm z 1 0 0 manual -2.5 -5 0  cm
     70#/vis/scene/add/scale     10 cm x 1 0 0
    10271
    103 # "Flush the action of all the existing viewers.
    104 #   Note: You should execute these commands, e.g., 
    105 #         when the current scene is modified.
     72# Bird's-eye view of a detector component (Absorber)
     73#
     74#/vis/viewer/reset
     75#/vis/viewer/zoom               1.1
     76#/vis/viewer/set/viewpointThetaPhi  35 35
     77#/vis/drawVolume           Absorber
     78#/vis/scene/add/axes      0 0 0 500 mm
     79#/vis/scene/add/text      0 0 0 mm  40 -100 -140   Absorber
     80#/vis/scene/add/scale     10 cm z 1 0 0 manual -2.5 -5 0  cm
     81
     82# Bird's-eye view of a detector component (Gap)
     83#
     84#/vis/viewer/reset
     85#/vis/viewer/zoom               1.1
     86#/vis/viewer/set/viewpointThetaPhi  35 35
     87#/vis/drawVolume                Gap
     88#/vis/scene/add/axes      0 0 0 500 mm
     89#/vis/scene/add/text       0 0 0 mm  50 -100 -140   Gap
     90#/vis/scene/add/scale      10 cm z 1 0 0 manual -2.5 -5  0 cm
     91
     92# Commands for setting up drawing of tracks ...
     93#
     94/vis/scene/add/trajectories smooth
     95/vis/modeling/trajectories/create/drawByCharge
     96/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
     97/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
     98/vis/scene/endOfEventAction accumulate
     99
     100# Flush the action of all the existing viewers
     101#
    106102/vis/scene/notifyHandlers
    107103/vis/viewer/update
    108104
    109 # FOR FUTURE UPDATION
    110 #/vis/viewer/flushAll
    111 
    112 # Bird's-eye view of a detector component (Gap)
    113 /vis/viewer/reset
    114 /vis/viewer/zoom               1.1
    115 /vis/viewer/set/viewpointThetaPhi  35 35
    116 /vis/drawVolume                Gap
    117 /vis/scene/add/axes       0 0 0 500 mm
    118 /vis/scene/add/text       0 0 0 mm  50 -100 -140   Gap
    119 /vis/scene/add/scale      10 cm z 1 0 0 manual -2.5 -5  0 cm
    120 
    121 # "Flush the action of all the existing viewers.
    122 /vis/scene/notifyHandlers
    123 /vis/viewer/update
    124 
    125 # FOR FUTURE UPDATION
    126 #/vis/viewer/flushAll
    127 
    128 
    129 # Bird's-eye view of the whole detector components (world)
    130 #  * The argument "world" of the command
    131 #    "/vis/scene/add/volume" is omittable.
    132 #  * "/vis/viewer/set/culling false" makes the invisible
    133 #    world volume visible.
    134 #    (The invisibility of the world volume is set
    135 #     in ExN03DetectorConstruction.cc.)
    136 /vis/viewer/reset
    137 /vis/viewer/zoom               1.1
    138 /vis/viewer/set/viewpointThetaPhi  35 35
    139 /vis/viewer/set/culling         global false
    140 /vis/drawVolume
    141 /vis/scene/add/axes      0 0 0 500 mm
    142 /vis/scene/add/text      0 0 0 mm 50 -100 -240   World
    143 /vis/scene/add/scale     10 cm x 1 0 0
    144 
    145 # "Flush the action of all the existing viewers.
    146 /vis/scene/notifyHandlers
    147 /vis/viewer/update
    148 
    149 # FOR FUTURE UPDATION
    150 #/vis/viewer/flushAll
    151 
    152 
    153105# Make the culling on for next visualization
    154 #  Note: You may also use "/vis/viewer/reset"
    155 #        for this initialization.
     106# Note: You may also use "/vis/viewer/reset" for this initialization
     107#
    156108/vis/viewer/set/culling       global true
  • trunk/examples/novice/N03/visTutor/exN03Vis15.mac

    r1234 r1302  
    11#######################################################################
    2 #  MACRO FILE NAME: exN03Vis12.mac                                     #
     2#  MACRO FILE NAME: exN03Vis15.mac                                    #
    33#                                                                     #
    44#  AUTHOR(S): Laurent Garnier                                         #
     
    88#  CONTENTS: A basic macro for demonstrating Inventor driver          #
    99#                                                                     #
    10 #  USAGE:  % $G4BINDIR/exampleN03  visTutor/exN03Vis12.mac            #
     10#  USAGE:  % $G4BINDIR/exampleN03  visTutor/exN03Vis15.mac            #
    1111#                                                                     #
    1212#  REQUIRED PLATFORMS & SOFTWARES: Unix, Motif, X-window, OpenGL ,Qt  #
     
    1515#  (See geant4/source/visualization/README for details.)              #
    1616#                                                                     #
    17 #    % setenv G4VIS_BUILD_OGLQT
     17#    % setenv G4VIS_BUILD_OGLQT 1                                     #
    1818#                                                                     #
    1919#  ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION:                #
    2020#  (See geant4/source/visualization/README for details.)              #
    2121#                                                                     #
    22 #    % setenv G4VIS_USE_OGLQT               1                          #
     22#    % setenv G4VIS_USE_OGLQT 1                                       #
    2323#                                                                     #
    2424#  ADDITIONAL NOTES:                                                  #
     
    2727
    2828# Create "scene-0"
     29#
    2930/vis/scene/create
    3031
    3132# Invoke the Qt driver
     33#
    3234/vis/sceneHandler/create OGLSQt
    3335/vis/viewer/create
    3436
    3537# Add the world volume to the current scene
     38#
    3639/vis/scene/add/volume
     40
    3741#/vis/scene/add/volume Layer
    3842# Name of the absorbers = name of their material (Lead) !
     
    4044# Name of the gaps = name of their material (liquidArgon) !
    4145#/vis/scene/add/volume liquidArgon
    42 #/vis/scene/add/trajectories
     46
    4347/tracking/storeTrajectory 1
    4448
    4549# Bird-eye view of events
     50#
    4651/vis/viewer/reset
    4752/vis/viewer/set/viewpointThetaPhi 45 45
    4853
    4954/vis/scene/notifyHandlers
     55
     56/vis/scene/add/trajectories smooth
     57/vis/modeling/trajectories/create/drawByCharge
     58/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
     59/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
     60/vis/scene/endOfEventAction accumulate
    5061
    5162/control/verbose 2
  • trunk/examples/novice/N03/visTutor/exN03Vis5.mac

    r1209 r1302  
    88#  CONTENTS: A basic macro for demonstrating Inventor driver          #
    99#                                                                     #
    10 #  USAGE:  % $G4BINDIR/exampleN03  visTutor/exN03Vis6.mac             #
     10#  USAGE:  % $G4BINDIR/exampleN03  visTutor/exN03Vis5.mac             #
    1111#                                                                     #
    1212#  REQUIRED PLATFORMS & SOFTWARES: Unix, Motif, X-window, OpenGL,     #
  • trunk/examples/novice/N03/visTutor/exN03Vis6.mac

    r1209 r1302  
    1515#  USAGE:  % gmake visclean                                           #
    1616#          % $G4BINDIR/exampleN03                                     #
    17 #          Idle> /control/execute visTutor/exN03Vis7.mac              #
     17#          Idle> /control/execute visTutor/exN03Vis6.mac              #
    1818#                                                                     #
    1919#  REQUIRED PLATFORMS & SOFTWARES: Unix, X-window,                    #
     
    2828#    * Unnecessary                                                    #
    2929#                                                                     #
    30 RECOMMENDED ENVIRONMENTAL VARIABLES FOR VISUALIZATION:             #
     30OPTIONAL ENVIRONMENTAL VARIABLES FOR VISUALIZATION:                #
    3131#                                                                     #
    32 #    % setenv G4VRMLFILE_VIEWER        vrmlview                       #
    33 #     ( The default value is "NONE".)                                 #
    34 #                                                                     #
    35 #  ADDITIONAL NOTES:                                                  #
    36 #   The VRML-file viewer "vrmlview" is obtainable from the following  #
    37 #   Web site:                                                         #
    38 #      http://www.sim.no/downloads.html                               #
     32#    % setenv G4VRMLFILE_VIEWER vrmlview                              #
     33#     ( Example for 'vrmlview'. The default value is "NONE".)         #
    3934#                                                                     #
    4035#######################################################################
  • trunk/examples/novice/N03/visTutor/exN03Vis7.mac

    r1209 r1302  
    1313#          % make visclean                                            #
    1414#          % $G4BINDIR/exampleN03                                     #
    15 #          Idle> /control/execute visTutor/exN03Vis8.mac              #
     15#          Idle> /control/execute visTutor/exN03Vis7.mac              #
    1616#          Idle> exit                                                 #
    1717#          % gv g4_00.eps &                                           #
     
    3131#                                                                     #
    3232#    * Unnecessary                                                    #
    33 #                                                                     #
    34 #  ADDITIONAL NOTES:                                                  #
    3533#                                                                     #
    3634#######################################################################
  • trunk/examples/novice/N03/visTutor/exN03Vis8.mac

    r1209 r1302  
    1919#          % gmake visclean                                           #
    2020#          % $G4BINDIR/exampleN03                                     #
    21 #          Idle> /control/execute visTutor/exN03Vis9.mac              #
     21#          Idle> /control/execute visTutor/exN03Vis8.mac              #
    2222#          Idle> exit                                                 #
    2323#          % gv g4_00.eps                                             #
  • trunk/examples/novice/N03/visTutor/exN03Vis9.mac

    r474 r1302  
    22#  MACRO FILE NAME: exN03Vis9.mac                                     #
    33#                                                                     #
    4 #  AUTHOR(S): Guy Barrand
     4#  AUTHOR(S): Guy Barrand                                             #
    55#                                                                     #
    66#  DATE:                                                              #
    7 #        Appril   08, 2004                                            #
     7#        April   08, 2004                                             #
    88#                                                                     #
    99#  CONTENTS: A simplest macro to demonstrate visualization of         #
  • trunk/examples/novice/N03/visTutor/gui.mac

    r1209 r1302  
    3333/gui/addButton vis Vis3(OGLSX) "/control/execute visTutor/exN03Vis3.mac"
    3434/gui/addButton vis Vis4(OGLIX) "/control/execute visTutor/exN03Vis4.mac"
    35 /gui/addButton vis Vis15(OGLIQt) "/control/execute visTutor/exN03Vis15.mac"
    36 /gui/addButton vis Vis14(OGLSQt) "/control/execute visTutor/exN03Vis14.mac"
    3735/gui/addButton vis Vis5(OIX)   "/control/execute visTutor/exN03Vis5.mac"
    3836/gui/addButton vis Vis6(VRML2FILE) "/control/execute visTutor/exN03Vis6.mac"
     
    4240/gui/addButton vis Vis10(OIWin32) "/control/execute visTutor/exN03Vis10.mac"
    4341/gui/addButton vis Vis11(OGLSXm) "/control/execute visTutor/exN03Vis11.mac"
     42/gui/addButton vis Vis12(OGLSX) "/control/execute visTutor/exN03Vis12.mac"
     43/gui/addButton vis Vis13(OGLSX) "/control/execute visTutor/exN03Vis13.mac"
     44/gui/addButton vis Vis14(OGLSQt) "/control/execute visTutor/exN03Vis14.mac"
     45/gui/addButton vis Vis15(OGLSQt) "/control/execute visTutor/exN03Vis15.mac"
    4446#
    4547# Viewer menu :
Note: See TracChangeset for help on using the changeset viewer.