Difference between revisions of "Sim12 Batch Guide"

From Nuclear Physics Group Documentation Pages
Jump to navigationJump to search
 
Line 28: Line 28:
 
==View Manipulation:==
 
==View Manipulation:==
  
Zoom (by a factor [x])
+
Zoom (by a factor [x])
/vis/viewer/zoom x
+
<pre>/vis/viewer/zoom x</pre>
  
Rotate (In theta [x] and phi [y])
+
Rotate (In theta [x] and phi [y])
/vis/viewer/set/viewpointThetaPhi x y
+
<pre>/vis/viewer/set/viewpointThetaPhi x y</pre>
  
Relative Pan (Pan by [x] and [y])
+
Pan by... (Pan by [x] and [y])
/vis/viewer/pan x y
+
<pre>/vis/viewer/pan x y</pre>
  
Absolute Pan (Pan to [x] and [y])
+
Pan to... (Pan to [x] and [y])
/vis/viewer/panTo x y
+
<pre>/vis/viewer/panTo x y</pre>
  
Refresh View
+
Refresh View
/vis/viewer/refresh
+
<pre>/vis/viewer/refresh</pre>
  
Reset View
+
Reset View (theta, phi, x, y all equal to 0)
/vis/viewer/reset
+
<pre>/vis/viewer/reset</pre>

Revision as of 16:25, 23 October 2007

Sim 12 Batch Mode Command Guide

This is a repository of common commands.

Setting the stage:

Open new view (of [x] size)

/vis/open OGLIX x

Draw xml file loaded by Sim12

/vis/view/drawVolume

Manipulate the display of some material:

Select a material to work with. (Without the back ticks)

/hdds/vis/matName 'material you want'

Set it's color and transparency. (r(ed) g(reen) b(lue) a(lpha), values between 0 and 1.)

/hdds/vis/setColor r g b a

Set the display type of an object. (0 -invisible 1 -wireframe 2 -surface)

/hdds/vis/setStyle x

Update the viewer with your changes.

/hdds/vis/updateVis


View Manipulation:

Zoom (by a factor [x])

/vis/viewer/zoom x

Rotate (In theta [x] and phi [y])

/vis/viewer/set/viewpointThetaPhi x y

Pan by... (Pan by [x] and [y])

/vis/viewer/pan x y

Pan to... (Pan to [x] and [y])

/vis/viewer/panTo x y

Refresh View

/vis/viewer/refresh

Reset View (theta, phi, x, y all equal to 0)

/vis/viewer/reset