[vtkusers] How to import Volview transfer functions into vtk applications.
Jianlong Zhou
zhou at isg.cs.uni-magdeburg.de
Tue Aug 20 10:31:28 EDT 2002
Hi, vtkusers,
I tested a volume data set in Volview 1.3 and saved its transfer functions into files in
Volview format. Now I want to import these transfer functions into my own vtk
applications. The following is one of the Volview formatted transfer function files.
vtkKWTransferFunctionDialog
{
Versions
{
vtkKWObject 1.9
vtkKWWidget 1.13
vtkKWTransferFunctionDialog 1.21.2.6
}
NumberOfSOMarkers 4
SOMarker 0 0
SOMarker 0.2 1124
SOMarker 0.244444 1254
SOMarker 0.2 4095
NumberOfSCMarkers 6
SCMarker 0 0 0 0
SCMarker 0 0 0 4.16296
SCMarker 0.94052 0.94052 0.94052 1119.84
SCMarker 1 1 1 1124
SCMarker 1 1 1 1254
SCMarker 1 1 1 4095
NumberOfGOMarkers 4
GOMarker 1 0
GOMarker 1 204.75
GOMarker 1 409.5
GOMarker 1 4095
ScalarColorAndOpacityLocked 0
ColorSpace RGB
WindowLevel 0
AutoApply 0
ScalarDisplayBounds 0 1124
OpacityDisplayBounds 0 1
MagnitudeDisplayBounds 854 934
GradientMagnitudeOn 0
}
Is there any convenient way to load this transfer function file into a vtk application
using vtk classes or other ways?
Thank you very much.
regards,
Jianlong
More information about the vtkusers
mailing list