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• ArgumentsArguments "theta" and "phi" are polar and azimuthal camera angles, respectively. The default unit is "degree".• ActionSet a view point in direction of (theta, phi).• Example: Set the viewpoint in direction of (70 deg, 20 deg) /Idle> /vis/viewer/set/viewpointThetaPhi 70 20• Additional notesCamera parameters should be set <strong>for</strong> each viewer. They are initialized with command "/vis/viewer/reset".Command: /vis/viewer/zoom [scale_factor]• ArgumentThe scale factor. The command multiplies magnification of the view by this factor.• ActionZoom up/down of view.• Example: Zoom up by factor 1.5Idle> /vis/viewer/zoom 1.5• Additional notesCamera parameters should be set <strong>for</strong> each viewer. They are initialized with command "/vis/viewer/reset".A similar pair of commands, scale and scaleTo allow non-uni<strong>for</strong>m scaling (i.e., zoom differently along differentaxes). For details, see the Control...UICommands section of this user guide.Command: /vis/viewer/set/style [style_name]• ArgumentsCandidate values of the argument are "wireframe" and "surface". ("w" and "s" also work.)• ActionSet a drawing style to wireframe or surface.• Example: Set the drawing style to "surface"Idle> /vis/viewer/set/style surface• Additional notesThe style of some geometry components may have been <strong>for</strong>ced one way or the other through calls in compiledcode. The set/style command will NOT override such <strong>for</strong>ce styles.Drawing style should be set <strong>for</strong> each viewer. The drawing style is initialized with command "/vis/viewer/reset".8.4.10. Declare the end of visualization <strong>for</strong> flushing: /vis/viewer/flush commandCommand: /vis/viewer/flush239

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

Saved successfully!

Ooh no, something went wrong!