/vis/viewer/set/

Set view parameters of current viewer.

Sub-directories

/vis/viewer/set/timeWindow/Set time window parameters of current viewer.

Commands

all
autoRefresh
auxiliaryEdge
background
culling
cutawayMode
defaultColour
defaultTextColour
edge
explodeFactor
globalLineWidthScale
globalMarkerScale
hiddenEdge
hiddenMarker
lightsMove
lightsThetaPhi
lightsVector
lineSegmentsPerCircle
lineWidth
numberOfCloudPoints
picking
projection
rotationStyle
sectionPlane
specialMeshRendering
specialMeshRenderingOption
specialMeshVolumes
style
targetPoint
upThetaPhi
upVector
viewpointThetaPhi
viewpointVector

all [from-viewer-name]

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

autoRefresh [auto-refresh]

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

auxiliaryEdge [edge]

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

background [red_or_string] [green] [blue] [opacity]

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

culling [culling-option] [action] [density-threshold] [unit]

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

cutawayMode [cutaway-mode]

Sets cutaway mode - add (union) or multiply (intersection).

Available at all Geant4 states.

Parameters
cutaway-mode type s Parameter candidates : add union multiply intersection

defaultColour [red_or_string] [green] [blue] [opacity]

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

defaultTextColour [red_or_string] [green] [blue] [opacity]

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

edge [edge]

Edges become visible/invisible in surface mode.

Available at all Geant4 states.

Parameters
edge type b Omittable : default value = 1

explodeFactor [explodeFactor] [x] [y] [z] [unit]

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

globalLineWidthScale [scale-factor]

Multiplies line widths by this factor.

Available at all Geant4 states.

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

globalMarkerScale [scale-factor]

Multiplies marker sizes by this factor.

Available at all Geant4 states.

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

hiddenEdge [hidden-edge]

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]

If true, closer objects hide markers. Otherwise, markers always show.

Available at all Geant4 states.

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

lightsMove [lightsMove]

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

lightsThetaPhi [theta] [phi] [unit]

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

lightsVector [x] [y] [z]

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

lineSegmentsPerCircle [line-segments]

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

lineWidth

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.

numberOfCloudPoints [points]

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

picking [picking]

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

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

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

rotationStyle [style]

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

sectionPlane [Selector] [x] [y] [z] [unit] [nx] [ny] [nz]

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

specialMeshRendering [render]

Request special rendering of volumes (meshes) that use G4VParameterisation.

Available at all Geant4 states.

Parameters
render type b Omittable : default value = 1

specialMeshRenderingOption [option]

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

specialMeshVolumes [volumes]

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 =

style [style]

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

targetPoint [x] [y] [z] [Unit]

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

upThetaPhi [theta] [phi] [unit]

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

upVector [x] [y] [z]

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

viewpointThetaPhi [theta] [phi] [unit]

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

viewpointVector [x] [y] [z]

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