/vis/viewer/set/

Set view parameters of current viewer.


Sub-directories :


Commands :


all [from-viewer-name]

/vis/viewer/set/all <from-viewer-name> Copies view parameters (except the autoRefresh status) from from-viewer to current viewer.

Available at all Geant4 states.

Parameters
from-viewer-name type s


autoRefresh [auto-refresh]

/vis/viewer/set/autoRefresh [true|false]
default: false
View is automatically refreshed after a change of view parameters.

Available at all Geant4 states.

Parameters
auto-refresh type b Omittable : default value = 0


auxiliaryEdge [edge]

/vis/viewer/set/auxiliaryEdge [true|false]
default: false
Auxiliary edges become visible/invisible.

Available at all Geant4 states.

Parameters
edge type b Omittable : default value = 0


culling [culling-option] [flag] [density] [unit]

/vis/viewer/set/culling global|coveredDaughters|invisible|density [true|false] [density] [unit]
default: none true 0.01 g/cm3 global: enables other culling options/disables culling. coveredDaughters: does not send volumes that would not be seen on the screen because covered by ancester volumes in surface drawing mode, and then only if the volumes are visible and opaque, and then only if no sections or cutways are in operation. Intended solely to improve the speed of rendering visible volumes. invisible: culls objects with invisible attribute. 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 (g/cm3, mg/cm3 or kg/m3).

Available at all Geant4 states.

Parameters
culling-option type s Parameter candidates : global coveredDaughters invisible density
flag type b Omittable : default value = true
density type d Omittable : default value = 0.01
unit type s Omittable : default value = g/cm3


edge [edge]

/vis/viewer/set/edge [true|false]
default: true
Edges become visible/invisible in surface mode.

Available at all Geant4 states.

Parameters
edge type b Omittable : default value = 1


globalMarkerScale [scale-factorr]

/vis/viewer/set/globalMarkerScale [<scale-factor>]
default: 1
Multiplies marker sizes by this factor.

Available at all Geant4 states.

Parameters
scale-factorr type d Omittable : default value = 1


hiddenEdge [hidden-edge]

/vis/viewer/set/hiddenEdge [true|false]
default: true
Edges become hidden/seen in wireframe or surface mode.

Available at all Geant4 states.

Parameters
hidden-edge type b Omittable : default value = 1


hiddenMarker [hidden-marker]

/vis/viewer/set/hiddenMarker [true|false]
default: true
Markers are hidden by/seen though closer objects.

Available at all Geant4 states.

Parameters
hidden-marker type b Omittable : default value = 1


lightsMove [lightsMove]

/vis/viewer/set/lightsMove with-camera|with-object
Note: parameter will be parsed for "cam" or "obj".

Available at all Geant4 states.

Parameters
lightsMove type s


lightsThetaPhi [theta] [phi] [unit]

/vis/viewer/set/lightsThetaPhi [<theta>] [<phi>] [deg|rad]
default: 60 45 deg - becomes "current as default"
Set direction from target to lights.

Available at all Geant4 states.

Parameters
theta type d Omittable : current value is used as the default value.
phi type d Omittable : current value is used as the default value.
unit type s Omittable : default value = deg


lightsVector [x] [y] [z]

/vis/viewer/set/lightsVector [<x>] [<y>] [<z>]
default: 1 1 1 - becomes "current as default"
Set direction from target to lights.

Available at all Geant4 states.

Parameters
x type d Omittable : current value is used as the default value.
y type d Omittable : current value is used as the default value.
z type d Omittable : current value is used as the default value.


lineSegmentsPerCircle [line-segments]

/vis/viewer/set/lineSegmentsPerCircle [<number-of-sides-per-circle>]
default: 24
Number of sides per circle in polygon/polyhedron graphical representation of objects with curved lines/surfaces.

Available at all Geant4 states.

Parameters
line-segments type i Omittable : default value = 24


projection [projection] [field-half-angle] [unit]

/vis/viewer/set/projection o[rthogonal]|p[erspective] [<field-half-angle>] [deg|rad]
default: orthogonal 30 deg

Available at all Geant4 states.

Parameters
projection type s Omittable : default value = orthogonal
field-half-angle type d Omittable : default value = 30
unit type s Omittable : default value = deg


sectionPlane on|off [x] [y] [z] [units] [nx] [ny] [nz] [Selector] [x] [y] [z] [unit] [nx] [ny] [nz]

default: none 0 0 0 cm 1 0 0
Set plane for drawing section (DCUT). Specify plane by x y z units nx ny nz, 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 = ?
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 = cm
nx type d Omittable : default value = 1
ny type d Omittable : default value = 0
nz type d Omittable : default value = 0


style [style]

/vis/viewer/set/style w[ireframe]|s[urface]

Available at all Geant4 states.

Parameters
style type s


upThetaPhi [theta] [phi] [unit]

/vis/viewer/set/upThetaPhi [<theta>] [<phi>] [deg|rad]
default: 90 90 deg - becomes "current as default"
Set up vector. Viewer will attempt always to show this direction upwards.

Available at all Geant4 states.

Parameters
theta type d Omittable : current value is used as the default value.
phi type d Omittable : current value is used as the default value.
unit type s Omittable : default value = deg


upVector [x] [y] [z]

/vis/viewer/set/upVector [<x>] [<y>] [<z>]
default: 0 1 0 - becomes "current as default"
Set up vector. Viewer will attempt always to show this direction upwards.

Available at all Geant4 states.

Parameters
x type d Omittable : current value is used as the default value.
y type d Omittable : current value is used as the default value.
z type d Omittable : current value is used as the default value.


viewpointThetaPhi [theta] [phi] [unit]

/vis/viewer/set/viewpointThetaPhi [<theta>] [<phi>] [deg|rad]
default: 0 0 deg - becomes "current as default"
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 : current value is used as the default value.
phi type d Omittable : current value is used as the default value.
unit type s Omittable : default value = deg


viewpointVector [x] [y] [z]

/vis/viewer/set/viewpointVector [<x>] [<y>] [<z>]
default: 0 0 1 - becomes "current as default"
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 : current value is used as the default value.
y type d Omittable : current value is used as the default value.
z type d Omittable : current value is used as the default value.