namespace Cis.Application.Core.Component.MarkSeacher;
///
/// 标签计算结果
///
public class MarkLabelCalcResult
{
///
/// MarkLabel Id
///
public long Id { get; set; }
///
/// true 显示(在当前视频画面里面)
/// false 不显示(不在当前视频画面里面)
///
public bool InFlag { get; set; }
///
/// 画布 left 距离比例
///
public double CanvasLeftRatio { get; set; }
///
/// 画布 top 距离比例
///
public double CanvasTopRatio { get; set; }
public static MarkLabelCalcResult New(long id, bool inFlag)
{
return new()
{
Id = id,
InFlag = inFlag
};
}
public static MarkLabelCalcResult New(long id, bool inFlag, double canvasLeftRatio, double canvasTopRatio)
{
return new()
{
Id = id,
InFlag = inFlag,
CanvasLeftRatio = canvasLeftRatio,
CanvasTopRatio = canvasTopRatio
};
}
}