Ignore:
Timestamp:
Dec 16, 2009, 12:14:47 PM (15 years ago)
Author:
garnier
Message:

CVS update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization/visdrivers.xml

    r1211 r1222  
    66<!--    Updates for Qt and HepRApp: Joseph Perl, Dec-2008     -->
    77<!--    Added a reference: Laurent Garnier, Dec-2009          -->
     8<!--    Updates for gMocren and HepRepFile:                   -->
     9<!--                            Joseph Perl, Dec-2009         -->
    810<!--                                                          -->
    911<!-- ******************************************************** -->
     
    6466  </para></listitem>
    6567  <listitem><para>
     68    <xref linkend="sect.VisDrv.Mocren" />
     69    gMocren
     70  </para></listitem>
     71  <listitem><para>
    6672    <xref linkend="sect.VisDrv.DetTree" />
    6773    ASCIITree
     
    310316</para>
    311317<para>
    312 More informations can be found here :  <xref linkend="sect.VisCntCmmd.SvVwPs" />
     318More information can be found here :  <xref linkend="sect.VisCntCmmd.SvVwPs" />
    313319</para>
    314320
     
    364370  <listitem><para>
    365371    <ulink url="http://geant4.slac.stanford.edu/Presentations/vis/G4OpenGLTutorial/G4OpenGLTutorial.html">
    366     Geant4 Visualization Tutorial
     372    http://geant4.slac.stanford.edu/Presentations/vis/G4OpenGLTutorial/G4OpenGLTutorial.html
    367373    </ulink>
    368374    using the OpenGL Graphics System
     
    608614
    609615<para>
    610 Several environment variables are available to override some of
     616Several commands are available to override some of
    611617HepRepFile's defaults
    612618
     
    614620  <listitem><para>
    615621    You can specify a different directory for the heprep output
    616     files by setting the environment variable G4HEPREPFILE_DIR, as in:
     622    files by using the setFileDir command, as in:
    617623
    618624    <informalexample>
    619625    <programlisting>
    620      export G4HEPREPFILE_DIR=someOtherDir/someOtherSubDir
     626    /vis/heprep/setFileDir &lt;someOtherDir/someOtherSubDir&gt;
    621627    </programlisting>
    622628    </informalexample>
     
    624630  <listitem><para>
    625631    You can specify a different file name (the part before the
    626     number) by setting the environment variable G4HEPREPFILE_NAME, as in:
     632    number) by using the setFileName command, as in:
    627633
    628634    <informalexample>
    629635    <programlisting>
    630      export G4HEPREPFILE_NAME=myFileName
     636    /vis/heprep/setFileName &lt;my_file_name&gt;
    631637    </programlisting>
    632638    </informalexample>
    633639
    634     which will produce files named myFileName0.heprep,
    635     myFileName1.heprep, etc.
     640    which will produce files named &lt;my_file_name&gt;0.heprep,
     641    &lt;my_file_name&gt;1.heprep, etc.
    636642  </para></listitem>
    637643  <listitem><para>
    638644    You can specify that each file should overwrite the previous
    639     file (always rewriting to the same file name) by setting the
    640     environment variable G4HEPREPFILE_OVERWRITE, as in:
     645    file (always rewriting to the same file name) by using the setOverwrite command, as in:
    641646
    642647    <informalexample>
    643648    <programlisting>
    644      export G4HEPREPFILE_OVERWRITE=1
     649    /vis/heprep/setOverwrite true
    645650    </programlisting>
    646651    </informalexample>
     
    661666    from the HepRep file. But for very large files, if you know that
    662667    you will never want to make these parts visible, you can choose to
    663     have them left entirely out of the file. Set the environment
    664     variable G4HEPREPFILE_CULL, as in:
     668    have them left entirely out of the file. Use the /vis/heprep/setCullInvisibles command, as in:
    665669
    666670    <informalexample>
    667671    <programlisting>
    668      export G4HEPREPFILE_CULL=1
     672    /vis/heprep/setCullInvisibles true
    669673    </programlisting>
    670674    </informalexample>
     
    14731477</programlisting>
    14741478</informalexample>
     1479</para>
     1480
     1481</sect2>
     1482
     1483
     1484<!-- ******************* Section (Level#2) ****************** -->
     1485<sect2 id="sect.VisDrv.Mocren">
     1486<title>
     1487gMocren
     1488</title>
     1489
     1490<para>
     1491The gMocrenFile driver creates a gdd file
     1492suitable for viewing with the gMocren volume visualizer.
     1493gMocren, a sophisticated tool for rendering volume data,
     1494can show volume data such as Geant4 dose distrubutions
     1495overlaid with scoring grids, trajectories and detector geometry.
     1496gMocren provides additional advanced functionality such as transfer functions, colormap editing,
     1497image rotation, image scaling, and image clipping.
     1498</para>
     1499
     1500<para>
     1501gMocren is further described at
     1502<ulink url="http://geant4.kek.jp/gMocren/">
     1503http://geant4.kek.jp/gMocren/
     1504</ulink>.
     1505At this link you will find the gMocren download, the user manual, a tutorial and some example gdd data files.
     1506</para>
     1507
     1508<para>
     1509Please note that the gMocren file driver is currently considered a Beta release.
     1510Users are encouraged to try this driver, and feedback is welcome, but users should be aware that features of
     1511this driver may change in upcoming releases.
     1512</para>
     1513
     1514<para>
     1515To send volume data from Geant4 scoring to a gMocren file, the user needs to tell the gMocren driver the
     1516name of the specific scoring volume that is to be displayed.
     1517For scoring done in C++, this is the name of the sensitive volume.
     1518For command-based scoring, this is the name of the scoring mesh.
     1519
     1520<informalexample>
     1521<programlisting>
     1522     /vis/gMocren/setVolumeName &lt;volume_name&gt;
     1523</programlisting>
     1524</informalexample>
     1525</para>
     1526
     1527<para>
     1528The following is an example of the minimum command sequence to send command-based scoring data to the a gMocren file:
     1529
     1530<informalexample>
     1531<programlisting>
     1532    # an example of a command-based scoring definition
     1533    /score/create/boxMesh scoringMesh       # name of the scoring mesh
     1534    /score/mesh/boxSize 10. 10. 10. cm      # dimension of the scoring mesh
     1535    /score/mesh/nBin 10 10 10               # number of divisions of the scoring mesh
     1536    /score/quantity/energyDeposit eDep      # quantity to be scored
     1537    /score/close
     1538    # configuration of the gMocren-file driver
     1539    /vis/scene/create
     1540    /vis/open gMocrenFile
     1541    /vis/gMocren/setVolumeName scoringMesh
     1542</programlisting>
     1543</informalexample>
     1544</para>
     1545
     1546<para>
     1547To add detector geometry to this file:
     1548
     1549<informalexample>
     1550<programlisting>
     1551    /vis/viewer/flush
     1552</programlisting>
     1553</informalexample>
     1554</para>
     1555
     1556<para>
     1557To add trajectories and primitive scorer hits to this file:
     1558
     1559<informalexample>
     1560<programlisting>
     1561    /vis/scene/add/trajectories
     1562    /vis/scene/add/pshits
     1563    /run/beamOn 1
     1564</programlisting>
     1565</informalexample>
     1566</para>
     1567
     1568<para>
     1569gMocrenFile will write a file named G4_00.gd to the current directory.
     1570Subsequent draws will create files named g4_01.gdd, g4_02.gdd, etc.
     1571An alternate output directory can be specified with an environment variable:
     1572
     1573<informalexample>
     1574<programlisting>
     1575    export G4GMocrenFile_DEST_DIR=&lt;someOtherDir/someOtherSubDir/&gt;
     1576</programlisting>
     1577</informalexample>
     1578</para>
     1579
     1580<para>
     1581View the resuling gMocren files with the gMocren viewer, available from:
     1582<ulink url="http://geant4.kek.jp/gMocren/">
     1583http://geant4.kek.jp/gMocren/
     1584</ulink>.
    14751585</para>
    14761586
     
    15971707<para>
    15981708The GAGTree driver provides a listing of the detector geometry tree
    1599 within GAG, the Geant Adaptive GUI, (
    1600 <ulink url="http://erpc1.naruto-u.ac.jp/~geant4">
    1601 http://erpc1.naruto-u.ac.jp/~geant4
    1602 </ulink>
    1603 ). GAG allows "folding/un-folding" a part of the geometry tree, using
     1709within GAG, the Geant Adaptive GUI, from $G4INSTALL/environments/MOMO/MOMO.jar.
     1710GAG allows "folding/un-folding" a part of the geometry tree, using
    16041711the <emphasis>Tree Widget</emphasis> in Java:
    16051712
Note: See TracChangeset for help on using the changeset viewer.