Skip to content
Snippets Groups Projects
Commit 071b71fe authored by Eric Wait's avatar Eric Wait
Browse files

Added a function to reset the transfer functions

parent ff9996d8
Branches
No related tags found
No related merge requests found
function ResetTransferFunctions()
[imageData, colors, channelData] = D3d.UI.Ctrl.GetUserData();
for c=1:length(channelData)
channelData(c).visible = 1;
channelData(c).alphaMod = 1.0;
channelData(c).minVal = 0.0;
channelData(c).midVal = 0.5;
channelData(c).maxVal = 1.0;
channelData(c).a = 0.0;
channelData(c).b = 1.0;
channelData(c).c = 0.0;
end
D3d.UI.Ctrl.SetUserData(imageData,colors,channelData);
D3d.UI.Ctrl.UpdateCurrentState();
end
\ No newline at end of file
......@@ -357,6 +357,7 @@ end
% --- Executes on button press in pb_ResetView.
function pb_ResetView_Callback(hObject, eventdata, handles)
D3d.Viewer.ResetView();
D3d.UI.Ctrl.ResetTransferFunctions();
D3d.Update();
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment