Exemplo n.º 1
0
 public void ReCreateMatrix(ContainerInfo Container)
 {
     data = new CM2[(int)Container.Long, (int)Container.Width];
     initialize((int)Container.Long, (int)Container.Width);
     space = new System.Drawing.Rectangle(0, 0, (int)Container.Long, (int)Container.Width);
     _SQR = (int)Container.SQR; _CBM = (int)Container.CBM;
     restSQR = _SQR; RestCBM = _CBM;
     data[0, 0].StartIndex = true;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Pay attention to use "cm" as base unit. No convertion funtion included for scaling.
 /// </summary>
 /// <param name="Container"></param>
 public ContainerMatrix(ContainerInfo Container)
 {
     _owner = Container;
     data = new CM2[(int)Container.Width, (int)Container.Long];
     initialize((int)Container.Width, (int)Container.Long);
     space = new System.Drawing.Rectangle(0, 0, (int)Container.Width, (int)Container.Long);
     _SQR = (int)Container.SQR; _CBM = (int)Container.CBM;
     restSQR = _SQR; RestCBM = _CBM;
     ResetIndexes();// data[0, 0].StartIndex = true;
 }