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); } } }
public DicomRTStructureSetROI( string roiNumber, string roiName, string referencedFrameOfRefUid, ERoiGenerationAlgorithm roiGenerationAlgorithm) { RoiNumber = roiNumber; RoiName = roiName; ReferencedFrameOfRefUID = referencedFrameOfRefUid; ROIGenerationAlgorithm = roiGenerationAlgorithm; }
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); }