Beispiel #1
0
 private void GetCounts(ref int layerCount, ref int interlayerCount, ref int itemCount)
 {
     layerCount      = 0;
     interlayerCount = 0;
     itemCount       = 0;
     foreach (ILayer layer in Layers)
     {
         Layer3DBox blayer = layer as Layer3DBox;
         if (null != blayer)
         {
             ++layerCount;
             itemCount += blayer.BoxCount;
         }
         Layer3DCyl clayer = layer as Layer3DCyl;
         if (null != clayer)
         {
             ++layerCount;
             itemCount += clayer.CylinderCount;
         }
         InterlayerPos iLayer = layer as InterlayerPos;
         if (null != iLayer)
         {
             ++interlayerCount;
         }
     }
 }
Beispiel #2
0
        public InterlayerPos CreateNewInterlayer(double zLow, int typeId)
        {
            InterlayerPos layer = new InterlayerPos(zLow, typeId);

            Add(layer);
            return(layer);
        }
Beispiel #3
0
 private void GetCounts(ref int layerCount, ref int interlayerCount, ref int boxCount)
 {
     layerCount      = 0;
     interlayerCount = 0;
     boxCount        = 0;
     foreach (ILayer layer in Layers)
     {
         BoxLayer blayer = layer as BoxLayer;
         if (null != blayer)
         {
             ++layerCount;
             boxCount += blayer.BoxCount;
         }
         InterlayerPos iLayer = layer as InterlayerPos;
         if (null != iLayer)
         {
             ++interlayerCount;
         }
     }
 }