Skip to content

Commit d3368b0

Browse files
committed
Add GUI update in second example
1 parent 769323f commit d3368b0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/matRad_example2_photons.m

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,17 @@
182182
pln.propStf.couchAngles = zeros(1,numel(pln.propStf.gantryAngles));
183183
pln.propStf.numOfBeams = numel(pln.propStf.gantryAngles);
184184

185-
186-
185+
%Let's rerun the dose calculation and optimization
187186
stf = matRad_generateStf(ct,cst,pln);
188187
pln.propStf.isoCenter = vertcat(stf.isoCenter);
189188
dij = matRad_calcDoseInfluence(ct,cst,stf,pln);
190189
resultGUI_coarse = matRad_fluenceOptimization(dij,cst,pln);
191190

191+
%We append the new result to the resultGUI variable (recognized by the GUI)
192+
%using the identifier coarse
193+
resultGUI = matRad_appendResultGUI(resultGUI,resultGUI_coarse,false,'coarse');
194+
%A GUI update ensures the current values are updated
195+
matRadGUI;
192196

193197
%% Visual Comparison of results
194198
% Let's compare the new recalculation against the optimization result.

0 commit comments

Comments
 (0)