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

MATLAB takes control of the renderer during initial load

parent 21bf5cc1
Branches
Tags
No related merge requests found
...@@ -63,6 +63,7 @@ tmr = timer('TimerFcn',@CheckMessage,'ExecutionMode','fixedSpacing','Period',0.1 ...@@ -63,6 +63,7 @@ tmr = timer('TimerFcn',@CheckMessage,'ExecutionMode','fixedSpacing','Period',0.1
start(tmr); start(tmr);
lever_3d('init',arrowFaces, arrowVerts, arrowNorms,sphereFaces, sphereVerts, shereNorms); lever_3d('init',arrowFaces, arrowVerts, arrowNorms,sphereFaces, sphereVerts, shereNorms);
lever_3d('takeControl');
lever_3d('loadTexture',imageConvert(orgImage,'uint8'),[imageData.XPixelPhysicalSize,imageData.YPixelPhysicalSize,imageData.ZPixelPhysicalSize]); lever_3d('loadTexture',imageConvert(orgImage,'uint8'),[imageData.XPixelPhysicalSize,imageData.YPixelPhysicalSize,imageData.ZPixelPhysicalSize]);
...@@ -70,4 +71,5 @@ lever_3d('setCapturePath',captureFilePath,imageData.DatasetName); ...@@ -70,4 +71,5 @@ lever_3d('setCapturePath',captureFilePath,imageData.DatasetName);
uiControlFig = ViewerControls(); uiControlFig = ViewerControls();
lever_3d('resetView'); lever_3d('resetView');
lever_3d('releaseControl');
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment