12.07.2015 Views

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

VisualizationOutput can be exported to EPS (both vector and pixel graphics) using vis/ogl/printEPS.More in<strong>for</strong>mation can be found here : Section 8.4.13If you don't have Motif or Qt, all control is done from <strong>Geant4</strong> commands:/vis/open OGLIX/vis/viewer/set/viewpointThetaPhi 70 20/vis/viewer/zoom 2etc.But if you have Motif libraries, you can control <strong>Geant4</strong> from Motif widgets:/vis/open OGLIXmIf you have Qt, see the Qt section below.The OpenGL driver added Smooth shading and Transparency since <strong>Geant4</strong> release 8.0.Further in<strong>for</strong>mation (OpenGL and Mesa):• http://www.opengl.org/• http://www.mesa3d.org• http://geant4.slac.stan<strong>for</strong>d.edu/Presentations/vis/G4OpenGLTutorial/G4OpenGLTutorial.html using theOpenGL Graphics System8.3.3. QtThis driver has been developed by Laurent Garnier (IN2P3, LAL Orsay). It is an interface to the powerful applicationframework, Qt, now free on most plat<strong>for</strong>ms. This driver also requires the OpenGL library.The Qt driver is well suited <strong>for</strong> real-time fast visualization and demonstration. Fast visualization is realized withhardware acceleration, reuse of shapes stored in a display list, etc. NURBS visualization is also supported. AllOpenGL features are implemented in the Qt driver, but one also gets mouse control of rotation/translation/zoom,the ability to save your scene in many <strong>for</strong>mats (both vector and pixel graphics) and an easy interface <strong>for</strong> makingmovies.Two display modes are available: immediate mode and stored mode. The <strong>for</strong>mer has no limitation on data size,and the latter is fast <strong>for</strong> visualizing large data repetitively, and so is suitable <strong>for</strong> animation.To see the visualization window :or/vis/open OGLSQt (<strong>for</strong> Stored mode)/vis/open OGLIQt (<strong>for</strong> Immediate mode)Further in<strong>for</strong>mation (Qt):• Qt• <strong>Geant4</strong> Visualization Tutorial using the Qt Driver8.3.4. OpenInventorThese drivers were developed by Jeff Kallenbach (FNAL) and Guy Barrand (IN2P3) based on the Hepvis classlibrary originated by Joe Boudreau (Pittsburgh University). The OpenInventor drivers and the Hepvis class libraryare based on the well-established OpenInventor technology <strong>for</strong> scientific visualization. They have high extendibility.They support high interactivity, e.g., attribute e diting of picked objects. Some OpenInventor viewers support"stereoscopic" effects.223

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!