コード例 #1
0
        private void FillOptimalFluences()
        {
            foreach (Beam b in beams.Where(x => !x.IsSetupField))
            {
                Fluence fluence = b.GetOptimalFluence();
                if (fluence != null)
                {
                    float[,] pixels = fluence.GetPixels();

                    var          SizeX  = fluence.XSizePixel;
                    var          SizeY  = fluence.YSizePixel;
                    int          stride = SizeY * 3 + (SizeY % 4);
                    BitmapSource bms    = DrawImage(fluence);
                    OptimalFluences.Add(new OptimalFluenceModel
                    {
                        FieldId           = b.Id,
                        OptimalFluenceMap = bms
                    });
                }
            }
        }
コード例 #2
0
 private bool CanPrint()
 {
     return(OptimalFluences.Count() != null);
 }