当前位置:网站首页>Halcon and WinForm study section 2
Halcon and WinForm study section 2
2022-07-03 15:19:00 【11eleven】
be based on halconWindow Design process customization Visual inspection scheme system , First on the renderings

Mainly provide Here are a few big pieces :
One 、 Toolbar support
Two 、 The toolbar drawing process integration scheme can be imported and exported
3、 ... and 、 Input and output of the data flow of the tool process node
Four 、 Device communication
5、 ... and 、 Use of global variables
The interface above took two weeks to implement , If you have time later , Introduce paragraph by paragraph .
Scheme configuration runs through the whole business
public class SchemeConfig {
public static SchemeInfo Scheme { set; get; }
public static HWindow_Final HWindowControl { set; get; }
}
public class SchemeInfo : BaseField, IEntity<long>
{
public SchemeInfo()
{
Id = GeneratePrimaryKeyIdHelper.GetPrimaryKeyId();
}
public long Id { get; set; }
/// <summary>
/// Scheme code
/// </summary>
public string Code { get; set; }
/// <summary>
/// Program name
/// </summary>
public string Name { get; set; }
/// <summary>
/// remarks
/// </summary>
public string Remark { get; set; }
public List<SchemeFlowInfoEntity> FlowList { set; get; }
public List<GlobalVariableModel> GlobalVariableList { set; get; }
/// <summary>
/// Device configuration
/// </summary>
public GlobalDeviceConfig GlobalDeviceConfig { set; get; }
}
public class GlobalDeviceConfig
{
public List<DeviceCommumicationClient> ClientList { set; get; } = new List<DeviceCommumicationClient>();
public List<CommumicationEventReceive> ReceiveList { set; get; } = new List<CommumicationEventReceive>();
public List<CommumicationEventSend> SendList { set; get; } = new List<CommumicationEventSend>();
}
/// <summary>
/// Image source
/// </summary>
public class ImageSourceContentModel: SchemeFlowNodeEntity
{
public override void InitData() {
NodeResultModels = new List<NodeResultModel>();
NodeResultModels.Add(new NodeResultModel() { NodeResultCode = NodeResultTypeEnum.ImageWidth.ToString(),NodeResultName =NodeResultTypeEnum.ImageWidth.GetDescription() });
NodeResultModels.Add(new NodeResultModel() { NodeResultCode = NodeResultTypeEnum.ImageHeight.ToString(), NodeResultName = NodeResultTypeEnum.ImageHeight.GetDescription() });
}
public int DefaultImageIndex { set; get; } = -1;
public string ImageFolderPath { set; get; }
/// <summary>
/// Image address PATH
/// </summary>
public List<string> ImagePathList { set; get; }
}
/// <summary>
/// Geometry creation
/// </summary>
public class GeometryContentModel : SchemeFlowNodeEntity
{
/// <summary>
/// ROIJSON
/// </summary>
public string RoiDataJson { set; get; }
/// <summary>
/// ROI The geometric
/// </summary>
public List<ROI> Regions { set; get; } = new List<ROI>();//roi aggregate
}
/// <summary>
/// blob
/// </summary>
public class BlobContentModel : SchemeFlowNodeEntity
{
}
/// <summary>
/// Color conversion
/// </summary>
public class ColorRgbContentModel : SchemeFlowNodeEntity
{
}
/// <summary>
/// Result
/// </summary>
public class ConditionResultContentModel : SchemeFlowNodeEntity
{
/// <summary>
/// Judge the condition 0: All in line ,1: Any condition meets
/// </summary>
public int JudgeType { set; get; }
public List<ResultConditionJudgeModel> JudgeList { set; get; } = new List<ResultConditionJudgeModel>();
public Color OkColor { set; get; }
public Color NgColor { set; get; }
public int ResultLocationX { set; get; }
public int ResultLocationY { set; get; }
}
public class ResultConditionJudgeModel {
public string VariableCode { set; get; }
public string VariableName { set; get; }
public decimal MinValue { set; get; }
public decimal MaxValue { set; get; }
}
/// <summary>
/// Tool node type
/// </summary>
public enum ToolNodeTypeEnum:long
{
/// <summary>
/// Image source
/// </summary>
ImageSource=0,
/// <summary>
/// The geometric
/// </summary>
Geometry=1,
/// <summary>
/// blob analysis
/// </summary>
Blob=2,
/// <summary>
/// Conditional results
/// </summary>
ConditionResult=3,
/// <summary>
/// Color conversion
/// </summary>
ColorRgb=4,
}
边栏推荐
- Global and Chinese markets for infrared solutions (for industrial, civil, national defense and security applications) 2022-2028: Research Report on technology, participants, trends, market size and sh
- 视觉上位系统设计开发(halcon-winform)-3.图像控件
- Summary of JVM knowledge points
- Idea does not specify an output path for the module
- redis缓存穿透,缓存击穿,缓存雪崩解决方案
- Série yolov5 (i) - - netron, un outil de visualisation de réseau
- Kubernetes - YAML文件解读
- 在MapReduce中利用MultipleOutputs输出多个文件
- Kubernetes帶你從頭到尾捋一遍
- 使用JMeter对WebService进行压力测试
猜你喜欢

mysql innodb 存储引擎的特性—行锁剖析
![[transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018](/img/2b/b23aeab584f89be6678c0fe059d4b6.png)
[transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018

GCC cannot find the library file after specifying the link library path

百度智能云助力石嘴山市升级“互联网+养老服务”智慧康养新模式

What are the composite types of Blackhorse Clickhouse, an OLAP database recognized in the industry

【云原生训练营】模块八 Kubernetes 生命周期管理和服务发现

The markdown file obtains the pictures of the network and stores them locally and modifies the URL

Solve the problem that pushgateway data will be overwritten by multiple push

Didi off the shelf! Data security is national security

【Transformer】入门篇-哈佛Harvard NLP的原作者在2018年初以逐行实现的形式呈现了论文The Annotated Transformer
随机推荐
求字符串函数和长度不受限制的字符串函数的详解
QT common sentence notes
Enable multi-threaded download of chrome and edge browsers
There are links in the linked list. Can you walk three steps faster or slower
Global and Chinese markets for ionization equipment 2022-2028: Research Report on technology, participants, trends, market size and share
Idea does not specify an output path for the module
Global and Chinese market of optical fiber connectors 2022-2028: Research Report on technology, participants, trends, market size and share
The first character of leetcode sword offer that only appears once (12)
百度智能云助力石嘴山市升级“互联网+养老服务”智慧康养新模式
High quality workplace human beings must use software to recommend, and you certainly don't know the last one
Kubernetes will show you from beginning to end
Using multipleoutputs to output multiple files in MapReduce
Yolov5 series (I) -- network visualization tool netron
SQL server安装位置改不了
【日常训练】395. 至少有 K 个重复字符的最长子串
"Seven weapons" in the "treasure chest" of machine learning: Zhou Zhihua leads the publication of the new book "machine learning theory guide"
【pytorch学习笔记】Transforms
qt使用QZxing生成二维码
[pytorch learning notes] datasets and dataloaders
Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)