Changeset 921 for trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization
- Timestamp:
- Feb 16, 2009, 10:14:30 AM (16 years ago)
- Location:
- trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization/commandcontrol.xml
r905 r921 3 3 <!-- [History] --> 4 4 <!-- Converted to DocBook: Katsuya Amako, Aug-2006 --> 5 <!-- Added Qt Info: Laurent Garnier, Dec-2008 --> 5 6 <!-- --> 6 7 <!-- ******************************************************** --> … … 373 374 </para> 374 375 </para></listitem> 376 <listitem><para> 377 <emphasis role="bold">Additional note 2</emphasis> 378 <para> 379 Events may be kept and reviewed at end of run with 380 <programlisting> 381 Idle> /vis/reviewKeptEvents 382 </programlisting> 383 Keep all events with 384 <programlisting> 385 Idle> /vis/scene/endOfEventAction accumulate [maxNumber] 386 </programlisting> 387 (see 388 <xref linkend="sect.VisCntCmmd.EndEvtRun" />) 389 </para><para> 390 or keep some chosen subset with 391 <programlisting> 392 G4EventManager::GetEventManager()->KeepTheCurrentEvent(); 393 </programlisting> 394 as described in 395 <xref linkend="programlist_OptUAct_1" />. 396 </para><para> 397 To suppress drawing during a run 398 <programlisting> 399 Idle> /vis/disable 400 Idle> /run/beamOn 10000 401 </programlisting> 402 then at end of run 403 <programlisting> 404 Idle> /vis/enable 405 Idle> /vis/reviewKeptEvents 406 </programlisting> 407 </para> 408 </para></listitem> 375 409 </itemizedlist> 376 410 … … 650 684 End of Event Action and End of Run Action: 651 685 <literal>/vis/viewer/endOfEventAction</literal> and 652 <literal>/vis/viewer/endOf EventAction</literal> commands686 <literal>/vis/viewer/endOfRunAction</literal> commands 653 687 </title> 654 688 … … 845 879 846 880 <para> 847 The WIRED3HepRep Browser and WIRED4 JAS Plug-In can generate a881 The HepRApp HepRep Browser and WIRED4 JAS Plug-In can generate a 848 882 wide variety of bitmap and vector output formats including 849 883 PostScript and PDF. … … 1225 1259 </para> 1226 1260 </para></listitem> 1227 <listitem><para> 1228 <ulink url="./Visualization/visTutor/exN03Vis15_mac.html"> 1229 exN03Vis15.mac:</ulink> 1230 <para> 1231 A basic macro for visualization of detector geometry and events 1232 using Qt. 1233 </para> 1234 </para></listitem> 1235 <listitem><para> 1261 <listitem><para> 1236 1262 <ulink url="./Visualization/visTutor/exN03Tree0_mac.html"> 1237 1263 exN03Tree0.mac:</ulink> -
trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization/introduction.xml
r905 r921 6 6 <!-- Proof read by: Joe Chuma, 5-Jul-1999 --> 7 7 <!-- Converted to DocBook: Katsuya Amako, Aug-2006 --> 8 <!-- Added Qt Info: Laurent Garnier, Dec-2008 --> 9 <!-- Updates for Qt and HepRApp: Joseph Perl, Dec-2008 --> 8 10 <!-- --> 9 11 <!-- ******************************************************** --> … … 47 49 graphics systems use a graphics library compiled with Geant4, such 48 50 as OpenGL, Qt, while others involve a separate application, such as 49 WIREDor DAWN.51 HepRApp or DAWN. 50 52 </para> 51 53 … … 123 125 </para></listitem> 124 126 <listitem><para> 125 Uses GL libraries that are already included on most Linux 126 systems (plus some Windows availability) 127 Requires addition of GL libraries that are freely avialable for all operating systems (and pre-installed on many) 127 128 </para></listitem> 128 129 <listitem><para> … … 137 138 </para></listitem> 138 139 <listitem><para> 139 Limited printing ability (pixel graphics, not vectorgraphics)140 Print to EPS (vector and pixel graphics) 140 141 </para></listitem> 141 142 </itemizedlist> … … 148 149 </para></listitem> 149 150 <listitem><para> 150 Uses Qt and GL libraries that are already included on most Linux151 systems (plus some Windows availability)151 Requies addition of Qt and GL libraries that are freely available on most operating 152 systems 152 153 </para></listitem> 153 154 <listitem><para> … … 168 169 </para></listitem> 169 170 <listitem><para> 170 Make movies interactively171 Easy interface to make movies 171 172 </para></listitem> 172 173 </itemizedlist> … … 205 206 </para></listitem> 206 207 <listitem><para> 207 HepRep/WIRED 208 <itemizedlist spacing="compact"> 209 <listitem><para> 210 Create a file to view in the WIRED3 HepRep Browser or the 211 WIRED4 JAS Plugin 212 </para></listitem> 213 <listitem><para> 214 Requires WIRED browser (a Java application easily to install on 215 all operating systems) 208 HepRep 209 <itemizedlist spacing="compact"> 210 <listitem><para> 211 Create a file to view in a HepRep browser such as HepRApp, 212 FRED or WIRED4 213 </para></listitem> 214 <listitem><para> 215 Requires a HepRep browser (above options work on any operating system) 216 216 </para></listitem> 217 217 <listitem><para> … … 348 348 <listitem><para> 349 349 If you want very responsive photorealistic graphics plus more 350 interactivity (and have the OpenInventor libraries installed)351 <itemizedlist spacing="compact"> 352 <listitem><para> 353 OpenInventor is a good solution350 interactivity (and have the OpenInventor or Qt libraries installed) 351 <itemizedlist spacing="compact"> 352 <listitem><para> 353 OpenInventor or Qt are good solutions 354 354 </para></listitem> 355 355 </itemizedlist> … … 370 370 <itemizedlist spacing="compact"> 371 371 <listitem><para> 372 HepRep /WIREDwill meet your needs372 HepRep will meet your needs 373 373 </para></listitem> 374 374 </itemizedlist> … … 473 473 <itemizedlist spacing="compact"> 474 474 <listitem><para> 475 HepRep /WIRED475 HepRep 476 476 </para></listitem> 477 477 <listitem><para> … … 527 527 <xref linkend="sect.VisPlylMrkTxt" /> 528 528 Polylines, Markers and Text 529 </para></listitem> 530 <listitem><para> 531 <xref linkend="sect.MkMovie" /> 532 Making a Movie 529 533 </para></listitem> 530 534 </itemizedlist> -
trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization/makingamovie.xml
r904 r921 3 3 <!-- [History] --> 4 4 <!-- Converted to DocBook: Katsuya Amako, Aug-2006 --> 5 <!-- Updates for Qt: Laurent Garnier, Dec-2008 --> 5 6 <!-- --> 6 7 <!-- ******************************************************** --> … … 29 30 drivers currently capable of producing picture files are: 30 31 32 <ulink url="http://bmrc.berkeley.edu/frame/research/mpeg/mpeg_encode.html">More informations about MPEG encoder</ulink> 33 31 34 <informaltable> 32 35 <tgroup cols="2"> … … 70 73 <entry> 71 74 eps 75 </entry> 76 </row> 77 <row> 78 <entry> 79 Qt 80 </entry> 81 <entry> 82 jpeg, eps, ppm, ... 72 83 </entry> 73 84 </row> … … 205 216 </sect2> 206 217 218 <!-- ******************* Section (Level#2) ****************** --> 219 <sect2 id="sect.MkMovie.Qt"> 220 <title> 221 Qt 222 </title> 223 224 <para> 225 The Qt driver provides one of the easiest ways to make a movie. 226 Of course, you first need to add the Qt libraries and link with Qt, 227 but once you have that, Qt provides a ready-made function to store all updates of the OpenGL 228 frame into the movie format. 229 You then use loops (as defined in OGLX section above) or even move/rotate/zoom you scene 230 by mouse actions to form your movie. 231 </para> 232 <para> 233 The Qt driver automatically handles all of the movie-making steps described in the OGLX section of this document - storing the files, converting them and assembling the finished movie. 234 You just have to take care of installing an mpeg_encoder. 235 </para> 236 <para> 237 To make a movie : 238 <itemizedlist spacing="compact"> 239 <listitem><para> 240 Right click to display a context menu, "Action"->"Movie parameters". 241 </para></listitem> 242 <listitem><para> 243 Select MPEG encoder path if it was not found. 244 </para></listitem> 245 <listitem><para> 246 Select the name of the output movie. 247 </para></listitem> 248 <listitem><para> 249 Let go! Hit SPACE to Start/Pause recording, RETURN to STOP 250 </para></listitem> 251 </itemizedlist> 252 </para> 253 <para> 254 Then, open your movie (on Mac, for example): 255 256 <informalexample> 257 <programlisting> 258 open G4OpenGL.mpg 259 </programlisting> 260 </informalexample> 261 262 opens a QuickTime player. 263 </para> 264 265 </sect2> 266 207 267 208 268 <!-- ******************* Section (Level#2) ****************** --> -
trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization/visdrivers.xml
r905 r921 4 4 <!-- Changed by: Dennis Wright, 27-Nov-2001 --> 5 5 <!-- Converted to DocBook: Katsuya Amako, Aug-2006 --> 6 <!-- Updates for Qt and HepRApp: Joseph Perl, Dec-2008 --> 6 7 <!-- --> 7 8 <!-- ******************************************************** --> … … 114 115 </entry> 115 116 <entry> 116 Linux, U nix, Mac with Xlib117 Linux, UNIX, Mac with Xlib 117 118 </entry> 118 119 </row> … … 147 148 </entry> 148 149 <entry> 149 Linux, U nix, Mac, Windows150 Linux, UNIX, Mac, Windows 150 151 </entry> 151 152 </row> … … 177 178 </entry> 178 179 <entry> 179 WIRED or FREDHepRep Browser180 HepRApp, FRED or WIRED4 HepRep Browser 180 181 </entry> 181 182 <entry> … … 191 192 </entry> 192 193 <entry> 193 Linux, U nix, Mac, Windows194 Linux, UNIX, Mac, Windows 194 195 </entry> 195 196 </row> … … 304 305 305 306 <para> 306 If you don't have Motif, all control is done from Geant4 307 Output can be exported to EPS (both vector and pixel graphics) 308 using vis/ogl/printEPS. 309 </para> 310 311 <para> 312 If you don't have Motif or Qt, all control is done from Geant4 307 313 commands: 308 314 … … 327 333 </programlisting> 328 334 </informalexample> 335 </para> 336 337 <para> 338 If you have Qt, see the Qt section below. 329 339 </para> 330 340 … … 367 377 368 378 <para> 369 This driver have been developed by Laurent Garnier (IN2P3, LAL Orsay). 370 It is an interface to the powerful toolkit Qt, now free on lot of 371 platforms. This driver needs OpenGL library to be install. It is well suited for 372 real-time fast visualization and demonstration. Fast visualization 373 is realized with hardware acceleration, reuse of shapes stored in a 379 This driver has been developed by Laurent Garnier (IN2P3, LAL Orsay). 380 It is an interface to the powerful application framework, Qt, now free on most 381 platforms. This driver also requires the OpenGL library. 382 </para><para> 383 The Qt driver is well suited for real-time fast visualization and demonstration. 384 Fast visualization is realized with hardware acceleration, reuse of shapes stored in a 374 385 display list, etc. NURBS visualization is also supported. All OpenGL 375 features are implement s in Qt driver . In addition, mouse events control376 are used to rotation/move/zoom volume, you can save your scene in lots 377 of formats (vector or not), make movies... 386 features are implemented in the Qt driver, but one also gets mouse 387 control of rotation/translation/zoom, the ability to save your scene in many formats 388 (both vector and pixel graphics) and an easy interface for making movies. 378 389 </para><para> 379 There is only one session of Qt driver for all available platform.380 390 Two display modes are available: immediate mode and stored mode. 381 391 The former has no limitation on data size, and the latter is fast … … 386 396 <para> 387 397 To see the visualization window : 388 </para> 398 389 399 <?soft-pagebreak ?> 390 400 <informalexample> 391 401 <programlisting> 392 /vis/open OGLSQt 402 /vis/open OGLSQt (for Stored mode) 403 or 404 /vis/open OGLIQt (for Immediate mode) 393 405 </programlisting> 394 406 </informalexample> … … 404 416 </para></listitem> 405 417 <listitem><para> 406 <ulink url="http:// geant4.slac.stanford.edu/Presentations/vis/G4OpenGLTutorial/G4OpenGLTutorial.html">418 <ulink url="http://users.lal.in2p3.fr/garnier/G4QtTutorial.html"> 407 419 Geant4 Visualization Tutorial 408 420 </ulink> … … 410 422 </para></listitem> 411 423 </itemizedlist> 424 </para> 412 425 </sect2> 413 426 … … 523 536 The HepRepFile driver creates a HepRep XML file in the HepRep1 524 537 format suitable for viewing with the 525 <ulink url="http://www.slac.stanford.edu/ BFROOT/www/Computing/Graphics/Wired/">526 WIRED3</ulink> HepRep Browser.538 <ulink url="http://www.slac.stanford.edu/~perl/HepRApp/"> 539 HepRApp</ulink> HepRep Browser. 527 540 </para> 528 541 … … 565 578 566 579 <para> 567 View the file using the WIRED3HepRep Browser, available from:568 </para> 569 <para> 570 <ulink url="http://www.slac.stanford.edu/ BFROOT/www/Computing/Graphics/Wired/">571 http://www.slac.stanford.edu/ BFROOT/www/Computing/Graphics/Wired/580 View the file using the HepRApp HepRep Browser, available from: 581 </para> 582 <para> 583 <ulink url="http://www.slac.stanford.edu/~perl/HepRApp/"> 584 http://www.slac.stanford.edu/~perl/HepRApp/ 572 585 </ulink> 573 586 . … … 575 588 576 589 <para> 577 WIRED3allows you to pick on volumes, trajectories and hits to590 HepRApp allows you to pick on volumes, trajectories and hits to 578 591 find out their associated HepRep Attributes, such as volume name, 579 592 particle ID, momentum, etc. These same attributes can be displayed … … 584 597 585 598 <para> 586 WIRED3can read heprep files in zipped format as well as599 HepRApp can read heprep files in zipped format as well as 587 600 unzipped, so you can save space by applying gzip to the heprep 588 601 file. This will reduce the file to about five percent of its … … 661 674 <itemizedlist spacing="compact"> 662 675 <listitem><para> 663 WIRED3Users Home Page:676 HepRApp Users Home Page: 664 677 <para> 665 <ulink url="http://www.slac.stanford.edu/ BFROOT/www/Computing/Graphics/Wired/">666 http://www.slac.stanford.edu/ BFROOT/www/Computing/Graphics/Wired/678 <ulink url="http://www.slac.stanford.edu/~perl/HepRApp/"> 679 http://www.slac.stanford.edu/~perl/HepRApp/ 667 680 </ulink> 668 681 . … … 678 691 </para></listitem> 679 692 <listitem><para> 680 Geant4 Visualization Tutorial using the WIRED3HepRep Browser693 Geant4 Visualization Tutorial using the HepRApp HepRep Browser 681 694 <para> 682 <ulink url="http://geant4.slac.stanford.edu/Presentations/vis/G4 WIREDTutorial/G4WIREDTutorial.html">683 http://geant4.slac.stanford.edu/Presentations/vis/G4 WIREDTutorial/G4WIREDTutorial.html695 <ulink url="http://geant4.slac.stanford.edu/Presentations/vis/G4HepRAppTutorial/G4HepRAppTutorial.html"> 696 http://geant4.slac.stanford.edu/Presentations/vis/G4HepRAppTutorial/G4HepRAppTutorial.html 684 697 </ulink> 685 698 </para> … … 1623 1636 <mediaobject> 1624 1637 <imageobject role="fo"> 1625 <imagedata fileref="./AllResources/Visualization/visualization.src/xmlnp. gif"1638 <imagedata fileref="./AllResources/Visualization/visualization.src/xmlnp.jpg" 1626 1639 format="JPG" contentwidth="12.0cm" align="center" /> 1627 1640 </imageobject> 1628 1641 <imageobject role="html"> 1629 <imagedata fileref="./AllResources/Visualization/visualization.src/xmlnp. gif"1642 <imagedata fileref="./AllResources/Visualization/visualization.src/xmlnp.jpg" 1630 1643 format="JPG" align="center" /> 1631 1644 </imageobject> … … 1643 1656 <mediaobject> 1644 1657 <imageobject role="fo"> 1645 <imagedata fileref="./AllResources/Visualization/visualization.src/xmlnpfind. gif"1658 <imagedata fileref="./AllResources/Visualization/visualization.src/xmlnpfind.jpg" 1646 1659 format="JPG" contentwidth="12.0cm" align="center" /> 1647 1660 </imageobject> 1648 1661 <imageobject role="html"> 1649 <imagedata fileref="./AllResources/Visualization/visualization.src/xmlnpfind. gif"1662 <imagedata fileref="./AllResources/Visualization/visualization.src/xmlnpfind.jpg" 1650 1663 format="JPG" align="center" /> 1651 1664 </imageobject> -
trunk/documents/UserDoc/DocBookUsersGuides/ForApplicationDeveloper/xml/Visualization/visexecutable.xml
r905 r921 3 3 <!-- [History] --> 4 4 <!-- Converted to DocBook: Katsuya Amako, Aug-2006 --> 5 <!-- Updates for Qt: Laurent Garnier, Dec-2008 --> 5 6 <!-- --> 6 7 <!-- ******************************************************** -->
Note: See TracChangeset
for help on using the changeset viewer.