/vis/viewer/set/timeWindow/ | Set time window parameters of current viewer. |
Copies view parameters.
Copies ALL view parameters (except the autoRefresh status) from
from-viewer to current viewer. You may need "/vis/viewer/rebuild".
Note: to copy only the camera-specific parameters use
"/vis/viewer/copyfrom".
Available at all Geant4 states.
Parameters
from-viewer-name | type s |
Sets auto-refresh.
If true, view is automatically refreshed after a change of
view parameters.
Available at all Geant4 states.
Parameters
auto-refresh | type b | Omittable : default value = 1 |
Sets visibility of auxiliary edges
Auxiliary edges, i.e., those that are part of a curved surface,
sometimes called soft edges, become visible/invisible.
Available at all Geant4 states.
Parameters
edge | type b | Omittable : default value = 1 |
Set background colour and transparency (default black and opaque).
Accepts (a) RGB triplet. e.g., ".3 .4 .5", or
(b) string such as "white", "black", "grey", "red"...or
(c) an additional number for opacity, e.g., ".3 .4 .5 .6"
or "grey ! ! .6" (note "!"'s for unused parameters).
Available at all Geant4 states.
Parameters
red_or_string | type s | Omittable : default value = 0. | |
green | type d | Omittable : default value = 0 | |
blue | type d | Omittable : default value = 0 | |
opacity | type d | Omittable : default value = 1 |
Set culling options.
"global": enables/disables all other culling options.
"coveredDaughters": culls, i.e., eliminates, volumes that would not
be seen because covered by ancestor volumes in surface drawing mode,
and then only if the ancestors are visible and opaque, and then only
if no sections or cutaways are in operation. Intended solely to
improve the speed of rendering visible volumes.
"invisible": culls objects with the invisible attribute set.
"density": culls volumes with density lower than threshold. Useful
for eliminating "container volumes" with no physical correspondence,
whose material is usually air. If this is selected, provide threshold
density and unit (e.g., g/cm3, mg/cm3 or kg/m3).
Available at all Geant4 states.
Parameters
culling-option | type s | Parameter candidates : global coveredDaughters invisible density | |
action | type b | Omittable : default value = 1 | |
density-threshold | type d | Omittable : default value = 0.01 | |
unit | type s | Omittable : default value = g/cm3 |
Sets cutaway mode - add (union) or multiply (intersection).
Available at all Geant4 states.
Parameters
cutaway-mode | type s | Parameter candidates : add union multiply intersection |
Set defaultColour colour and transparency (default white and opaque).
Accepts (a) RGB triplet. e.g., ".3 .4 .5", or
(b) string such as "white", "black", "grey", "red"...or
(c) an additional number for opacity, e.g., ".3 .4 .5 .6"
or "grey ! ! .6" (note "!"'s for unused parameters).
Available at all Geant4 states.
Parameters
red_or_string | type s | Omittable : default value = 1. | |
green | type d | Omittable : default value = 1 | |
blue | type d | Omittable : default value = 1 | |
opacity | type d | Omittable : default value = 1 |
Set defaultTextColour colour and transparency (default blue and opaque).
Accepts (a) RGB triplet. e.g., ".3 .4 .5", or
(b) string such as "white", "black", "grey", "red"...or
(c) an additional number for opacity, e.g., ".3 .4 .5 .6"
or "grey ! ! .6" (note "!"'s for unused parameters).
Available at all Geant4 states.
Parameters
red_or_string | type s | Omittable : default value = 0. | |
green | type d | Omittable : default value = 0 | |
blue | type d | Omittable : default value = 1 | |
opacity | type d | Omittable : default value = 1 |
Edges become visible/invisible in surface mode.
Available at all Geant4 states.
Parameters
edge | type b | Omittable : default value = 1 |
Moves top-level drawn volumes by this factor from this centre.
Available at all Geant4 states.
Parameters
explodeFactor | type d | Omittable : default value = 1 | Parameter range : explodeFactor>=1. |
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 = m |
Multiplies line widths by this factor.
Available at all Geant4 states.
Parameters
scale-factor | type d | Omittable : default value = 1 |
Multiplies marker sizes by this factor.
Available at all Geant4 states.
Parameters
scale-factor | type d | Omittable : default value = 1 |
Edges become hidden/seen in wireframe or surface mode.
Available at all Geant4 states.
Parameters
hidden-edge | type b | Omittable : default value = 1 |
If true, closer objects hide markers. Otherwise, markers always show.
Available at all Geant4 states.
Parameters
hidden-marker | type b | Omittable : default value = 1 |
Lights move with camera or with object
Available at all Geant4 states.
Parameters
lightsMove | type s | Parameter candidates : cam camera with-camera obj object with-object |
Set direction from target to lights.
Available at all Geant4 states.
Parameters
theta | type d | Omittable : default value = 60 | |
phi | type d | Omittable : default value = 45 | |
unit | type s | Omittable : default value = deg |
Set direction from target to lights.
Available at all Geant4 states.
Parameters
x | type d | Omittable : default value = 1 | |
y | type d | Omittable : default value = 1 | |
z | type d | Omittable : default value = 1 |
Set number of sides per circle for polygon/polyhedron drawing.
Refers to graphical representation of objects with curved lines/surfaces.
Available at all Geant4 states.
Parameters
line-segments | type i | Omittable : default value = 24 |
Use "/vis/viewer/set/globalLineWidthScale" instead.
For trajectories use "/vis/modeling/trajectories/*/default/setLineWidth".
For volumes use "/vis/geometry/set/lineWidth".
Available at all Geant4 states.
Set number of points to be used for cloud representation of volumes.
Available at all Geant4 states.
Parameters
points | type i | Omittable : default value = 10000 |
Sets picking, if available.
If true, view is set up for picking, if available.
You may need to issue "/vis/viewer/update".
For required actions, watch for instructions for viewer.
Available at all Geant4 states.
Parameters
picking | type b | Omittable : default value = 1 |
Set projection style - o[rthogonal] or p[erspective].
If p[erspective], also set field half angle.
Available at all Geant4 states.
Parameters
projection | type s | Omittable : default value = orthogonal | Parameter candidates : o orthogonal p perspective |
field-half-angle | type d | Omittable : default value = 30 | |
unit | type s | Omittable : default value = deg |
Set style of rotation - constrainUpDirection or freeRotation.
constrainUpDirection: conventional HEP view.
freeRotation: Google-like rotation, using mouse-grab.
Available at all Geant4 states.
Parameters
style | type s | Parameter candidates : constrainUpDirection freeRotation |
Set plane for drawing section (DCUT).
E.g., for a y-z plane at x = 1 cm:
"/vis/viewer/set/sectionPlane on 1 0 0 cm 1 0 0".
To turn off: /vis/viewer/set/sectionPlane off
Available at all Geant4 states.
Parameters
Selector | type c | Omittable : default value = on | |
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 = m | |
nx | type d | Omittable : default value = 1 | |
ny | type d | Omittable : default value = 0 | |
nz | type d | Omittable : default value = 0 |
Request special rendering of volumes (meshes) that use G4VParameterisation.
Available at all Geant4 states.
Parameters
render | type b | Omittable : default value = 1 |
Set special mesh rendering option - "default", "dots" or "surfaces".
Available at all Geant4 states.
Parameters
option | type s | Omittable : default value = default | Parameter candidates : default dots surfaces |
Specify the volumes for special rendering. No arguments resets the list
and is interpreted to mean "all found meshes".
Please provide a list of space-separated physical volume names and copy
number pairs. Negative copy number means "all volumes of that name".
Available at all Geant4 states.
Parameters
volumes | type s | Omittable : default value = |
Set style of drawing - w[ireframe] or s[urface] or c[loud].
(Hidden line drawing is controlled by "/vis/viewer/set/hiddenEdge".)
Available at all Geant4 states.
Parameters
style | type s | Parameter candidates : w wireframe s surface c cloud |
Set target point.
This sets the "Current Target Point" relative to the "Standard
Target Point" so that the actual target point is as requested.
(See G4ViewParameters.hh for an explanation of target points.)
Available at all Geant4 states.
Parameters
x | type d | ||
y | type d | ||
z | type d | ||
Unit | type s | Parameter candidates : pc km m cm mm um nm Ang fm parsec kilometer meter centimeter millimeter micrometer nanometer angstrom fermi |
Set up vector.
Viewer will attempt always to show this direction upwards.
Available at all Geant4 states.
Parameters
theta | type d | Omittable : default value = 90 | |
phi | type d | Omittable : default value = 90 | |
unit | type s | Omittable : default value = deg |
Set up vector.
Viewer will attempt always to show this direction upwards.
Available at all Geant4 states.
Parameters
x | type d | Omittable : default value = 0 | |
y | type d | Omittable : default value = 1 | |
z | type d | Omittable : default value = 0 |
Set direction from target to camera.
Also changes lightpoint direction if lights are set to move with camera.
Available at all Geant4 states.
Parameters
theta | type d | Omittable : default value = 60 | |
phi | type d | Omittable : default value = 45 | |
unit | type s | Omittable : default value = deg |
Set direction from target to camera.
Also changes lightpoint direction if lights are set to move with camera.
Available at all Geant4 states.
Parameters
x | type d | Omittable : default value = 1 | |
y | type d | Omittable : default value = 1 | |
z | type d | Omittable : default value = 1 |