Changeset 1222 for trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization/visdrivers.xml
- Timestamp:
- Dec 16, 2009, 12:14:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization/visdrivers.xml
r1211 r1222 6 6 <!-- Updates for Qt and HepRApp: Joseph Perl, Dec-2008 --> 7 7 <!-- Added a reference: Laurent Garnier, Dec-2009 --> 8 <!-- Updates for gMocren and HepRepFile: --> 9 <!-- Joseph Perl, Dec-2009 --> 8 10 <!-- --> 9 11 <!-- ******************************************************** --> … … 64 66 </para></listitem> 65 67 <listitem><para> 68 <xref linkend="sect.VisDrv.Mocren" /> 69 gMocren 70 </para></listitem> 71 <listitem><para> 66 72 <xref linkend="sect.VisDrv.DetTree" /> 67 73 ASCIITree … … 310 316 </para> 311 317 <para> 312 More information scan be found here : <xref linkend="sect.VisCntCmmd.SvVwPs" />318 More information can be found here : <xref linkend="sect.VisCntCmmd.SvVwPs" /> 313 319 </para> 314 320 … … 364 370 <listitem><para> 365 371 <ulink url="http://geant4.slac.stanford.edu/Presentations/vis/G4OpenGLTutorial/G4OpenGLTutorial.html"> 366 Geant4 Visualization Tutorial372 http://geant4.slac.stanford.edu/Presentations/vis/G4OpenGLTutorial/G4OpenGLTutorial.html 367 373 </ulink> 368 374 using the OpenGL Graphics System … … 608 614 609 615 <para> 610 Several environment variables are available to override some of616 Several commands are available to override some of 611 617 HepRepFile's defaults 612 618 … … 614 620 <listitem><para> 615 621 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: 617 623 618 624 <informalexample> 619 625 <programlisting> 620 export G4HEPREPFILE_DIR=someOtherDir/someOtherSubDir626 /vis/heprep/setFileDir <someOtherDir/someOtherSubDir> 621 627 </programlisting> 622 628 </informalexample> … … 624 630 <listitem><para> 625 631 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: 627 633 628 634 <informalexample> 629 635 <programlisting> 630 export G4HEPREPFILE_NAME=myFileName636 /vis/heprep/setFileName <my_file_name> 631 637 </programlisting> 632 638 </informalexample> 633 639 634 which will produce files named myFileName0.heprep,635 myFileName1.heprep, etc.640 which will produce files named <my_file_name>0.heprep, 641 <my_file_name>1.heprep, etc. 636 642 </para></listitem> 637 643 <listitem><para> 638 644 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: 641 646 642 647 <informalexample> 643 648 <programlisting> 644 export G4HEPREPFILE_OVERWRITE=1649 /vis/heprep/setOverwrite true 645 650 </programlisting> 646 651 </informalexample> … … 661 666 from the HepRep file. But for very large files, if you know that 662 667 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: 665 669 666 670 <informalexample> 667 671 <programlisting> 668 export G4HEPREPFILE_CULL=1672 /vis/heprep/setCullInvisibles true 669 673 </programlisting> 670 674 </informalexample> … … 1473 1477 </programlisting> 1474 1478 </informalexample> 1479 </para> 1480 1481 </sect2> 1482 1483 1484 <!-- ******************* Section (Level#2) ****************** --> 1485 <sect2 id="sect.VisDrv.Mocren"> 1486 <title> 1487 gMocren 1488 </title> 1489 1490 <para> 1491 The gMocrenFile driver creates a gdd file 1492 suitable for viewing with the gMocren volume visualizer. 1493 gMocren, a sophisticated tool for rendering volume data, 1494 can show volume data such as Geant4 dose distrubutions 1495 overlaid with scoring grids, trajectories and detector geometry. 1496 gMocren provides additional advanced functionality such as transfer functions, colormap editing, 1497 image rotation, image scaling, and image clipping. 1498 </para> 1499 1500 <para> 1501 gMocren is further described at 1502 <ulink url="http://geant4.kek.jp/gMocren/"> 1503 http://geant4.kek.jp/gMocren/ 1504 </ulink>. 1505 At this link you will find the gMocren download, the user manual, a tutorial and some example gdd data files. 1506 </para> 1507 1508 <para> 1509 Please note that the gMocren file driver is currently considered a Beta release. 1510 Users are encouraged to try this driver, and feedback is welcome, but users should be aware that features of 1511 this driver may change in upcoming releases. 1512 </para> 1513 1514 <para> 1515 To send volume data from Geant4 scoring to a gMocren file, the user needs to tell the gMocren driver the 1516 name of the specific scoring volume that is to be displayed. 1517 For scoring done in C++, this is the name of the sensitive volume. 1518 For command-based scoring, this is the name of the scoring mesh. 1519 1520 <informalexample> 1521 <programlisting> 1522 /vis/gMocren/setVolumeName <volume_name> 1523 </programlisting> 1524 </informalexample> 1525 </para> 1526 1527 <para> 1528 The 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> 1547 To add detector geometry to this file: 1548 1549 <informalexample> 1550 <programlisting> 1551 /vis/viewer/flush 1552 </programlisting> 1553 </informalexample> 1554 </para> 1555 1556 <para> 1557 To 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> 1569 gMocrenFile will write a file named G4_00.gd to the current directory. 1570 Subsequent draws will create files named g4_01.gdd, g4_02.gdd, etc. 1571 An alternate output directory can be specified with an environment variable: 1572 1573 <informalexample> 1574 <programlisting> 1575 export G4GMocrenFile_DEST_DIR=<someOtherDir/someOtherSubDir/> 1576 </programlisting> 1577 </informalexample> 1578 </para> 1579 1580 <para> 1581 View the resuling gMocren files with the gMocren viewer, available from: 1582 <ulink url="http://geant4.kek.jp/gMocren/"> 1583 http://geant4.kek.jp/gMocren/ 1584 </ulink>. 1475 1585 </para> 1476 1586 … … 1597 1707 <para> 1598 1708 The 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 1709 within GAG, the Geant Adaptive GUI, from $G4INSTALL/environments/MOMO/MOMO.jar. 1710 GAG allows "folding/un-folding" a part of the geometry tree, using 1604 1711 the <emphasis>Tree Widget</emphasis> in Java: 1605 1712
Note: See TracChangeset
for help on using the changeset viewer.