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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 8. Visualization8.1. Introduction to VisualizationThe <strong>Geant4</strong> visualization system was developed in response to a diverse set of requirements:1. Quick response to study geometries, trajectories and hits2. High-quality output <strong>for</strong> publications3. Flexible camera control to debug complex geometries4. Tools to show volume overlap errors in detector geometries5. Interactive picking to get more in<strong>for</strong>mation on visualized objectsNo one graphics system is ideal <strong>for</strong> all of these requirements, and many of the large software frameworks into which<strong>Geant4</strong> has been incorporated already have their own visualization systems, so <strong>Geant4</strong> visualization was designedaround an abstract interface that supports a diverse family of graphics systems. Some of these graphics systemsuse a graphics library compiled with <strong>Geant4</strong>, such as OpenGL, Qt, while others involve a separate application,such as HepRApp or DAWN.8.1.1. What Can be VisualizedSimulation data can be visualized:• Detector components• A hierarchical structure of physical volumes• A piece of physical volume, logical volume, and solid• Particle trajectories and tracking steps• Hits of particles in detector componentsOther user defined objects can be visualized:• Polylines, such as coordinate axes• 3D Markers, such as eye guides• Text, descriptive character strings, comments or titles• Scales• Logos8.1.2. You have a Choice of Visualization DriversThe many graphics systems that <strong>Geant4</strong> supports are complementary to each other.• OpenGL• View directly from <strong>Geant4</strong>• Requires addition of GL libraries that are freely avialable <strong>for</strong> all operating systems (and pre-installed on many)• Rendered, photorealistic image with some interactive features• zoom, rotate, translate• Fast response (can usually exploit full potential of graphics hardware)• Print to EPS (vector and pixel graphics)• Qt• View directly from <strong>Geant4</strong>• Requires addition of Qt and GL libraries that are freely available on most operating systems• Rendered, photorealistic image• Many interactive features• zoom, rotate, translate• Fast response (can usually exploit full potential of graphics hardware)• Expanded printing ability (vector and pixel graphics)214

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

Saved successfully!

Ooh no, something went wrong!