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.

Visualization• HepRep will meet your needs• If you want to render highest quality photorealistic images <strong>for</strong> use in a poster or a technical design report, andyou can live without quick rotate and zoom• DAWN is the way to go• If you want to render to a 3D <strong>for</strong>mat that others can view in a variety of commodity browsers (including someweb browser plug-ins)• VRML is the way to go• If you want to visualize a geometry that the other visualization drivers can't handle, or you need transparencyor mirrors, and you don't need to visualize trajectories• RayTracer will do it• If you just want to quickly check the geometry hierarchy, or if you want to calculate the volume or mass ofany geometry hierarchy• ASCIITree will meet your needs• You can also add your own visualization driver.• <strong>Geant4</strong>'s visualization system is modular. By creating just three new classes, you can direct <strong>Geant4</strong> in<strong>for</strong>mationto your own visualization system.8.1.4. Controlling VisualizationYour <strong>Geant4</strong> code stays basically the same no matter which driver you use.Visualization is per<strong>for</strong>med either with commands or from C++ code.• Some visualization drivers work directly from <strong>Geant4</strong>• OpenGL• Qt• OpenInventor• RayTracer• ASCIITree• For other visualization drivers, you first have <strong>Geant4</strong> produce a file, and then you have that file rendered byanother application (which may have GUI control)• HepRep• DAWN• VRML8.1.5. Visualization DetailsThe following sections of this guide cover the details of <strong>Geant4</strong> visualization:• Section 8.2 Adding Visualization to Your Executable• Section 8.3 The Visualization Drivers• Section 8.4 Controlling Visualization from Commands• Section 8.5 Controlling Visualization from Compiled Code• Section 8.6 Visualization Attributes• Section 8.7 Enhanced Trajectory Drawing• Section 8.9 Polylines, Markers and Text• Section 8.10 Making a MovieOther useful references <strong>for</strong> <strong>Geant4</strong> visualization outside of this user guide:• Introduction to <strong>Geant4</strong> Visualization ( pdf, ppt )• <strong>Geant4</strong> Visualization Commands ( pdf, ppt )• <strong>Geant4</strong> Advanced Visualization ( pdf, ppt )216

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

Saved successfully!

Ooh no, something went wrong!