musrsim/geant4/TaoLEMuSR/doc/commands/_vis_viewer_set_.html
2008-03-20 09:23:20 +00:00

280 lines
8.3 KiB
HTML

<html><head><title>Commands in /vis/viewer/set/</title></head>
<body bgcolor="#ffffff"><h2>/vis/viewer/set/</h2><p>
Set view parameters of current viewer.<br>
<p><hr><p>
<h2>Sub-directories : </h2><dl>
</dl><p><hr><p>
<h2>Commands : </h2><dl>
<p><br><p><dt><b>all [<i>from-viewer-name</i>]</b>
<p><dd>
Copies view parameters.<br>
Copies view parameters (except the autoRefresh status) from
from-viewer to current viewer.<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>from-viewer-name
<td>type s
<td><td></table>
<p><br><p><dt><b>autoRefresh [<i>auto-refresh</i>]</b>
<p><dd>
Sets auto-refresh.<br>
If true, view is automatically refreshed after a change of
view parameters.<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>auto-refresh
<td>type b
<td>Omittable : default value = 0
<td></table>
<p><br><p><dt><b>auxiliaryEdge [<i>edge</i>]</b>
<p><dd>
Sets visibility of auxiliary edges<br>
Auxiliary edges, i.e., those that are part of a curved surface,
sometimes called soft edges, become visible/invisible.<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>edge
<td>type b
<td>Omittable : default value = 0
<td></table>
<p><br><p><dt><b>culling [<i>culling-option</i>] [<i>action</i>] [<i>density-threshold</i>] [<i>unit</i>]</b>
<p><dd>
Set culling options.<br>
"global": enables/disables all other culling options.<br>
"coveredDaughters": culls, i.e., eliminates, volumes that would not
be seen because covered by ancester volumes in surface drawing mode,
and then only if the ancesters 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.<br>
"invisible": culls objects with the invisible attribute set.<br>
"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).<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>culling-option
<td>type s
<td><td>Parameter candidates : global coveredDaughters invisible density
<tr><td>action
<td>type b
<td>Omittable : default value = true
<td><tr><td>density-threshold
<td>type d
<td>Omittable : default value = 0.01
<td><tr><td>unit
<td>type s
<td>Omittable : default value = g/cm3
<td>Parameter candidates : g/cm3, mg/cm3 kg/m3
</table>
<p><br><p><dt><b>edge [<i>edge</i>]</b>
<p><dd>
default: true<br>
Edges become visible/invisible in surface mode.<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>edge
<td>type b
<td>Omittable : default value = 1
<td></table>
<p><br><p><dt><b>globalMarkerScale [<i>scale-factorr</i>]</b>
<p><dd>
Multiplies marker sizes by this factor.<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>scale-factorr
<td>type d
<td>Omittable : default value = 1
<td></table>
<p><br><p><dt><b>hiddenEdge [<i>hidden-edge</i>]</b>
<p><dd>
Edges become hidden/seen in wireframe or surface mode.<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>hidden-edge
<td>type b
<td>Omittable : default value = 1
<td></table>
<p><br><p><dt><b>hiddenMarker [<i>hidden-marker</i>]</b>
<p><dd>
If true, closer objects hide markers. Otherwise, markers always show.<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>hidden-marker
<td>type b
<td>Omittable : default value = 1
<td></table>
<p><br><p><dt><b>lightsMove [<i>lightsMove</i>]</b>
<p><dd>
Lights move with camera or with object<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>lightsMove
<td>type s
<td><td>Parameter candidates : cam camera with-camera obj object with-object
</table>
<p><br><p><dt><b>lightsThetaPhi [<i>theta</i>] [<i>phi</i>] [<i>unit</i>]</b>
<p><dd>
Set direction from target to lights.<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>theta
<td>type d
<td>Omittable : default value = 60
<td><tr><td>phi
<td>type d
<td>Omittable : default value = 45
<td><tr><td>unit
<td>type s
<td>Omittable : default value = deg
<td></table>
<p><br><p><dt><b>lightsVector [<i>x</i>] [<i>y</i>] [<i>z</i>]</b>
<p><dd>
Set direction from target to lights.<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>x
<td>type d
<td>Omittable : default value = 1
<td><tr><td>y
<td>type d
<td>Omittable : default value = 1
<td><tr><td>z
<td>type d
<td>Omittable : default value = 1
<td></table>
<p><br><p><dt><b>lineSegmentsPerCircle [<i>line-segments</i>]</b>
<p><dd>
Set number of sides per circle for polygon/polyhedron drawing.<br>
Refers to graphical representation of objects with curved lines/surfaces.<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>line-segments
<td>type i
<td>Omittable : default value = 24
<td></table>
<p><br><p><dt><b>projection [<i>projection</i>] [<i>field-half-angle</i>] [<i>unit</i>]</b>
<p><dd>
Orthogonal or perspective projection.<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>projection
<td>type s
<td>Omittable : default value = orthogonal
<td>Parameter candidates : o orthogonal p perspective
<tr><td>field-half-angle
<td>type d
<td>Omittable : default value = 30
<td><tr><td>unit
<td>type s
<td>Omittable : default value = deg
<td></table>
<p><br><p><dt><b>sectionPlane [<i>Selector</i>] [<i>x</i>] [<i>y</i>] [<i>z</i>] [<i>unit</i>] [<i>nx</i>] [<i>ny</i>] [<i>nz</i>]</b>
<p><dd>
Set plane for drawing section (DCUT).<br>
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<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>Selector
<td>type c
<td>Omittable : default value = on
<td><tr><td>x
<td>type d
<td>Omittable : default value = 0
<td><tr><td>y
<td>type d
<td>Omittable : default value = 0
<td><tr><td>z
<td>type d
<td>Omittable : default value = 0
<td><tr><td>unit
<td>type s
<td>Omittable : default value = cm
<td><tr><td>nx
<td>type d
<td>Omittable : default value = 1
<td><tr><td>ny
<td>type d
<td>Omittable : default value = 0
<td><tr><td>nz
<td>type d
<td>Omittable : default value = 0
<td></table>
<p><br><p><dt><b>style [<i>style</i>]</b>
<p><dd>
Set style of drawing.<br>
(Hidden line drawing is controlled by "/vis/viewer/set/hiddenEdge".)<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>style
<td>type s
<td><td>Parameter candidates : w wireframe s surface
</table>
<p><br><p><dt><b>upThetaPhi [<i>theta</i>] [<i>phi</i>] [<i>unit</i>]</b>
<p><dd>
Set up vector.<br>
Viewer will attempt always to show this direction upwards.<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>theta
<td>type d
<td>Omittable : default value = 90
<td><tr><td>phi
<td>type d
<td>Omittable : default value = 90
<td><tr><td>unit
<td>type s
<td>Omittable : default value = deg
<td></table>
<p><br><p><dt><b>upVector [<i>x</i>] [<i>y</i>] [<i>z</i>]</b>
<p><dd>
Set up vector.<br>
Viewer will attempt always to show this direction upwards.<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>x
<td>type d
<td>Omittable : default value = 0
<td><tr><td>y
<td>type d
<td>Omittable : default value = 1
<td><tr><td>z
<td>type d
<td>Omittable : default value = 0
<td></table>
<p><br><p><dt><b>viewpointThetaPhi [<i>theta</i>] [<i>phi</i>] [<i>unit</i>]</b>
<p><dd>
Set direction from target to camera.<br>
Also changes lightpoint direction if lights are set to move with camera.<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>theta
<td>type d
<td>Omittable : default value = 60
<td><tr><td>phi
<td>type d
<td>Omittable : default value = 45
<td><tr><td>unit
<td>type s
<td>Omittable : default value = deg
<td></table>
<p><br><p><dt><b>viewpointVector [<i>x</i>] [<i>y</i>] [<i>z</i>]</b>
<p><dd>
Set direction from target to camera.<br>
Also changes lightpoint direction if lights are set to move with camera.<br>
<p><dd>Available at all Geant4 states.
<p><dd>Parameters<table border=1>
<tr><td>x
<td>type d
<td>Omittable : default value = 1
<td><tr><td>y
<td>type d
<td>Omittable : default value = 1
<td><tr><td>z
<td>type d
<td>Omittable : default value = 1
<td></table>
</dl></body></html>