schangxiang@126.com
2025-11-04 f5ed29dc26c7cd952d56ec5721a2efc43cd25992
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media.Media3D;
using XImagingXhandler.XDAL;
 
namespace XHandler.Class.DataEx
{
    /// <summary>
    /// 菌落坐标实体扩展类
    /// </summary>
    public class BacteriaCoordinateEx: BacteriaCoordinate
    {
        /// <summary>
        /// 构造函数,初始设置坐标是否可编辑
        /// </summary>
        public BacteriaCoordinateEx() 
        {
            canEdit = true;
        }
        /// <summary>
        /// 带参构造函数,初始化菌落坐标实体对象
        /// </summary>
        /// <param name="bc"></param>
        public BacteriaCoordinateEx(BacteriaCoordinate bc) 
        {
            this.bacteriacoordinate_id = bc.bacteriacoordinate_id;
            this.coordinate_machine = bc.coordinate_machine;
            this.coordinate_pixel = bc.coordinate_pixel;
            canEdit = true;
        }
 
        /// <summary>
        /// 成像系统识别的,不能删除
        /// </summary>
        public bool canEdit { get; set; }
 
        /// <summary>
        /// 直径
        /// </summary>
        public string diameter { get; set; }
 
        /// <summary>
        /// 像素点坐标
        /// </summary>
        public Point pixelPoint { get; set; }
 
        /// <summary>
        /// 机械像素点坐标
        /// </summary>
        public Point3D machinePoint { get; set; }
 
        /// <summary>
        /// 菌落类型
        /// </summary>
        public string bacteria_type { get; set; }
        /// <summary>
        /// 形状
        /// </summary>
        public string bacteria_shape { get; set; }
 
        /// <summary>
        /// 颜色
        /// </summary>
        public string bacteria_color { get; set; }
 
        /// <summary>
        /// 边缘
        /// </summary>
        public string bacteria_edge { get; set; }
 
        /// <summary>
        /// 该菌是否人工挑选
        /// </summary>
        public bool isManualPick { get; set; } = false;
    }
}