Пример #1
0
        private void SubscribeToMessages()
        {
            //Since this class manages normalisation, when a dose object is imported into the program set the relevant normalisation type
            MessengerInstance.Register <RTObjectAddedMessage <DicomDoseObject> >(this, x => {
                x.Value.Grid.NormalisationPercent        = RenderOptions.NormalisationIsodose;
                x.Value.Grid.NormalisationPOI            = RenderOptions.POI;
                x.Value.Grid.NormalisationType           = RenderOptions.NormalisationType;
                x.Value.Grid.RelativeNormalisationOption = RenderOptions.RelativeNormalisationOption;
            });

            MessengerInstance.Register <RTObjectAddedMessage <PointOfInterest> >(this, x =>
            {
                POIs.Add(x.Value);
                if (POIs.Count == 1)
                {
                    RenderOptions.POI = x.Value;
                }
            });
        }
Пример #2
0
 public void AddPOI(PointOfInterest poi)
 {
     POIs.Add(poi);
 }