namespace IRaCIS.Core.Domain.Models;
[Comment("分割文件版本")]
[Table("SegmentationVersion")]
public class SegmentationVersion : BaseAddAuditEntity
{
#region 导航属性
[JsonIgnore]
[ForeignKey("SegmentationId")]
public Segmentation Segmentation { get; set; }
#endregion
///
/// 分割分组Id
///
public Guid SegmentationId { get; set; }
///
/// 版本号,默认为1,每次更新分割分组时版本号加1
///
public int Version { get; set; } = 1;
///
/// 分组的Json
///
[MaxLength]
public string SegmentationJson { get; set; }
///
/// SEG文件的URL地址
///
[MaxLength]
public string SEGUrl { get; set; } = string.Empty;
///
/// 文件大小,单位字节
///
public long FileSize { get; set; } = 0;
///
/// 版本开始时间
///
public DateTime? StartTime { get; set; }
///
/// SgenmentList
///
[MaxLength]
public List SegmentList { get; set; } = new List();
}
public class SegmentVersionData: ISegment
{
///
/// 分割Id
///
public Guid SegmentationId { get; set; }
///
/// 任务Id
///
public Guid VisitTaskId { get; set; }
///
/// 分割的序号
///
public int SegmentNumber { get; set; }
///
/// 分割的Json
///
[MaxLength]
public string SegmentJson { get; set; } = string.Empty;
///
/// SegmentName
///
public string SegmentName { get; set; } = string.Empty;
///
/// 颜色
///
public string ColorRgb { get; set; } = string.Empty;
///
/// 均值
///
public decimal? AvgValue { get; set; }
///
/// 最大值
///
public decimal? MaxValue { get; set; }
///
/// 最小值
///
public decimal? MinValue { get; set; }
///
/// 方差
///
public decimal? Variance { get; set; }
///
/// 中位数
///
public decimal? Median { get; set; }
///
/// 体积
///
public decimal? Volume { get; set; }
///
/// 长径
///
public decimal? MajorAxis { get; set; }
///
/// 短径
///
public decimal? ShortAxis { get; set; }
///
/// Peak
///
public decimal? Peak { get; set; }
///
/// TLG
///
public decimal? TLG { get; set; }
///
/// MTV
///
public decimal? MTV { get; set; }
///
/// 是否锁定
///
public bool IsLock { get; set; } = false;
}