private void CreateAllVerificationPlans()
        {
            _outputPlans = new ResultCollection();

            //Generate blocks and related plans
            var blocks = CatheterBlockService.CreateBlocks(DicomServices.GetTotalNumberOfChannelsInPlan(_patientPlan));

            foreach (IBlockItem blockItem in blocks)
            {
                var newVerificationPlan = DicomServices.DeepCopy(_verificationPlan);
                CreateNewVerificationPlan(blockItem, ref newVerificationPlan);
                _outputPlans.Add(ResultItem.CreateResultItem(blockItem.ToString(), newVerificationPlan));
            }
        }
Пример #2
0
        private static void Process(IInputParameters input)
        {
            IDicomServices        dicomServices        = new DicomServices();
            ICatheterBlocks       catheterBlocks       = new CatheterBlocks(input.NumberOfChannelsInVerificationPlan);
            ICatheterBlockService catheterBlockService = new CatheterBlockService(catheterBlocks);

            var catheterOverloader =
                CatheterOverloaderFactory.Create(new CatheterOverloadingParametersAdapter(input, dicomServices),
                                                 dicomServices,
                                                 catheterBlockService);

            catheterOverloader.RunOverloading();
            catheterOverloader.SaveToFile("outputFile.dcm");
        }