diff --git a/examples/matRad_example15_brachy.m b/examples/matRad_example15_brachy.m index 085d0609e..1685c803d 100644 --- a/examples/matRad_example15_brachy.m +++ b/examples/matRad_example15_brachy.m @@ -190,6 +190,9 @@ pln.propStf.couchAngles = []; pln.propStf.numOfBeams = 0; pln.numOfFractions = 1; +pln.propStf.isoCenter = matRad_getIsoCenter(cst, ct, 0); +pln.propStf.numOfRays = NaN ; + %% II.1 - view plan % Et voila! Our treatment plan structure is ready. Lets have a look: @@ -225,6 +228,7 @@ % visualize the optimized dose cubes. resultGUI = matRad_fluenceOptimization(dij,cst,pln); + matRadGUI; %% IV.1 Plot the Resulting Dose Slice diff --git a/matRad/gui/matRad_MainGUI.m b/matRad/gui/matRad_MainGUI.m index bd4a0eb86..9f3225230 100644 --- a/matRad/gui/matRad_MainGUI.m +++ b/matRad/gui/matRad_MainGUI.m @@ -34,6 +34,7 @@ DVHStatsWidget eventListeners GammaWidget + forceClose = false; end @@ -41,6 +42,7 @@ methods(Access = protected) + function this = createMenuBar(this) h1 = this.guiHandle; folder = fileparts(mfilename('fullpath')); diff --git a/matRad/gui/widgets/matRad_PlanWidget.m b/matRad/gui/widgets/matRad_PlanWidget.m index 9eacde823..d0bf44721 100644 --- a/matRad/gui/widgets/matRad_PlanWidget.m +++ b/matRad/gui/widgets/matRad_PlanWidget.m @@ -300,7 +300,7 @@ h30 = uicontrol(... 'Parent',h12,... 'Units','normalized',... - 'String',{'Generic','generic_MCsquare'},... + 'String',{'Generic','generic_MCsquare','HDR','LDR'},... 'TooltipString',txt,... 'Style','popupmenu',... 'Value',1,... diff --git a/matRad/gui/widgets/matRad_VisualizationWidget.m b/matRad/gui/widgets/matRad_VisualizationWidget.m index 50a8aa224..c747039b9 100644 --- a/matRad/gui/widgets/matRad_VisualizationWidget.m +++ b/matRad/gui/widgets/matRad_VisualizationWidget.m @@ -652,10 +652,14 @@ function getFromViewingWidget(this) set(handles.sliderBeamSelection,'Min',1,'Max',1, 'Value',1,'SliderStep',[1 1]); end - % Offset Slider (profile plot) - set(handles.sliderOffset,'Min',this.viewingWidgetHandle.OffsetMinMax(1),'Max',this.viewingWidgetHandle.OffsetMinMax(2),... - 'Value',this.viewingWidgetHandle.profileOffset,... - 'SliderStep',this.viewingWidgetHandle.OffsetSliderStep); + % Offset Slider (profile plot) + set(handles.sliderOffset,'Min',this.viewingWidgetHandle.OffsetMinMax(1),'Max',this.viewingWidgetHandle.OffsetMinMax(2),... + 'Value',this.viewingWidgetHandle.profileOffset,... + 'SliderStep',this.viewingWidgetHandle.OffsetSliderStep); + + + + %CT Scenario Slider if numScen > 1 diff --git a/matRad/steering/matRad_StfGeneratorBrachy.m b/matRad/steering/matRad_StfGeneratorBrachy.m index 3a4de97f6..2944268c4 100644 --- a/matRad/steering/matRad_StfGeneratorBrachy.m +++ b/matRad/steering/matRad_StfGeneratorBrachy.m @@ -102,6 +102,7 @@ function initialize(this) stf.numOfSeedsPerNeedle = this.needle.seedsNo; stf.numOfNeedles = sum(this.template.activeNeedles(:)); stf.totalNumOfBixels = stf.numOfSeedsPerNeedle * stf.numOfNeedles; % means total number of seeds + stf.numOfRays = NaN; %% generate 2D template points % the template origin is set at its center. In the image coordinate system,