The VOLUME button starts up tkmedit for the
currently select subject, and loads the currently
selected 3D data set (radio buttons to the
right).  Can also start tkstrip (see below).

If, for example, "wm" is selected, csurf first
looks for the first file in COR dir "wm":

  $SUBJECTS_DIR/<subj>/mri/wm/COR-001

If that file is not found, it looks for:

  $SUBJECTS_DIR/<subj>/mri/wm.mgz

To load a 3D volume data set not listed in the
radio buttons, type it into the entry at the
right.

Clicking the VOLUME button when it is purple
kills tkmedit (without asking to save anything).

Any text output generated by tkmedit is put
into the bottom log panel (when Preferences ->
View/Hide Logs has made the logs visible).

When csurf is closed, the entire contents of all
the logs since csurf was first opened are saved
into csurf.log in the current scripts dir (full
path reported on csurf quit), overwriting the
previous logfile (if any).

===================================
Startup Details
===================================

Here is the command line that is typically used
to start tkmedit:

cd $SUBJECTS_DIR/<subj>/scripts
/full/path/to/tkmedit martys09 orig \
  -tcl /tmp/TmpTclMed.64187 \
  -tkmeditinterface mini \
  -all3flag 0

Depending on how csurf Preferences have been set,
the following additional parameters may be
passed:

  -followglwinflag 0
  -doublebufferflag 0
  -glxdepth 12
  -wmfillthresh 30

The tmp tcl script referenced above looks like
this:

 open_window
 set plane $cor		;# starting plane (or $sag, $cor)
 set prad 1		;# brush radius
 set tiffoutflag 1		;# tiff, not SGI
 setfile insurf rh.orig	;# potential surface to load
 redraw

Starting tkstrip

A non-default shift-middle-click on the VOLUME
button will instead start up tkstrip, an
interactive skull stripping application, using
default parameters, on the current volume:

  tkstrip <current_subject> <current_volume>
