Пример #1
0
        private static string ToString(ERoiGenerationAlgorithm e)
        {
            switch (e)
            {
            default:
            case ERoiGenerationAlgorithm.UnknownOrEmpty:
            {
                return(string.Empty);
            }

            case ERoiGenerationAlgorithm.Automatic:
            {
                return(_algorithmAutomatic);
            }

            case ERoiGenerationAlgorithm.Semiautomatic:
            {
                return(_algorithmSemiAutomatic);
            }

            case ERoiGenerationAlgorithm.Manual:
            {
                return(_algorithmManual);
            }
            }
        }
Пример #2
0
 public DicomRTStructureSetROI(
     string roiNumber,
     string roiName,
     string referencedFrameOfRefUid,
     ERoiGenerationAlgorithm roiGenerationAlgorithm)
 {
     RoiNumber = roiNumber;
     RoiName   = roiName;
     ReferencedFrameOfRefUID = referencedFrameOfRefUid;
     ROIGenerationAlgorithm  = roiGenerationAlgorithm;
 }
Пример #3
0
        private static ERoiGenerationAlgorithm ParseRoiAlgorithm(string dString)
        {
            ERoiGenerationAlgorithm output = ERoiGenerationAlgorithm.UnknownOrEmpty;

            if (dString == _algorithmAutomatic)
            {
                output = ERoiGenerationAlgorithm.Automatic;
            }
            else
            if (dString == _algorithmSemiAutomatic)
            {
                output = ERoiGenerationAlgorithm.Semiautomatic;
            }
            else
            if (dString == _algorithmManual)
            {
                output = ERoiGenerationAlgorithm.Manual;
            }
            return(output);
        }