Ejemplo n.º 1
0
        private void AddStructureSet(StructureSet structureSet)
        {
            var selectableStructureSet = new SelectableObject <StructureSet, RegionOfInterest>(structureSet);

            selectableStructureSet.ChildrenObjectsSelectionChanged += SelectableStructureSet_ChildrenObjectsSelectionChanged;
            foreach (RegionOfInterest roi in structureSet.ROIs)
            {
                selectableStructureSet.AddChild(new SelectableObject <RegionOfInterest>(roi));
            }
            StructureSets.Add(selectableStructureSet);
        }
Ejemplo n.º 2
0
        private void AddStructureSet(StructureSet structureSet)
        {
            foreach (RegionOfInterest roi in structureSet.ROIs)
            {
                var selectableRegionOfInterest = new SelectableObject <RegionOfInterest, DoseVolumeHistogram>(roi);
                selectableRegionOfInterest.ChildrenObjectsSelectionChanged += SelectableStructureSet_ChildrenObjectsSelectionChanged;

                foreach (IDoseObject doseObject in Doses)
                {
                    var dvh = new DoseVolumeHistogram(doseObject, roi);
                    selectableRegionOfInterest.AddChild(new SelectableObject <DoseVolumeHistogram>(dvh));
                }

                RegionOfInterests.Add(selectableRegionOfInterest);
            }
        }