/vis/scene/add/

Add model to current scene.


Sub-directories :


Commands :


axes [x0] [y0] [z0] [length] [unit]

/vis/scene/add/axes [<x0>] [<y0>] [<z0>] [<length>] [<unit>]
Default: 0 0 0 1 m
Draws axes at (x0, y0, z0) of given length.

Available at all Geant4 states.

Parameters
x0 type d Omittable : default value = 0
y0 type d Omittable : default value = 0
z0 type d Omittable : default value = 0
length type d Omittable : default value = 1
unit type s Omittable : default value = m


ghosts [particle]

/vis/scene/add/ghosts [<particle-name>]
Adds ghost volumes (G4FlavoredParallelWorld) to the current scene.
Selects by particle (default = "all").

Available at all Geant4 states.

Parameters
particle type s Omittable : default value = all


hits

Adds hits to current scene.
Hits are drawn at end of event when the scene in which they are added is current.

Available at all Geant4 states.


logicalVolume [volume] [depth]

/vis/scene/add/logicalVolume <logical-volume-name> [<depth-of-descending>]
Adds a logical volume to the current scene,
showing voxels and boolean components (if any).
1st parameter: volume name.
2nd parameter: depth of descending geometry hierarchy (default 1).

Available at all Geant4 states.

Parameters
volume type s
depth type i Omittable : default value = 1


scale [length] [unit] [direction] [red] [green] [blue] [auto|manual] [xmid] [ymid] [zmid] [unit]

/vis/scene/add/scale [<length> <length-unit>] [x|y|z] [<red>] [<green>] [<blue>] [auto|manual] [<xmid> <ymid> <zmid> <unit>]
Defaults: 1 m x 1 0 0 auto 0 0 0 m
Adds an annotated scale line to the current scene.
An annotated line in the specified direction with tick marks at the end. If autoPlacing is true it is required to be centred at the front, right, bottom corner of the world space, comfortably outside the existing bounding box/sphere so that existing objects do not obscure it. Otherwise it is required to be drawn with mid-point at (xmid, ymid, zmid). The auto placing algorithm might be: x = xmin + (1 + comfort) * (xmax - xmin) y = ymin - comfort * (ymax - ymin) z = zmin + (1 + comfort) * (zmax - zmin) if direction == x then (x - length,y,z) to (x,y,z) if direction == y then (x,y,z) to (x,y + length,z) if direction == z then (x,y,z - length) to (x,y,z)

Available at all Geant4 states.

Parameters
length type d Omittable : default value = 1
unit type s Omittable : default value = m
direction type s Omittable : default value = x
red type d Omittable : default value = 1
green type d Omittable : default value = 0
blue type d Omittable : default value = 0
auto|manual type s Omittable : default value = auto
xmid type d Omittable : default value = 0
ymid type d Omittable : default value = 0
zmid type d Omittable : default value = 0
unit type s Omittable : default value = m


text [x] [y] [z] [unit] [font_size] [x_offset] [y_offset] [text]

Adds text at (x*unit, y*unit, z*unit) with font_size x_offset y_offset.
Font size and offsets in pixels.

Available at all Geant4 states.

Parameters
x type d Omittable : default value = 0
y type d Omittable : default value = 0
z type d Omittable : default value = 0
unit type s Omittable : default value = mm
font_size type d Omittable : default value = 0
x_offset type d Omittable : default value = 0
y_offset type d Omittable : default value = 0
text type s Omittable : default value = text


trajectories [drawing-mode]

/vis/scene/add/trajectories [drawing-mode]
Default integer parameter: 0
Adds trajectories to current scene.
Causes trajectories, if any, to be drawn at the end of processiing an event. The drawing mode is an integer that is passed to the DrawTrajectory method. The default implementation in G4VTrajectory, if drawing-mode > 0, draws the trajectory as a polyline and, if drawing-mode != 0, draws markers of screen size std::abs(drawing-mode)/1000 in pixels at each step and auxiliary point, if any. So drawing-mode == 5000 is a good choice. Enable storing with "/tracking/storeTrajectory 1". See also "/vis/scene/endOfEventAction".

Available at all Geant4 states.

Parameters
drawing-mode type i Omittable : default value = 0


volume [volume] [copy-no] [depth]

/vis/scene/add/volume [<physical-volume-name>] [<copy-no>] [<depth-of-descending>]
Adds a physical volume to the current scene.
Note: adds first occurence only.
1st parameter: volume name (default "world").
2nd parameter: copy number (default -1). If negative, first occurrence of physical-volume-name is selected.
3rd parameter: depth of descending geometry hierarchy (default G4Scene::UNLIMITED (-1)).

Available at all Geant4 states.

Parameters
volume type s Omittable : default value = world
copy-no type i Omittable : default value = -1
depth type i Omittable : default value = -1