/vis/ogl/

G4OpenGLViewer commands.


Sub-directories :


/vis/ogl/set/

G4OpenGLViewer set commands.


Commands :


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.


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