当前位置:网站首页>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,
}
边栏推荐
- 阿特拉斯atlas扭矩枪 USB通讯教程基于MTCOM
- [combinatorics] permutation and combination (set permutation, step-by-step processing example)
- 第04章_逻辑架构
- 视觉上位系统设计开发(halcon-winform)-3.图像控件
- 使用JMeter对WebService进行压力测试
- [transform] [NLP] first proposed transformer. The 2017 paper "attention is all you need" by Google brain team
- Analysis of development mode process based on SVN branch
- [set theory] inclusion exclusion principle (complex example)
- Win10 enterprise 2016 long term service activation tutorial
- Popular understanding of linear regression (I)
猜你喜欢
Redis主从、哨兵、集群模式介绍
【云原生训练营】模块八 Kubernetes 生命周期管理和服务发现
Troubleshooting method of CPU surge
第04章_逻辑架构
Incluxdb2 buckets create database
Remote server background hangs nohup
Jvm-04-runtime data area heap, method area
What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding
What is embedding (encoding an object into a low dimensional dense vector), NN in pytorch Principle and application of embedding
基础SQL教程
随机推荐
What is label encoding? How to distinguish and use one hot encoding and label encoding?
Finally, someone explained the financial risk management clearly
第04章_逻辑架构
QT common sentence notes
Kubernetes vous emmène du début à la fin
The markdown file obtains the pictures of the network and stores them locally and modifies the URL
Dataframe returns the whole row according to the value
Functional modules and application scenarios covered by the productization of user portraits
[combinatorics] permutation and combination (set permutation, step-by-step processing example)
Puppet automatic operation and maintenance troubleshooting cases
Global and Chinese market of solder bars 2022-2028: Research Report on technology, participants, trends, market size and share
【Transform】【NLP】首次提出Transformer,Google Brain团队2017年论文《Attention is all you need》
官网MapReduce实例代码详细批注
Global and Chinese market of lighting control components 2022-2028: Research Report on technology, participants, trends, market size and share
视觉上位系统设计开发(halcon-winform)-6.节点与宫格
el-switch 赋值后状态不变化
Stress test WebService with JMeter
[daily training] 395 Longest substring with at least k repeated characters
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
Markdown file titles are all reduced by one level