Commit 86eea1ba authored by Lukas Aspöck's avatar Lukas Aspöck

- plotModel method now only plots in existing plot, if this plot is also a room model

parent 566c6cf6
......@@ -165,6 +165,7 @@ classdef itaRavenProject < handle
simulationDone = false
keepOutputFiles
plotModelHandle = [];
% [PrimarySources] %
sourceNameString
......@@ -660,9 +661,17 @@ classdef itaRavenProject < handle
comp2axesMapping = [3 1 2];
end
if nargin < 2
tgtAxes = gca;
if (ishandle(obj.plotModelHandle))
tgtAxes = obj.plotModelHandle;
else
figure;
tgtAxes = gca;
end
end
obj.plotModelHandle = tgtAxes;
if isempty(obj.model)
if iscell(obj.modelFileList)
for iRoom = 1 : numel(obj.modelFileList)
......@@ -4544,7 +4553,7 @@ classdef itaRavenProject < handle
hold on;
obj.plotModel();
obj.plotModel(gca);
set(gca, 'CameraViewAngle', 10);
end
......@@ -4758,7 +4767,7 @@ classdef itaRavenProject < handle
caxis([-60 max(max(sphereEnergy))]);
colorbar;
hold on;
obj.plotModel();
obj.plotModel(gca);
set(gca, 'CameraViewAngle', 10);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment