/vis/ogl/

G4OpenGLViewer commands.


Sub-directories :


/vis/ogl/set/

G4OpenGLViewer set commands.


Commands :


export [name] [width] [height]

export a screenshot of current OpenGL viewer
If name is "", filename and extension will have the default value
If name is "toto.png", set the name to "toto" and the format to "png". No incremented suffix is added.
If name is "toto", set the name to "toto" and the format to default (or current format if specify). Will also add an incremented suffix at the end of the file, except if name is the same as previous it will not reset incremented suffix.
Setting size is available only on eps/pdf/svg/ps formats

Available at all Geant4 states.

Parameters
name type s Omittable : default value = !
width type d Omittable : default value = -1
height type d Omittable : default value = -1


flushAt [action] [N]

Controls the rate at which graphics primitives are flushed to screen.
Flushing to screen is an expensive operation so to speed drawing choose an action suitable for your application. Note that detectors are flushed to screen anyway at end of drawing, and events are flushed to screen anyway depending on /vis/scene/endOfEventAction and endOfRunAction.
For NthPrimitive and NthEvent the second parameter N is operative.
For "never", detectors and events are still flushed as described above.

Available at all Geant4 states.

Parameters
action type s Omittable : default value = NthEvent Parameter candidates : endOfEvent endOfRun eachPrimitive NthPrimitive NthEvent never
N type i Omittable : default value = 100


printEPS

Print Encapsulated PostScript file.
Generates files with names G4OpenGL_n.eps, where n is a sequence number, starting at 0. Can be "vectored" or "pixmap" - see "/vis/ogl/set/printMode".

Available at all Geant4 states.