0001 classdef WBCMerge <WBC
0002 properties
0003 C1
0004 C2
0005 end
0006
0007 methods
0008 function cell = WBCMerge(tr1,tr2,xc,yc)
0009 cell = cell@WBC();
0010 c1 = tr1.Cells(end);
0011 c2 = tr2.Cells(end);
0012
0013
0014 cell.Row = yc;
0015 cell.Col = xc;
0016 cell.Frame = c1.Frame;
0017 cell.Id = [c1.Id c2.Id];
0018 cell.Area = c1.Area + c2.Area;
0019 cell.C1 = c1;
0020 cell.C2 = c2;
0021 cell.C1.Status = tr1.x(3:4);
0022 cell.C2.Status = tr2.x(3:4);
0023 cell.Status = [0 0];
0024 end
0025
0026 end
0027 end