LabelRelationModel.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using PaintDotNet.Annotation.Enum;
  2. using PaintDotNet.Base.SettingModel;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace PaintDotNet.Annotation.relationModel
  9. {
  10. /// <summary>
  11. /// 描述一级标注和二级标注的关系
  12. /// </summary>
  13. public class LabelRelationModel
  14. {
  15. /// <summary>
  16. /// 编号
  17. /// </summary>
  18. public int id;
  19. /// <summary>
  20. /// 一级标注的名称(文本、标记、直线、曲线、箭头、圆、多边形)
  21. /// </summary>
  22. public string name;
  23. public List<ChildLabel> childLabel;
  24. public class ChildLabel
  25. {
  26. /// <summary>
  27. /// 二级标注的名称
  28. /// </summary>
  29. public string name;
  30. /// <summary>
  31. /// 二级标注对应的枚举
  32. /// </summary>
  33. public DrawToolType drawToolType;
  34. /// <summary>
  35. /// 二级标注对应的设置的内部类的类型
  36. /// </summary>
  37. public Type type;
  38. }
  39. }
  40. }