/// <summary>
 /// 构造函数(Region和XLD,颜色,填充模式)
 /// </summary>
 public HObjectConfig(string name, HObject hObject, Color color, DrawModelType drawModelType)
 {
     this.Name          = name;
     this.HObject       = hObject;
     this.Color         = color;
     this.ColorStr      = HalconConfig.ColorToStr(color);
     this.DrawModelType = drawModelType;
 }
        /// <summary>
        /// 添加Region和XLD显示(Region和XLD,颜色,填充模式)
        /// </summary>
        public void AddHObject(string name, HObject hObject, Color color, DrawModelType drawModel)
        {
            HObject hobj = new HObject(hObject);

            HObjectList.Add(new HObjectConfig(name, hobj, color, drawModel));
        }