#
# HELP: SYNOPSIS:
# HELP:     colotux/user/UwQuickShow
# HELP:
# HELP: DESCRIPTION:
# HELP:     Quickly set up 3D data for use with ColoTux.
# HELP:     No denoising is performed, and no polyp detection.
# HELP:     However, underwater vision is enabled. You may want to
# HELP:     use UwRemoveSurface instead, if you want to be able to look 
# HELP:     through the fluid surface.
# HELP:
# HELP: SEE ALSO:
# HELP:     colotux/user/FastPolys, colotux/user/UwRemoveSurface
#

# Make sure we have all the data fields.
VOL_ALLOC_DEPTH
VOL_ALLOC_CLASS
{ CSR ${$root.rc==-1}
	! colotux/helper/ComplainScriptRerun
	QUIT
} CSR 0 0

# Shut down noisy progress bars.
WAITBARTITLE 0 25 Generating 3D Dataset

# Copy everything nicely into the class field.
VIEW_SET Main
GREYTOCLASS 0 ${$root.func.eccet.fromHU(-524)} 0 255
WAITBARTITLE 25 50 Generating 3D Dataset
GREYTOCLASS ${$root.func.eccet.fromHU(-524)} ${$root.func.eccet.fromHU(-94)} 255 255
WAITBARTITLE 50 75 Generating 3D Dataset
GREYTOCLASS ${$root.func.eccet.fromHU(-94)} ${$root.func.eccet.fromHU(406)} 255 0
WAITBARTITLE 75 100 Generating 3D Dataset
GREYTOCLASS ${$root.func.eccet.fromHU(406)} 65535 0 0
# Re-enable noisy progress bars.
WAITBARTITLE -1

! colotux/helper/Prepare3dClass
