/vis/touchable/

Operations on touchables.

Sub-directories

/vis/touchable/set/Set vis attributes of current touchable.

Commands

centreAndZoomInOn
centreOn
draw
dump
extentForField
findPath
localAxes
showExtent
twinkle
volumeForField

centreAndZoomInOn

Centre and zoom in on the current touchable.
Use "/vis/set/touchable" to set current touchable.
You may also need "/vis/touchable/findPath".
Use "/vis/touchable/set" to set attributes.

Available at all Geant4 states.

centreOn

Centre the view on the current touchable.
Use "/vis/set/touchable" to set current touchable.
You may also need "/vis/touchable/findPath".
Use "/vis/touchable/set" to set attributes.

Available at all Geant4 states.

draw [extent]

Draw touchable.
If parameter == true, also draw extent as a white wireframe box.
Use "/vis/set/touchable" to set current touchable.
You may also need "/vis/touchable/findPath".
Use "/vis/touchable/set" to set attributes.

Available at all Geant4 states.

Parameters
extent type b Omittable : default value = 0

dump

Dump touchable attributes.
Use "/vis/set/touchable" to set current touchable.
You may also need "/vis/touchable/findPath".
Use "/vis/touchable/set" to set attributes.

Available at all Geant4 states.

extentForField [draw]

Set extent for field.
If parameter == true, also draw.
Use "/vis/set/touchable" to set current touchable.
You may also need "/vis/touchable/findPath".
Use "/vis/touchable/set" to set attributes.

Available at all Geant4 states.

Parameters
draw type b Omittable : default value = 0

findPath [physical-volume-name] [copy-no]

Prints the path to touchable and its logical volume mother given a physical volume name and copy no.
A search of all worlds is made and all physical volume names are matched against the argument of this command. If this is of the form "/regexp/", where regexp is a regular expression (see C++ regex), the physical volume name is matched against regexp by the usual rules of regular expression matching. Otherwise an exact match is required. For example, "/Shap/" matches "Shape1" and "Shape2".
It may help to see a textual representation of the geometry hierarchy of the worlds. Try "/vis/drawTree [worlds]" or one of the driver/browser combinations that have the required functionality, e.g., HepRep.

Available at all Geant4 states.

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

localAxes

Draw local axes.
Use "/vis/set/touchable" to set current touchable.
You may also need "/vis/touchable/findPath".
Use "/vis/touchable/set" to set attributes.

Available at all Geant4 states.

showExtent [draw]

Print extent of touchable.
If parameter == true, also draw.
Use "/vis/set/touchable" to set current touchable.
You may also need "/vis/touchable/findPath".
Use "/vis/touchable/set" to set attributes.

Available at all Geant4 states.

Parameters
draw type b Omittable : default value = 0

twinkle

Cause touchable to twinkle.
Use "/vis/set/touchable" to set current touchable.
You may also need "/vis/touchable/findPath".
Use "/vis/touchable/set" to set attributes.

Available at all Geant4 states.

volumeForField [draw]

Set volume for field.
If parameter == true, also draw.
Use "/vis/set/touchable" to set current touchable.
You may also need "/vis/touchable/findPath".
Use "/vis/touchable/set" to set attributes.

Available at all Geant4 states.

Parameters
draw type b Omittable : default value = 0