-description "Example of the tranfer function editor for volume rendering"
+description "Example of the transfer function editor"
author "laurent.guigues at creatis.insa-lyon.fr"
category "example"
#load wxvtk
load kw
-new LoadHola image
+new LoadHola reader
//new PiecewiseFunction color
new kwTransferFunctionEditor color
new kwTransferFunctionEditor opacity
new VolumeRenderer renderer
new kwViewer3D viewer
-connect image.Out color.In
-connect image.Out opacity.In
-connect image.Out renderer.In
+connect reader.Out color.In
+connect reader.Out opacity.In
+connect reader.Out renderer.In
connect color.Out renderer.ColorFunction
connect opacity.Out renderer.OpacityFunction
connect renderer.Out viewer.In1
-connect color.BoxChange viewer.BoxExecute
+
+//connect color.BoxChange viewer.BoxExecute
load std
#set color.X "0 500 1000"