├── .gitattributes
├── .gitignore
├── DirectShowHObjectToHImage
├── App.config
├── DirectShowHObjectToHImage.csproj
├── ExportedCodeFromHDevelop.cs
├── ExportedGrabImageAsync.cs
├── Form1.Designer.cs
├── Form1.cs
├── Form1.resx
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
└── ReadMe.txt
├── H12Python
├── H12Python.sln
└── H12Python
│ ├── .mypy_cache
│ └── 3.6
│ │ ├── @plugins_snapshot.json
│ │ ├── _ast.data.json
│ │ ├── _ast.meta.json
│ │ ├── _importlib_modulespec.data.json
│ │ ├── _importlib_modulespec.meta.json
│ │ ├── abc.data.json
│ │ ├── abc.meta.json
│ │ ├── ast.data.json
│ │ ├── ast.meta.json
│ │ ├── builtins.data.json
│ │ ├── builtins.meta.json
│ │ ├── codecs.data.json
│ │ ├── codecs.meta.json
│ │ ├── collections
│ │ ├── __init__.data.json
│ │ ├── __init__.meta.json
│ │ ├── abc.data.json
│ │ └── abc.meta.json
│ │ ├── importlib
│ │ ├── __init__.data.json
│ │ ├── __init__.meta.json
│ │ ├── abc.data.json
│ │ └── abc.meta.json
│ │ ├── io.data.json
│ │ ├── io.meta.json
│ │ ├── mmap.data.json
│ │ ├── mmap.meta.json
│ │ ├── os
│ │ ├── __init__.data.json
│ │ ├── __init__.meta.json
│ │ ├── path.data.json
│ │ └── path.meta.json
│ │ ├── posix.data.json
│ │ ├── posix.meta.json
│ │ ├── sys.data.json
│ │ ├── sys.meta.json
│ │ ├── time.data.json
│ │ ├── time.meta.json
│ │ ├── types.data.json
│ │ ├── types.meta.json
│ │ ├── typing.data.json
│ │ ├── typing.meta.json
│ │ ├── typing_extensions.data.json
│ │ └── typing_extensions.meta.json
│ ├── H12Python.py
│ ├── H12Python.pyproj
│ └── packages.config
├── H20TestEqualObj
├── H20TestEqualObj.sln
├── H20TestEqualObj
│ ├── App.config
│ ├── H20TestEqualObj.vbproj
│ ├── My Project
│ │ ├── Application.Designer.vb
│ │ ├── Application.myapp
│ │ ├── AssemblyInfo.vb
│ │ ├── Resources.Designer.vb
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.vb
│ │ └── Settings.settings
│ ├── packages.config
│ └── vbModule1.txt
└── HDevelop
│ └── TestNotEqualRegions.hdev
├── HSmartWindowControlExample
├── App.config
├── Form1.Designer.cs
├── Form1.cs
├── Form1.resx
├── HSmartWindowControlExample.csproj
├── Program.cs
└── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── HalconConnected
├── HalconConnected
│ ├── App.config
│ ├── Form1.Designer.cs
│ ├── Form1.cs
│ ├── Form1.resx
│ ├── Halcon_Connected.csproj
│ ├── Program.cs
│ └── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
└── Halcon_Connected.sln
├── HalconExamples.sln
├── HalconExtensionLibrary
├── Halcon.cs
├── HalconExtensionLibrary.csproj
└── Properties
│ └── AssemblyInfo.cs
├── HalconIronPythonWinForms
├── HalconIronPythonWinForms.py
├── HalconIronPythonWinForms.pyproj
└── packages.config
├── HalconIronPythonWpf
├── .mypy_cache
│ └── 3.7
│ │ ├── @plugins_snapshot.json
│ │ ├── _ast.data.json
│ │ ├── _ast.meta.json
│ │ ├── _importlib_modulespec.data.json
│ │ ├── _importlib_modulespec.meta.json
│ │ ├── abc.data.json
│ │ ├── abc.meta.json
│ │ ├── ast.data.json
│ │ ├── ast.meta.json
│ │ ├── builtins.data.json
│ │ ├── builtins.meta.json
│ │ ├── codecs.data.json
│ │ ├── codecs.meta.json
│ │ ├── collections
│ │ ├── __init__.data.json
│ │ ├── __init__.meta.json
│ │ ├── abc.data.json
│ │ └── abc.meta.json
│ │ ├── importlib
│ │ ├── __init__.data.json
│ │ ├── __init__.meta.json
│ │ ├── abc.data.json
│ │ └── abc.meta.json
│ │ ├── io.data.json
│ │ ├── io.meta.json
│ │ ├── mmap.data.json
│ │ ├── mmap.meta.json
│ │ ├── os
│ │ ├── __init__.data.json
│ │ ├── __init__.meta.json
│ │ ├── path.data.json
│ │ └── path.meta.json
│ │ ├── posix.data.json
│ │ ├── posix.meta.json
│ │ ├── sys.data.json
│ │ ├── sys.meta.json
│ │ ├── types.data.json
│ │ ├── types.meta.json
│ │ ├── typing.data.json
│ │ ├── typing.meta.json
│ │ ├── typing_extensions.data.json
│ │ └── typing_extensions.meta.json
├── HalconIronPythonWpf.py
├── HalconIronPythonWpf.pyproj
└── HalconIronPythonWpf.xaml
├── HalconScaledImage
├── .gitattributes
├── .gitignore
├── HalconScaledImage.sln
└── HalconScaledImage
│ ├── App.config
│ ├── Form1.Designer.vb
│ ├── Form1.resx
│ ├── Form1.vb
│ ├── HalconScaledImage.vbproj
│ └── My Project
│ ├── Application.Designer.vb
│ ├── Application.myapp
│ ├── AssemblyInfo.vb
│ ├── Resources.Designer.vb
│ ├── Resources.resx
│ ├── Settings.Designer.vb
│ ├── Settings.settings
│ └── app.manifest
├── HalconTemplateDemo
├── HalconTemplateDemo.sln
└── HalconTemplateDemo
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── HalconTemplateDemo.csproj
│ ├── Libraries
│ └── Rti.Library.dll
│ ├── Models
│ ├── Calibration.cs
│ ├── CalibrationMapData.cs
│ ├── CameraCalibrationSetupParameters.cs
│ ├── Enums.cs
│ ├── ICameraCalibrationProcessor.cs
│ ├── IProcessingResult.cs
│ ├── IProcessor.cs
│ ├── LoadImageProcessor.cs
│ ├── ProcessingResult.cs
│ ├── ProcessingResultsBase.cs
│ └── ProcessorBase.cs
│ ├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
│ ├── Utilities
│ ├── BindingUtilities.cs
│ ├── SettingsManager.cs
│ ├── SettingsManagerBase.cs
│ └── UtilityLibrary.cs
│ ├── ViewModels
│ ├── ICameraCalibrationViewModel.cs
│ ├── IMainViewModel.cs
│ ├── LoadImageViewModel.cs
│ ├── MainViewModel.cs
│ ├── MainViewModelBase.cs
│ ├── MenuItemVM.cs
│ └── ProcessViewModelBase.cs
│ ├── Views
│ ├── MainWindow.xaml
│ ├── MainWindow.xaml.cs
│ ├── NegativeIntegerConverter.cs
│ └── RadioButtonCheckedToEnumConverter.cs
│ ├── app.config
│ └── rti_logo.jpg
├── LicenseCheck
├── LicenseCheck.sln
└── LicenseCheck
│ ├── App.config
│ ├── LicenseCheck.csproj
│ ├── Program.cs
│ └── Properties
│ └── AssemblyInfo.cs
├── README.md
└── license.md
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 |
4 | # User-specific files
5 | *.suo
6 | *.user
7 | *.userosscache
8 | *.sln.docstates
9 |
10 | # User-specific files (MonoDevelop/Xamarin Studio)
11 | *.userprefs
12 |
13 | # Build results
14 | [Dd]ebug/
15 | [Dd]ebugPublic/
16 | [Rr]elease/
17 | [Rr]eleases/
18 | [Xx]64/
19 | [Xx]86/
20 | [Bb]uild/
21 | bld/
22 | [Bb]in/
23 | [Oo]bj/
24 |
25 | # Visual Studio 2015 cache/options directory
26 | .vs/
27 | # Uncomment if you have tasks that create the project's static files in wwwroot
28 | #wwwroot/
29 |
30 | # MSTest test Results
31 | [Tt]est[Rr]esult*/
32 | [Bb]uild[Ll]og.*
33 |
34 | # NUNIT
35 | *.VisualState.xml
36 | TestResult.xml
37 |
38 | # Build Results of an ATL Project
39 | [Dd]ebugPS/
40 | [Rr]eleasePS/
41 | dlldata.c
42 |
43 | # DNX
44 | project.lock.json
45 | artifacts/
46 |
47 | *_i.c
48 | *_p.c
49 | *_i.h
50 | *.ilk
51 | *.meta
52 | *.obj
53 | *.pch
54 | *.pdb
55 | *.pgc
56 | *.pgd
57 | *.rsp
58 | *.sbr
59 | *.tlb
60 | *.tli
61 | *.tlh
62 | *.tmp
63 | *.tmp_proj
64 | *.log
65 | *.vspscc
66 | *.vssscc
67 | .builds
68 | *.pidb
69 | *.svclog
70 | *.scc
71 |
72 | # Chutzpah Test files
73 | _Chutzpah*
74 |
75 | # Visual C++ cache files
76 | ipch/
77 | *.aps
78 | *.ncb
79 | *.opendb
80 | *.opensdf
81 | *.sdf
82 | *.cachefile
83 | *.VC.db
84 |
85 | # Visual Studio profiler
86 | *.psess
87 | *.vsp
88 | *.vspx
89 | *.sap
90 |
91 | # TFS 2012 Local Workspace
92 | $tf/
93 |
94 | # Guidance Automation Toolkit
95 | *.gpState
96 |
97 | # ReSharper is a .NET coding add-in
98 | _ReSharper*/
99 | *.[Rr]e[Ss]harper
100 | *.DotSettings.user
101 |
102 | # JustCode is a .NET coding add-in
103 | .JustCode
104 |
105 | # TeamCity is a build add-in
106 | _TeamCity*
107 |
108 | # DotCover is a Code Coverage Tool
109 | *.dotCover
110 |
111 | # NCrunch
112 | _NCrunch_*
113 | .*crunch*.local.xml
114 | nCrunchTemp_*
115 |
116 | # MightyMoose
117 | *.mm.*
118 | AutoTest.Net/
119 |
120 | # Web workbench (sass)
121 | .sass-cache/
122 |
123 | # Installshield output folder
124 | [Ee]xpress/
125 |
126 | # DocProject is a documentation generator add-in
127 | DocProject/buildhelp/
128 | DocProject/Help/*.HxT
129 | DocProject/Help/*.HxC
130 | DocProject/Help/*.hhc
131 | DocProject/Help/*.hhk
132 | DocProject/Help/*.hhp
133 | DocProject/Help/Html2
134 | DocProject/Help/html
135 |
136 | # Click-Once directory
137 | publish/
138 |
139 | # Publish Web Output
140 | *.[Pp]ublish.xml
141 | *.azurePubxml
142 |
143 | # TODO: Un-comment the next line if you do not want to checkin
144 | # your web deploy settings because they may include unencrypted
145 | # passwords
146 | #*.pubxml
147 | *.publishproj
148 |
149 | # NuGet Packages
150 | *.nupkg
151 | # The packages folder can be ignored because of Package Restore
152 | **/packages/*
153 | # except build/, which is used as an MSBuild target.
154 | !**/packages/build/
155 | # Uncomment if necessary however generally it will be regenerated when needed
156 | #!**/packages/repositories.config
157 | # NuGet v3's project.json files produces more ignoreable files
158 | *.nuget.props
159 | *.nuget.targets
160 |
161 | # Microsoft Azure Build Output
162 | csx/
163 | *.build.csdef
164 |
165 | # Microsoft Azure Emulator
166 | ecf/
167 | rcf/
168 |
169 | # Microsoft Azure ApplicationInsights config file
170 | ApplicationInsights.config
171 |
172 | # Windows Store app package directory
173 | AppPackages/
174 | BundleArtifacts/
175 |
176 | # Visual Studio cache files
177 | # files ending in .cache can be ignored
178 | *.[Cc]ache
179 | # but keep track of directories ending in .cache
180 | !*.[Cc]ache/
181 |
182 | # Others
183 | ClientBin/
184 | [Ss]tyle[Cc]op.*
185 | ~$*
186 | *~
187 | *.dbmdl
188 | *.dbproj.schemaview
189 | *.pfx
190 | *.publishsettings
191 | node_modules/
192 | orleans.codegen.cs
193 |
194 | # RIA/Silverlight projects
195 | Generated_Code/
196 |
197 | # Backup & report files from converting an old project file
198 | # to a newer Visual Studio version. Backup files are not needed,
199 | # because we have git ;-)
200 | _UpgradeReport_Files/
201 | Backup*/
202 | UpgradeLog*.XML
203 | UpgradeLog*.htm
204 |
205 | # SQL Server files
206 | *.mdf
207 | *.ldf
208 |
209 | # Business Intelligence projects
210 | *.rdl.data
211 | *.bim.layout
212 | *.bim_*.settings
213 |
214 | # Microsoft Fakes
215 | FakesAssemblies/
216 |
217 | # GhostDoc plugin setting file
218 | *.GhostDoc.xml
219 |
220 | # Node.js Tools for Visual Studio
221 | .ntvs_analysis.dat
222 |
223 | # Visual Studio 6 build log
224 | *.plg
225 |
226 | # Visual Studio 6 workspace options file
227 | *.opt
228 |
229 | # Visual Studio LightSwitch build output
230 | **/*.HTMLClient/GeneratedArtifacts
231 | **/*.DesktopClient/GeneratedArtifacts
232 | **/*.DesktopClient/ModelManifest.xml
233 | **/*.Server/GeneratedArtifacts
234 | **/*.Server/ModelManifest.xml
235 | _Pvt_Extensions
236 |
237 | # LightSwitch generated files
238 | GeneratedArtifacts/
239 | ModelManifest.xml
240 |
241 | # Paket dependency manager
242 | .paket/paket.exe
243 |
244 | # FAKE - F# Make
245 | .fake/
--------------------------------------------------------------------------------
/DirectShowHObjectToHImage/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/DirectShowHObjectToHImage/ExportedCodeFromHDevelop.cs:
--------------------------------------------------------------------------------
1 | //
2 | // File generated by HDevelop for HALCON/.NET (C#) Version 12.0.2
3 | //
4 |
5 | using HalconDotNet;
6 |
7 | public partial class HDevelopExport
8 | {
9 | #if !(NO_EXPORT_MAIN || NO_EXPORT_APP_MAIN)
10 | public HDevelopExport()
11 | {
12 | // Default settings used in HDevelop
13 | HOperatorSet.SetSystem("width", 512);
14 | HOperatorSet.SetSystem("height", 512);
15 | if (HalconAPI.isWindows)
16 | HOperatorSet.SetSystem("use_window_thread","true");
17 | action();
18 | }
19 | #endif
20 |
21 | #if !NO_EXPORT_MAIN
22 |
23 | // Main procedure
24 | private void action()
25 | {
26 | // Stack for temporary objects
27 | HObject[] OTemp = new HObject[20];
28 |
29 | // Local iconic variables
30 |
31 | HObject ho_NewImage, ho_Image, ho_ImageSelected = null;
32 | HObject ho_Image1 = null;
33 |
34 | // Local control variables
35 |
36 | HTuple hv_AcqHandle = null, hv_ChannelCount = null;
37 | HTuple hv_Index = null, hv_Pointer = new HTuple(), hv_Type = new HTuple();
38 | HTuple hv_Width = new HTuple(), hv_Height = new HTuple();
39 | // Initialize local and output iconic variables
40 | HOperatorSet.GenEmptyObj(out ho_NewImage);
41 | HOperatorSet.GenEmptyObj(out ho_Image);
42 | HOperatorSet.GenEmptyObj(out ho_ImageSelected);
43 | HOperatorSet.GenEmptyObj(out ho_Image1);
44 | //Image Acquisition 01: Code generated by Image Acquisition 01
45 | ho_NewImage.Dispose();
46 | HOperatorSet.GenEmptyObj(out ho_NewImage);
47 | HOperatorSet.OpenFramegrabber("DirectShow", 1, 1, 0, 0, 0, 0, "default", 8, "rgb",
48 | -1, "false", "default", "[0] Integrated Camera", 0, -1, out hv_AcqHandle);
49 | HOperatorSet.GrabImageStart(hv_AcqHandle, -1);
50 | //Image Acquisition 01: Do something
51 | ho_Image.Dispose();
52 | HOperatorSet.GrabImageAsync(out ho_Image, hv_AcqHandle, -1);
53 | HOperatorSet.CountChannels(ho_Image, out hv_ChannelCount);
54 | HTuple end_val7 = hv_ChannelCount;
55 | HTuple step_val7 = 1;
56 | for (hv_Index = 1; hv_Index.Continue(end_val7, step_val7); hv_Index = hv_Index.TupleAdd(step_val7))
57 | {
58 | ho_ImageSelected.Dispose();
59 | HOperatorSet.AccessChannel(ho_Image, out ho_ImageSelected, hv_Index);
60 | HOperatorSet.GetImagePointer1(ho_ImageSelected, out hv_Pointer, out hv_Type,
61 | out hv_Width, out hv_Height);
62 | ho_Image1.Dispose();
63 | HOperatorSet.GenImage1(out ho_Image1, "byte", hv_Width, hv_Height, hv_Pointer);
64 | {
65 | HObject ExpTmpOutVar_0;
66 | HOperatorSet.AppendChannel(ho_NewImage, ho_Image1, out ExpTmpOutVar_0);
67 | ho_NewImage.Dispose();
68 | ho_NewImage = ExpTmpOutVar_0;
69 | }
70 | }
71 | HOperatorSet.CloseFramegrabber(hv_AcqHandle);
72 | ho_NewImage.Dispose();
73 | ho_Image.Dispose();
74 | ho_ImageSelected.Dispose();
75 | ho_Image1.Dispose();
76 | }
77 |
78 | #endif
79 | }
80 |
81 | #if !(NO_EXPORT_MAIN || NO_EXPORT_APP_MAIN)
82 | public class HDevelopExportApp
83 | {
84 | static void Main(string[] args)
85 | {
86 | new HDevelopExport();
87 | }
88 | }
89 | #endif
--------------------------------------------------------------------------------
/DirectShowHObjectToHImage/ExportedGrabImageAsync.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rtigithub/HalconExamples/1cb5bf9a93bbd4ec79035ec5e74c60aecff1fd8b/DirectShowHObjectToHImage/ExportedGrabImageAsync.cs
--------------------------------------------------------------------------------
/DirectShowHObjectToHImage/Form1.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace DirectShowHObjectToHImage
2 | {
3 | partial class Form1
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.hWindowControl1 = new HalconDotNet.HWindowControl();
32 | this.buttonGrabImage = new System.Windows.Forms.Button();
33 | this.SuspendLayout();
34 | //
35 | // hWindowControl1
36 | //
37 | this.hWindowControl1.BackColor = System.Drawing.Color.Black;
38 | this.hWindowControl1.BorderColor = System.Drawing.Color.Black;
39 | this.hWindowControl1.ImagePart = new System.Drawing.Rectangle(0, 0, 640, 480);
40 | this.hWindowControl1.Location = new System.Drawing.Point(12, 12);
41 | this.hWindowControl1.Name = "hWindowControl1";
42 | this.hWindowControl1.Size = new System.Drawing.Size(488, 408);
43 | this.hWindowControl1.TabIndex = 0;
44 | this.hWindowControl1.WindowSize = new System.Drawing.Size(488, 408);
45 | //
46 | // buttonGrabImage
47 | //
48 | this.buttonGrabImage.Location = new System.Drawing.Point(12, 426);
49 | this.buttonGrabImage.Name = "buttonGrabImage";
50 | this.buttonGrabImage.Size = new System.Drawing.Size(140, 43);
51 | this.buttonGrabImage.TabIndex = 1;
52 | this.buttonGrabImage.Text = "Grab Image";
53 | this.buttonGrabImage.UseVisualStyleBackColor = true;
54 | this.buttonGrabImage.Click += new System.EventHandler(this.buttonGrabImage_Click);
55 | //
56 | // Form1
57 | //
58 | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
59 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
60 | this.ClientSize = new System.Drawing.Size(807, 594);
61 | this.Controls.Add(this.buttonGrabImage);
62 | this.Controls.Add(this.hWindowControl1);
63 | this.Name = "Form1";
64 | this.Text = "Form1";
65 | this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
66 | this.Shown += new System.EventHandler(this.Form1_Shown);
67 | this.ResumeLayout(false);
68 |
69 | }
70 |
71 | #endregion
72 |
73 | private HalconDotNet.HWindowControl hWindowControl1;
74 | private System.Windows.Forms.Button buttonGrabImage;
75 | }
76 | }
77 |
78 |
--------------------------------------------------------------------------------
/DirectShowHObjectToHImage/Form1.cs:
--------------------------------------------------------------------------------
1 | // ***********************************************************************
2 | // Assembly : DirectShowHObjectToHImage
3 | // Author : Resolution Technology, Inc.
4 | // Created : 09-07-2016
5 | // Last Modified On : 05-24-2017
6 | // ***********************************************************************
7 | //
8 | // Copyright © 2016, 2017
9 | //
10 | //
11 | // ***********************************************************************
12 |
13 | namespace DirectShowHObjectToHImage
14 | {
15 | using System;
16 | using System.Windows.Forms;
17 |
18 | ///
19 | /// Class Form1.
20 | ///
21 | ///
22 | public partial class Form1 : Form
23 | {
24 | #region Public Constructors
25 |
26 | ///
27 | /// Initializes a new instance of the class.
28 | ///
29 | public Form1()
30 | {
31 | InitializeComponent();
32 | }
33 |
34 | #endregion Public Constructors
35 |
36 | #region Private Methods
37 |
38 | ///
39 | /// Handles the Click event of the buttonGrabImage control.
40 | ///
41 | /// The source of the event.
42 | /// The instance containing the event data.
43 | private void buttonGrabImage_Click(object sender, EventArgs e)
44 | {
45 | GrabImage();
46 | HalconImage.DispObj(hWindowControl1.HalconWindow);
47 | }
48 |
49 | ///
50 | /// Handles the FormClosing event of the Form1 control.
51 | ///
52 | /// The source of the event.
53 | /// The instance containing the event data.
54 | private void Form1_FormClosing(object sender, FormClosingEventArgs e)
55 | {
56 | ShutDownHalcon(ho_Image, hv_AcqHandle);
57 | }
58 |
59 | ///
60 | /// Handles the Shown event of the Form1 control.
61 | ///
62 | /// The source of the event.
63 | /// The instance containing the event data.
64 | private void Form1_Shown(object sender, EventArgs e)
65 | {
66 | InitializeFramegrabber();
67 | }
68 |
69 | #endregion Private Methods
70 | }
71 | }
--------------------------------------------------------------------------------
/DirectShowHObjectToHImage/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace DirectShowHObjectToHImage
5 | {
6 | internal static class Program
7 | {
8 | #region Private Methods
9 |
10 | ///
11 | /// The main entry point for the application.
12 | ///
13 | [STAThread]
14 | private static void Main()
15 | {
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 | Application.Run(new Form1());
19 | }
20 |
21 | #endregion Private Methods
22 | }
23 | }
--------------------------------------------------------------------------------
/DirectShowHObjectToHImage/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyTitle("DirectShowHObjectToHImage")]
8 | [assembly: AssemblyDescription("")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("Resolution Technology, Inc.")]
11 | [assembly: AssemblyProduct("DirectShowHObjectToHImage")]
12 | [assembly: AssemblyCopyright("Copyright © 2016, 2017")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | // Setting ComVisible to false makes the types in this assembly not visible
17 | // to COM components. If you need to access a type in this assembly from
18 | // COM, set the ComVisible attribute to true on that type.
19 | [assembly: ComVisible(false)]
20 |
21 | // The following GUID is for the ID of the typelib if this project is exposed to COM
22 | [assembly: Guid("c0d87982-70ac-4021-8adb-4bdab0f634ec")]
23 |
24 | // Version information for an assembly consists of the following four values:
25 | //
26 | // Major Version
27 | // Minor Version
28 | // Build Number
29 | // Revision
30 | //
31 | // You can specify all the values or you can default the Build and Revision Numbers
32 | // by using the '*' as shown below:
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
--------------------------------------------------------------------------------
/DirectShowHObjectToHImage/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DirectShowHObjectToHImage.Properties
12 | {
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources
26 | {
27 |
28 | private static global::System.Resources.ResourceManager resourceMan;
29 |
30 | private static global::System.Globalization.CultureInfo resourceCulture;
31 |
32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
33 | internal Resources()
34 | {
35 | }
36 |
37 | ///
38 | /// Returns the cached ResourceManager instance used by this class.
39 | ///
40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
41 | internal static global::System.Resources.ResourceManager ResourceManager
42 | {
43 | get
44 | {
45 | if ((resourceMan == null))
46 | {
47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DirectShowHObjectToHImage.Properties.Resources", typeof(Resources).Assembly);
48 | resourceMan = temp;
49 | }
50 | return resourceMan;
51 | }
52 | }
53 |
54 | ///
55 | /// Overrides the current thread's CurrentUICulture property for all
56 | /// resource lookups using this strongly typed resource class.
57 | ///
58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
59 | internal static global::System.Globalization.CultureInfo Culture
60 | {
61 | get
62 | {
63 | return resourceCulture;
64 | }
65 | set
66 | {
67 | resourceCulture = value;
68 | }
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/DirectShowHObjectToHImage/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DirectShowHObjectToHImage.Properties
12 | {
13 |
14 |
15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 | {
19 |
20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21 |
22 | public static Settings Default
23 | {
24 | get
25 | {
26 | return defaultInstance;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/DirectShowHObjectToHImage/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/DirectShowHObjectToHImage/ReadMe.txt:
--------------------------------------------------------------------------------
1 | Add HalconWindow control to form.
2 | Add exported code to solution.
3 | Wrap exported code with project namespace.
4 | Change partial class name HDevelopExport to same class name as form.
5 | Set NO_EXPORT_APP_MAIN conditional compilation symbol
6 | Refactor HOperatorSet.CloseFramegrabber(hv_AcqHandle); and ho_Image.Dispose(); to ShutDownHalcon method.
7 | Refactor ho_image and hv_AcqHandle as field and encapsulate as property.
8 | Refactor OpenFrameGrabber and GrabImageStart calls to InitializeFramegrabber method.
9 | Refactor the ho_Image.Dispose and GrabImageAsync calls to GrabImage method.
10 | Add ShutDownHalcon to FormClosing event.
11 | Add InitializeFramegrabber to Shown event.
12 | Add the HobjectToHimage to your project.
13 | Modify the Ho_image property to return the HObject as an HImage via the HobjectToHimage method.
--------------------------------------------------------------------------------
/H12Python/H12Python.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "H12Python", "H12Python\H12Python.pyproj", "{4C2C08D8-15FE-4AF7-A72B-AE8F33407DC2}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {4C2C08D8-15FE-4AF7-A72B-AE8F33407DC2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {4C2C08D8-15FE-4AF7-A72B-AE8F33407DC2}.Release|Any CPU.ActiveCfg = Release|Any CPU
16 | EndGlobalSection
17 | GlobalSection(SolutionProperties) = preSolution
18 | HideSolutionNode = FALSE
19 | EndGlobalSection
20 | EndGlobal
21 |
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/@plugins_snapshot.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/_ast.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567800217, "dep_lines": [1, 2, 1, 1], "dep_prios": [10, 5, 5, 30], "dependencies": ["sys", "typing", "builtins", "abc"], "hash": "e4cd8a8eaf09e16e632732ea78340caa", "id": "_ast", "ignore_all": true, "interface_hash": "f2f5106949ae310dff67f8ac084ce2db", "mtime": 1567800191, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\_ast.pyi", "size": 7915, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/_importlib_modulespec.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567800217, "dep_lines": [10, 11, 12, 1], "dep_prios": [5, 10, 5, 5], "dependencies": ["abc", "sys", "typing", "builtins"], "hash": "03f8e6867e4fa4f51892253d36056e2b", "id": "_importlib_modulespec", "ignore_all": true, "interface_hash": "c829dcfe968d869c41747d87da7cd37b", "mtime": 1567800191, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\_importlib_modulespec.pyi", "size": 1568, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/abc.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567800217, "dep_lines": [1, 1], "dep_prios": [5, 5], "dependencies": ["typing", "builtins"], "hash": "2584c2f5c4667a231d7afdd171e0b0a2", "id": "abc", "ignore_all": true, "interface_hash": "d49e79196951bbb09b7f0e7a7cd69cb4", "mtime": 1567800191, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\abc.pyi", "size": 613, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/ast.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567800217, "dep_lines": [3, 7, 9, 15, 1, 1], "dep_prios": [10, 5, 5, 5, 5, 30], "dependencies": ["sys", "typing", "typing_extensions", "_ast", "builtins", "abc"], "hash": "19491b293d80af97a65f0e74866977b1", "id": "ast", "ignore_all": true, "interface_hash": "f3621b9d36f637b9fa5e17ee33ca0417", "mtime": 1567800191, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\ast.pyi", "size": 2047, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/builtins.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567800217, "dep_lines": [4, 12, 13, 14, 15], "dep_prios": [5, 5, 5, 5, 10], "dependencies": ["typing", "abc", "ast", "types", "sys"], "hash": "2744379e870a74fdf20211d74a450bbd", "id": "builtins", "ignore_all": true, "interface_hash": "35d162979dc1261fcd448214aad11e85", "mtime": 1567800189, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\2and3\\builtins.pyi", "size": 69554, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/codecs.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567800217, "dep_lines": [1, 2, 4, 5, 1], "dep_prios": [10, 5, 5, 10, 5], "dependencies": ["sys", "typing", "abc", "types", "builtins"], "hash": "cc00b8c3bb064aa4dae150ee47b70caa", "id": "codecs", "ignore_all": true, "interface_hash": "39eea08b8aa73fc8332368b4fb93107d", "mtime": 1567800189, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\2and3\\codecs.pyi", "size": 11061, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/collections/__init__.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": ["collections.abc"], "data_mtime": 1567800217, "dep_lines": [2, 3, 9, 1, 1], "dep_prios": [10, 5, 10, 5, 30], "dependencies": ["sys", "typing", "collections.abc", "builtins", "abc"], "hash": "566cbab72aead679a4d89c4eaeb8bfe8", "id": "collections", "ignore_all": true, "interface_hash": "fa6d66429236f2c2b1b0f236c3644739", "mtime": 1567800192, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\collections\\__init__.pyi", "size": 15217, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/collections/abc.data.json:
--------------------------------------------------------------------------------
1 | {".class": "MypyFile", "_fullname": "collections.abc", "is_partial_stub_package": false, "is_stub": true, "names": {".class": "SymbolTable", "AsyncGenerator": {".class": "SymbolTableNode", "cross_ref": "typing.AsyncGenerator", "kind": "Gdef"}, "AsyncIterable": {".class": "SymbolTableNode", "cross_ref": "typing.AsyncIterable", "kind": "Gdef"}, "AsyncIterator": {".class": "SymbolTableNode", "cross_ref": "typing.AsyncIterator", "kind": "Gdef"}, "Awaitable": {".class": "SymbolTableNode", "cross_ref": "typing.Awaitable", "kind": "Gdef"}, "ByteString": {".class": "SymbolTableNode", "cross_ref": "typing.ByteString", "kind": "Gdef"}, "Callable": {".class": "SymbolTableNode", "cross_ref": "typing.Callable", "kind": "Gdef"}, "Collection": {".class": "SymbolTableNode", "cross_ref": "typing.Collection", "kind": "Gdef"}, "Container": {".class": "SymbolTableNode", "cross_ref": "typing.Container", "kind": "Gdef"}, "Coroutine": {".class": "SymbolTableNode", "cross_ref": "typing.Coroutine", "kind": "Gdef"}, "Generator": {".class": "SymbolTableNode", "cross_ref": "typing.Generator", "kind": "Gdef"}, "Hashable": {".class": "SymbolTableNode", "cross_ref": "typing.Hashable", "kind": "Gdef"}, "ItemsView": {".class": "SymbolTableNode", "cross_ref": "typing.ItemsView", "kind": "Gdef"}, "Iterable": {".class": "SymbolTableNode", "cross_ref": "typing.Iterable", "kind": "Gdef"}, "Iterator": {".class": "SymbolTableNode", "cross_ref": "typing.Iterator", "kind": "Gdef"}, "KeysView": {".class": "SymbolTableNode", "cross_ref": "typing.KeysView", "kind": "Gdef"}, "Mapping": {".class": "SymbolTableNode", "cross_ref": "typing.Mapping", "kind": "Gdef"}, "MappingView": {".class": "SymbolTableNode", "cross_ref": "typing.MappingView", "kind": "Gdef"}, "MutableMapping": {".class": "SymbolTableNode", "cross_ref": "typing.MutableMapping", "kind": "Gdef"}, "MutableSequence": {".class": "SymbolTableNode", "cross_ref": "typing.MutableSequence", "kind": "Gdef"}, "MutableSet": {".class": "SymbolTableNode", "cross_ref": "typing.MutableSet", "kind": "Gdef"}, "Reversible": {".class": "SymbolTableNode", "cross_ref": "typing.Reversible", "kind": "Gdef"}, "Sequence": {".class": "SymbolTableNode", "cross_ref": "typing.Sequence", "kind": "Gdef"}, "Set": {".class": "SymbolTableNode", "cross_ref": "typing.AbstractSet", "kind": "Gdef"}, "Sized": {".class": "SymbolTableNode", "cross_ref": "typing.Sized", "kind": "Gdef"}, "ValuesView": {".class": "SymbolTableNode", "cross_ref": "typing.ValuesView", "kind": "Gdef"}, "__doc__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "collections.abc.__doc__", "name": "__doc__", "type": "builtins.str"}}, "__file__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "collections.abc.__file__", "name": "__file__", "type": "builtins.str"}}, "__name__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "collections.abc.__name__", "name": "__name__", "type": "builtins.str"}}, "__package__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "collections.abc.__package__", "name": "__package__", "type": "builtins.str"}}, "sys": {".class": "SymbolTableNode", "cross_ref": "sys", "kind": "Gdef", "module_hidden": true, "module_public": false}}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\collections\\abc.pyi"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/collections/abc.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567800217, "dep_lines": [4, 6, 1, 1, 1], "dep_prios": [10, 5, 5, 30, 30], "dependencies": ["sys", "collections", "builtins", "abc", "typing"], "hash": "197c87e716a5e5bf05eb5bca4ecd0344", "id": "collections.abc", "ignore_all": true, "interface_hash": "8c510f0ae0f615916cec4d3622894c74", "mtime": 1567800192, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\collections\\abc.pyi", "size": 1027, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/importlib/__init__.data.json:
--------------------------------------------------------------------------------
1 | {".class": "MypyFile", "_fullname": "importlib", "is_partial_stub_package": false, "is_stub": true, "names": {".class": "SymbolTable", "Any": {".class": "SymbolTableNode", "cross_ref": "typing.Any", "kind": "Gdef", "module_hidden": true, "module_public": false}, "Loader": {".class": "SymbolTableNode", "cross_ref": "_importlib_modulespec.Loader", "kind": "Gdef", "module_hidden": true, "module_public": false}, "Mapping": {".class": "SymbolTableNode", "cross_ref": "typing.Mapping", "kind": "Gdef", "module_hidden": true, "module_public": false}, "Optional": {".class": "SymbolTableNode", "cross_ref": "typing.Optional", "kind": "Gdef", "module_hidden": true, "module_public": false}, "Sequence": {".class": "SymbolTableNode", "cross_ref": "typing.Sequence", "kind": "Gdef", "module_hidden": true, "module_public": false}, "__doc__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "importlib.__doc__", "name": "__doc__", "type": "builtins.str"}}, "__file__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "importlib.__file__", "name": "__file__", "type": "builtins.str"}}, "__import__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [0, 1, 1, 1, 1], "arg_names": ["name", "globals", "locals", "fromlist", "level"], "flags": [], "fullname": "importlib.__import__", "name": "__import__", "type": {".class": "CallableType", "arg_kinds": [0, 1, 1, 1, 1], "arg_names": ["name", "globals", "locals", "fromlist", "level"], "arg_types": ["builtins.str", {".class": "UnionType", "items": [{".class": "Instance", "args": ["builtins.str", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "typing.Mapping"}, {".class": "NoneType"}]}, {".class": "UnionType", "items": [{".class": "Instance", "args": ["builtins.str", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "type_ref": "typing.Mapping"}, {".class": "NoneType"}]}, {".class": "Instance", "args": ["builtins.str"], "type_ref": "typing.Sequence"}, "builtins.int"], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "__import__", "ret_type": "_importlib_modulespec.ModuleType", "variables": []}}}, "__name__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "importlib.__name__", "name": "__name__", "type": "builtins.str"}}, "__package__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "importlib.__package__", "name": "__package__", "type": "builtins.str"}}, "find_loader": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [0, 1], "arg_names": ["name", "path"], "flags": [], "fullname": "importlib.find_loader", "name": "find_loader", "type": {".class": "CallableType", "arg_kinds": [0, 1], "arg_names": ["name", "path"], "arg_types": ["builtins.str", {".class": "UnionType", "items": ["builtins.str", {".class": "NoneType"}]}], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "find_loader", "ret_type": {".class": "UnionType", "items": ["_importlib_modulespec.Loader", {".class": "NoneType"}]}, "variables": []}}}, "import_module": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [0, 1], "arg_names": ["name", "package"], "flags": [], "fullname": "importlib.import_module", "name": "import_module", "type": {".class": "CallableType", "arg_kinds": [0, 1], "arg_names": ["name", "package"], "arg_types": ["builtins.str", {".class": "UnionType", "items": ["builtins.str", {".class": "NoneType"}]}], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "import_module", "ret_type": "_importlib_modulespec.ModuleType", "variables": []}}}, "invalidate_caches": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [], "arg_names": [], "flags": [], "fullname": "importlib.invalidate_caches", "name": "invalidate_caches", "type": {".class": "CallableType", "arg_kinds": [], "arg_names": [], "arg_types": [], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "invalidate_caches", "ret_type": {".class": "NoneType"}, "variables": []}}}, "reload": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["module"], "flags": [], "fullname": "importlib.reload", "name": "reload", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["module"], "arg_types": ["_importlib_modulespec.ModuleType"], "bound_args": [], "def_extras": {"first_arg": null}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "reload", "ret_type": "_importlib_modulespec.ModuleType", "variables": []}}}, "sys": {".class": "SymbolTableNode", "cross_ref": "sys", "kind": "Gdef", "module_hidden": true, "module_public": false}, "types": {".class": "SymbolTableNode", "cross_ref": "types", "kind": "Gdef", "module_hidden": true, "module_public": false}}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\importlib\\__init__.pyi"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/importlib/__init__.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": ["importlib.abc"], "data_mtime": 1567800217, "dep_lines": [1, 2, 3, 4, 1], "dep_prios": [5, 10, 10, 5, 5], "dependencies": ["importlib.abc", "sys", "types", "typing", "builtins"], "hash": "c14e5ab6e77f6fcc00235895242e880e", "id": "importlib", "ignore_all": true, "interface_hash": "b2718f2331f820a50c4e878a1d8b367c", "mtime": 1567800193, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\importlib\\__init__.pyi", "size": 608, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/importlib/abc.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567800217, "dep_lines": [1, 2, 3, 4, 5, 9, 1], "dep_prios": [5, 10, 10, 10, 5, 5, 5], "dependencies": ["abc", "os", "sys", "types", "typing", "_importlib_modulespec", "builtins"], "hash": "3f23da1ee9e26f0928d37a9fe66b815d", "id": "importlib.abc", "ignore_all": true, "interface_hash": "a76210a8a2ad92d2f0d29f318f454927", "mtime": 1567800193, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\importlib\\abc.pyi", "size": 3726, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/io.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567800217, "dep_lines": [1, 4, 5, 6, 7, 8, 1], "dep_prios": [5, 10, 10, 5, 10, 5, 30], "dependencies": ["typing", "builtins", "codecs", "mmap", "sys", "types", "abc"], "hash": "ca8af5922acfb33327a24f75a7a95db1", "id": "io", "ignore_all": true, "interface_hash": "6aadb622e0f758218ab2775bd1e6c7c1", "mtime": 1567800192, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\io.pyi", "size": 8180, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/mmap.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567800217, "dep_lines": [1, 2, 1, 1], "dep_prios": [10, 5, 5, 30], "dependencies": ["sys", "typing", "builtins", "abc"], "hash": "8302e76df6f26a6a3dfe7d6cd8361f27", "id": "mmap", "ignore_all": true, "interface_hash": "5d988bd613770379b1b2d848deb47400", "mtime": 1567800190, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\2and3\\mmap.pyi", "size": 2891, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/os/__init__.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": ["os.path"], "data_mtime": 1567800217, "dep_lines": [4, 5, 6, 12, 13, 666, 1], "dep_prios": [5, 10, 5, 5, 10, 5, 30], "dependencies": ["io", "sys", "typing", "builtins", "os.path", "posix", "abc"], "hash": "d9e2a3dad2bc3a22cc264d5af4439b23", "id": "os", "ignore_all": true, "interface_hash": "8e19e7e1c55a635a127247e970ba9edd", "mtime": 1567800193, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\os\\__init__.pyi", "size": 29741, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/os/path.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567800217, "dep_lines": [5, 6, 7, 15, 1], "dep_prios": [10, 10, 5, 5, 30], "dependencies": ["os", "sys", "typing", "builtins", "abc"], "hash": "09de832748181b7c2c68e911de304b25", "id": "os.path", "ignore_all": true, "interface_hash": "f094eb32399767584e4a3358b5944f59", "mtime": 1567800193, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\os\\path.pyi", "size": 6258, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/posix.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567800217, "dep_lines": [5, 6, 8, 1, 1], "dep_prios": [10, 5, 5, 5, 30], "dependencies": ["sys", "typing", "os", "builtins", "abc"], "hash": "efaca42fd245a3f3629ae91aa9357495", "id": "posix", "ignore_all": true, "interface_hash": "ce93cd608658e248bc772e7682e087b6", "mtime": 1567800192, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\posix.pyi", "size": 1795, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/sys.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567800217, "dep_lines": [6, 11, 13, 1, 1, 1, 1], "dep_prios": [5, 5, 5, 5, 30, 30, 30], "dependencies": ["typing", "types", "importlib.abc", "builtins", "_importlib_modulespec", "abc", "importlib"], "hash": "4b444d636e190488021e0c3a1bff566b", "id": "sys", "ignore_all": true, "interface_hash": "6c237402fdfc8e09028c311b4c902905", "mtime": 1567800192, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\sys.pyi", "size": 5529, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/time.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567800217, "dep_lines": [4, 5, 7, 1, 1], "dep_prios": [10, 5, 5, 5, 30], "dependencies": ["sys", "typing", "types", "builtins", "abc"], "hash": "d0848c9c98081f61adce6cdcd1ea12f5", "id": "time", "ignore_all": true, "interface_hash": "5290ce86f8b5a621729ee303b17a47a9", "mtime": 1567800190, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\2and3\\time.pyi", "size": 3866, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/types.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567800217, "dep_lines": [6, 7, 14, 1, 1], "dep_prios": [10, 5, 5, 5, 30], "dependencies": ["sys", "typing", "_importlib_modulespec", "builtins", "abc"], "hash": "a397e65eace7e3cd818dc9a26e183b67", "id": "types", "ignore_all": true, "interface_hash": "c6c2851c1b3af52fd9d84f0d157dc187", "mtime": 1567800192, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\types.pyi", "size": 8557, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/typing.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567800217, "dep_lines": [3, 4, 5, 6, 1, 1], "dep_prios": [10, 5, 5, 10, 5, 30], "dependencies": ["sys", "abc", "types", "collections", "builtins", "typing_extensions"], "hash": "2d2366f0057966000828d938ee34a058", "id": "typing", "ignore_all": true, "interface_hash": "dd65a61d2f7625aa73a75fa32f24ef9e", "mtime": 1567800192, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\typing.pyi", "size": 22212, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/.mypy_cache/3.6/typing_extensions.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567800217, "dep_lines": [1, 2, 3, 1], "dep_prios": [10, 10, 5, 5], "dependencies": ["abc", "sys", "typing", "builtins"], "hash": "faaa727b0c550ac921689e82273c3c7b", "id": "typing_extensions", "ignore_all": true, "interface_hash": "b53afdb2a2f35f24cbdf8077071b74da", "mtime": 1567800194, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\site-packages\\mypy\\typeshed\\third_party\\2and3\\typing_extensions.pyi", "size": 2432, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/H12Python/H12Python/H12Python.py:
--------------------------------------------------------------------------------
1 | import clr
2 | from time import sleep
3 | clr.AddReference('HalconDotNet')
4 | from HalconDotNet import *
5 |
6 | HalconWindowHandle = HOperatorSet.OpenWindow(HTuple(0),HTuple(0),HTuple(256),HTuple(256),HTuple(0),HTuple('visible'),HTuple(''))
7 | myImage = HOperatorSet.ReadImage('fabrik')
8 | HOperatorSet.DispImage(myImage, HalconWindowHandle)
9 | myImageSize = HOperatorSet.GetImageSize(myImage)
10 | HOperatorSet.SetPart(HalconWindowHandle, HTuple(0), HTuple(0),myImageSize[1]-1,myImageSize[0]-1)
11 | HOperatorSet.DispImage(myImage, HalconWindowHandle)
12 | sleep(2)
13 | HOperatorSet.CloseWindow(HalconWindowHandle)
14 |
--------------------------------------------------------------------------------
/H12Python/H12Python/H12Python.pyproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | 2.0
6 | 4c2c08d8-15fe-4af7-a72b-ae8f33407dc2
7 | .
8 | H12Python.py
9 |
10 |
11 | .
12 | .
13 | H12Python
14 | H12Python
15 | True
16 | IronPython (.NET) launcher
17 | False
18 | Global|PythonCore|3.6
19 |
20 |
21 | true
22 | false
23 |
24 |
25 | true
26 | false
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | halcondotnet
40 | halcondotnet.dll
41 | ..\packages\HalconDotNet.19.5.0\lib\net35\halcondotnet.dll
42 | True
43 |
44 |
45 |
46 | 10.0
47 |
48 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/H12Python/H12Python/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/H20TestEqualObj/H20TestEqualObj.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.30517.126
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "H20TestEqualObj", "H20TestEqualObj\H20TestEqualObj.vbproj", "{F9142309-F5BF-434E-BB88-49480F14C389}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {F9142309-F5BF-434E-BB88-49480F14C389}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {F9142309-F5BF-434E-BB88-49480F14C389}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {F9142309-F5BF-434E-BB88-49480F14C389}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {F9142309-F5BF-434E-BB88-49480F14C389}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {A68DA5CB-25D8-4AAE-B6C4-DC278915B7AA}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/H20TestEqualObj/H20TestEqualObj/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/H20TestEqualObj/H20TestEqualObj/My Project/Application.Designer.vb:
--------------------------------------------------------------------------------
1 | '------------------------------------------------------------------------------
2 | '
3 | ' This code was generated by a tool.
4 | ' Runtime Version:4.0.30319.42000
5 | '
6 | ' Changes to this file may cause incorrect behavior and will be lost if
7 | ' the code is regenerated.
8 | '
9 | '------------------------------------------------------------------------------
10 |
11 | Option Strict On
12 | Option Explicit On
13 |
14 |
--------------------------------------------------------------------------------
/H20TestEqualObj/H20TestEqualObj/My Project/Application.myapp:
--------------------------------------------------------------------------------
1 |
2 |
3 | false
4 | false
5 | 0
6 | true
7 | 0
8 | 2
9 | true
10 |
11 |
--------------------------------------------------------------------------------
/H20TestEqualObj/H20TestEqualObj/My Project/AssemblyInfo.vb:
--------------------------------------------------------------------------------
1 | Imports System
2 | Imports System.Reflection
3 | Imports System.Runtime.InteropServices
4 |
5 | ' General Information about an assembly is controlled through the following
6 | ' set of attributes. Change these attribute values to modify the information
7 | ' associated with an assembly.
8 |
9 | ' Review the values of the assembly attributes
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | 'The following GUID is for the ID of the typelib if this project is exposed to COM
21 |
22 |
23 | ' Version information for an assembly consists of the following four values:
24 | '
25 | ' Major Version
26 | ' Minor Version
27 | ' Build Number
28 | ' Revision
29 | '
30 | ' You can specify all the values or you can default the Build and Revision Numbers
31 | ' by using the '*' as shown below:
32 | '
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/H20TestEqualObj/H20TestEqualObj/My Project/Resources.Designer.vb:
--------------------------------------------------------------------------------
1 | '------------------------------------------------------------------------------
2 | '
3 | ' This code was generated by a tool.
4 | ' Runtime Version:4.0.30319.42000
5 | '
6 | ' Changes to this file may cause incorrect behavior and will be lost if
7 | ' the code is regenerated.
8 | '
9 | '------------------------------------------------------------------------------
10 |
11 | Option Strict On
12 | Option Explicit On
13 |
14 |
15 | Namespace My.Resources
16 |
17 | 'This class was auto-generated by the StronglyTypedResourceBuilder
18 | 'class via a tool like ResGen or Visual Studio.
19 | 'To add or remove a member, edit your .ResX file then rerun ResGen
20 | 'with the /str option, or rebuild your VS project.
21 | '''
22 | ''' A strongly-typed resource class, for looking up localized strings, etc.
23 | '''
24 | _
28 | Friend Module Resources
29 |
30 | Private resourceMan As Global.System.Resources.ResourceManager
31 |
32 | Private resourceCulture As Global.System.Globalization.CultureInfo
33 |
34 | '''
35 | ''' Returns the cached ResourceManager instance used by this class.
36 | '''
37 | _
38 | Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
39 | Get
40 | If Object.ReferenceEquals(resourceMan, Nothing) Then
41 | Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("H20TestEqualObj.Resources", GetType(Resources).Assembly)
42 | resourceMan = temp
43 | End If
44 | Return resourceMan
45 | End Get
46 | End Property
47 |
48 | '''
49 | ''' Overrides the current thread's CurrentUICulture property for all
50 | ''' resource lookups using this strongly typed resource class.
51 | '''
52 | _
53 | Friend Property Culture() As Global.System.Globalization.CultureInfo
54 | Get
55 | Return resourceCulture
56 | End Get
57 | Set(ByVal value As Global.System.Globalization.CultureInfo)
58 | resourceCulture = value
59 | End Set
60 | End Property
61 | End Module
62 | End Namespace
63 |
--------------------------------------------------------------------------------
/H20TestEqualObj/H20TestEqualObj/My Project/Settings.Designer.vb:
--------------------------------------------------------------------------------
1 | '------------------------------------------------------------------------------
2 | '
3 | ' This code was generated by a tool.
4 | ' Runtime Version:4.0.30319.42000
5 | '
6 | ' Changes to this file may cause incorrect behavior and will be lost if
7 | ' the code is regenerated.
8 | '
9 | '------------------------------------------------------------------------------
10 |
11 | Option Strict On
12 | Option Explicit On
13 |
14 |
15 | Namespace My
16 |
17 | _
20 | Partial Friend NotInheritable Class MySettings
21 | Inherits Global.System.Configuration.ApplicationSettingsBase
22 |
23 | Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
24 |
25 | #Region "My.Settings Auto-Save Functionality"
26 | #If _MyType = "WindowsForms" Then
27 | Private Shared addedHandler As Boolean
28 |
29 | Private Shared addedHandlerLockObject As New Object
30 |
31 | _
32 | Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
33 | If My.Application.SaveMySettingsOnExit Then
34 | My.Settings.Save()
35 | End If
36 | End Sub
37 | #End If
38 | #End Region
39 |
40 | Public Shared ReadOnly Property [Default]() As MySettings
41 | Get
42 |
43 | #If _MyType = "WindowsForms" Then
44 | If Not addedHandler Then
45 | SyncLock addedHandlerLockObject
46 | If Not addedHandler Then
47 | AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
48 | addedHandler = True
49 | End If
50 | End SyncLock
51 | End If
52 | #End If
53 | Return defaultInstance
54 | End Get
55 | End Property
56 | End Class
57 | End Namespace
58 |
59 | Namespace My
60 |
61 | _
64 | Friend Module MySettingsProperty
65 |
66 | _
67 | Friend ReadOnly Property Settings() As Global.H20TestEqualObj.My.MySettings
68 | Get
69 | Return Global.H20TestEqualObj.My.MySettings.Default
70 | End Get
71 | End Property
72 | End Module
73 | End Namespace
74 |
--------------------------------------------------------------------------------
/H20TestEqualObj/H20TestEqualObj/My Project/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/H20TestEqualObj/H20TestEqualObj/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/H20TestEqualObj/H20TestEqualObj/vbModule1.txt:
--------------------------------------------------------------------------------
1 | Imports HalconDotNet
2 | Module Module1
3 | Sub Main()
4 |
5 | ' Local iconic variables
6 | Dim ho_Regions As HObject = Nothing, ho_EmptyRegion As HObject = Nothing
7 | Dim result As HTuple
8 | ' Initialize local and output iconic variables
9 | HOperatorSet.GenEmptyObj(ho_Regions)
10 | HOperatorSet.GenEmptyObj(ho_EmptyRegion)
11 |
12 | ' Initialize local and output control variables
13 | ho_Regions.Dispose()
14 | HOperatorSet.GenRandomRegions(ho_Regions, New HTuple("circle"), New HTuple(10),
15 | New HTuple(20), New HTuple(10), New HTuple(30), New HTuple(-0.7854), New HTuple(0.7854),
16 | New HTuple(100), New HTuple(512), New HTuple(512))
17 | ho_EmptyRegion.Dispose()
18 | HOperatorSet.GenEmptyRegion(ho_EmptyRegion)
19 | result = New HTuple(ho_Regions.TestEqualObj(ho_EmptyRegion)).I()
20 | If result Then
21 | ' Following three lines added to show results
22 | Console.WriteLine("true {0}", result)
23 | Else
24 | Console.WriteLine("false {0}", result)
25 | End If
26 |
27 | ho_Regions.Dispose()
28 | ho_EmptyRegion.Dispose()
29 | Console.ReadKey()
30 | End Sub
31 |
32 | End Module
33 |
--------------------------------------------------------------------------------
/H20TestEqualObj/HDevelop/TestNotEqualRegions.hdev:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | gen_random_regions (Regions, 'circle', 10, 20, 10, 30, -0.7854, 0.7854, 100, 512, 512)
7 | gen_empty_region (EmptyRegion)
8 | if (Regions != EmptyRegion)
9 | stop()
10 | endif
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/HSmartWindowControlExample/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/HSmartWindowControlExample/Form1.cs:
--------------------------------------------------------------------------------
1 | // ***********************************************************************
2 | // Assembly : HSmartWindowControlExample
3 | // Author : Resolution Technology, Inc.
4 | // Created : 05-24-2017
5 | // Last Modified On : 05-24-2017
6 | // ***********************************************************************
7 | //
8 | // Copyright © 2017
9 | //
10 | //
11 | // ***********************************************************************
12 |
13 | using System;
14 | using System.Drawing;
15 | using System.Windows.Forms;
16 | using HalconDotNet;
17 | using Rti.Halcon;
18 |
19 | namespace HSmartWindowControlExample
20 | {
21 | ///
22 | /// Class Form1.
23 | ///
24 | ///
25 | public partial class Form1 : Form
26 | {
27 | #region Public Constructors
28 |
29 | ///
30 | /// Initializes a new instance of the class.
31 | ///
32 | public Form1()
33 | {
34 | InitializeComponent();
35 | }
36 |
37 | #endregion Public Constructors
38 |
39 | #region Private Methods
40 |
41 | ///
42 | /// Handles the Click event of the ButtonLoadImageHWindow control.
43 | ///
44 | /// The source of the event.
45 | /// The instance containing the event data.
46 | private void ButtonLoadImageHWindow_Click(object sender, EventArgs e)
47 | {
48 | openFileDialog1.InitialDirectory = Environment.GetEnvironmentVariable(@"HALCONEXAMPLES") + @"\images";
49 | if (openFileDialog1.ShowDialog() == DialogResult.OK)
50 | {
51 | HImage halconImage = new HImage(openFileDialog1.FileName);
52 |
53 | hSmartWindowControl1.HalconWindow.DispImage(halconImage);
54 | }
55 | }
56 |
57 | ///
58 | /// Handles the Click event of the ButtonLoadImagePictureBox control.
59 | ///
60 | /// The source of the event.
61 | /// The instance containing the event data.
62 | private void ButtonLoadImagePictureBox_Click(object sender, EventArgs e)
63 | {
64 | openFileDialog1.InitialDirectory = Environment.GetEnvironmentVariable(@"HALCONEXAMPLES") + @"\images";
65 | if (openFileDialog1.ShowDialog() == DialogResult.OK)
66 | {
67 | pictureBox1.LoadAsync(openFileDialog1.FileName);
68 | }
69 | }
70 |
71 | ///
72 | /// Handles the Load event of the HSmartWindowControl1 control.
73 | ///
74 | /// The source of the event.
75 | /// The instance containing the event data.
76 | private void HSmartWindowControl1_Load(object sender, EventArgs e)
77 | {
78 | this.MouseWheel += (sender as HSmartWindowControl).HSmartWindowControl_MouseWheel;
79 | }
80 |
81 | ///
82 | /// Handles the LoadCompleted event of the PictureBox1 control.
83 | ///
84 | /// The source of the event.
85 | /// The instance containing the event data.
86 | private void PictureBox1_LoadCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
87 | {
88 | HImage halconImage = (pictureBox1.Image as Bitmap).ToHimage();
89 |
90 | hSmartWindowControl1.HalconWindow.DispImage(halconImage);
91 | }
92 |
93 | #endregion Private Methods
94 | }
95 | }
--------------------------------------------------------------------------------
/HSmartWindowControlExample/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace HSmartWindowControlExample
5 | {
6 | internal static class Program
7 | {
8 | #region Private Methods
9 |
10 | ///
11 | /// The main entry point for the application.
12 | ///
13 | [STAThread]
14 | private static void Main()
15 | {
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 | Application.Run(new Form1());
19 | }
20 |
21 | #endregion Private Methods
22 | }
23 | }
--------------------------------------------------------------------------------
/HSmartWindowControlExample/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyTitle("HSmartWindowControlExample")]
8 | [assembly: AssemblyDescription("")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("Resolution Technology, Inc.")]
11 | [assembly: AssemblyProduct("HSmartWindowControlExample")]
12 | [assembly: AssemblyCopyright("Copyright © 2017")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | // Setting ComVisible to false makes the types in this assembly not visible
17 | // to COM components. If you need to access a type in this assembly from
18 | // COM, set the ComVisible attribute to true on that type.
19 | [assembly: ComVisible(false)]
20 |
21 | // The following GUID is for the ID of the typelib if this project is exposed to COM
22 | [assembly: Guid("790cc8f9-3e9b-4b79-9a99-3997efe38edc")]
23 |
24 | // Version information for an assembly consists of the following four values:
25 | //
26 | // Major Version
27 | // Minor Version
28 | // Build Number
29 | // Revision
30 | //
31 | // You can specify all the values or you can default the Build and Revision Numbers
32 | // by using the '*' as shown below:
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
--------------------------------------------------------------------------------
/HSmartWindowControlExample/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace HSmartWindowControlExample.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("HSmartWindowControlExample.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/HSmartWindowControlExample/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace HSmartWindowControlExample.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.1.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/HSmartWindowControlExample/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/HalconConnected/HalconConnected/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/HalconConnected/HalconConnected/Form1.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace HalconConnected
2 | {
3 | partial class Form1
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.HalconWindowControl1 = new HalconDotNet.HWindowControl();
32 | this.label1 = new System.Windows.Forms.Label();
33 | this.label2 = new System.Windows.Forms.Label();
34 | this.HalconWindowControl2 = new HalconDotNet.HWindowControl();
35 | this.SuspendLayout();
36 | //
37 | // HalconWindowControl1
38 | //
39 | this.HalconWindowControl1.BackColor = System.Drawing.Color.Black;
40 | this.HalconWindowControl1.BorderColor = System.Drawing.Color.Black;
41 | this.HalconWindowControl1.ImagePart = new System.Drawing.Rectangle(0, 0, 512, 512);
42 | this.HalconWindowControl1.Location = new System.Drawing.Point(0, 0);
43 | this.HalconWindowControl1.Name = "HalconWindowControl1";
44 | this.HalconWindowControl1.Size = new System.Drawing.Size(512, 512);
45 | this.HalconWindowControl1.TabIndex = 0;
46 | this.HalconWindowControl1.WindowSize = new System.Drawing.Size(512, 512);
47 | //
48 | // label1
49 | //
50 | this.label1.AutoSize = true;
51 | this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
52 | this.label1.Location = new System.Drawing.Point(12, 515);
53 | this.label1.Name = "label1";
54 | this.label1.Size = new System.Drawing.Size(53, 20);
55 | this.label1.TabIndex = 1;
56 | this.label1.Text = "label1";
57 | //
58 | // label2
59 | //
60 | this.label2.AutoSize = true;
61 | this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
62 | this.label2.Location = new System.Drawing.Point(531, 515);
63 | this.label2.Name = "label2";
64 | this.label2.Size = new System.Drawing.Size(53, 20);
65 | this.label2.TabIndex = 2;
66 | this.label2.Text = "label2";
67 | //
68 | // HalconWindowControl2
69 | //
70 | this.HalconWindowControl2.BackColor = System.Drawing.Color.Black;
71 | this.HalconWindowControl2.BorderColor = System.Drawing.Color.Black;
72 | this.HalconWindowControl2.ImagePart = new System.Drawing.Rectangle(0, 0, 512, 512);
73 | this.HalconWindowControl2.Location = new System.Drawing.Point(515, 0);
74 | this.HalconWindowControl2.Name = "HalconWindowControl2";
75 | this.HalconWindowControl2.Size = new System.Drawing.Size(512, 512);
76 | this.HalconWindowControl2.TabIndex = 3;
77 | this.HalconWindowControl2.WindowSize = new System.Drawing.Size(512, 512);
78 | //
79 | // Form1
80 | //
81 | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
82 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
83 | this.AutoSize = true;
84 | this.ClientSize = new System.Drawing.Size(1012, 604);
85 | this.Controls.Add(this.HalconWindowControl2);
86 | this.Controls.Add(this.label2);
87 | this.Controls.Add(this.label1);
88 | this.Controls.Add(this.HalconWindowControl1);
89 | this.Name = "Form1";
90 | this.Text = "Halcon Connected";
91 | this.Shown += new System.EventHandler(this.Form1_Shown);
92 | this.ResumeLayout(false);
93 | this.PerformLayout();
94 |
95 | }
96 |
97 | #endregion
98 |
99 | private HalconDotNet.HWindowControl HalconWindowControl1;
100 | private System.Windows.Forms.Label label1;
101 | private System.Windows.Forms.Label label2;
102 | private HalconDotNet.HWindowControl HalconWindowControl2;
103 | }
104 | }
105 |
106 |
--------------------------------------------------------------------------------
/HalconConnected/HalconConnected/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace HalconConnected
5 | {
6 | internal static class Program
7 | {
8 | #region Private Methods
9 |
10 | ///
11 | /// The main entry point for the application.
12 | ///
13 | [STAThread]
14 | private static void Main()
15 | {
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 | Application.Run(new Form1());
19 | }
20 |
21 | #endregion Private Methods
22 | }
23 | }
--------------------------------------------------------------------------------
/HalconConnected/HalconConnected/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyTitle("Halcon Connected")]
8 | [assembly: AssemblyDescription("")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("Resolution Technology, Inc.")]
11 | [assembly: AssemblyProduct("Halcon Connected")]
12 | [assembly: AssemblyCopyright("Copyright © 2016, 2017")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | // Setting ComVisible to false makes the types in this assembly not visible
17 | // to COM components. If you need to access a type in this assembly from
18 | // COM, set the ComVisible attribute to true on that type.
19 | [assembly: ComVisible(false)]
20 |
21 | // The following GUID is for the ID of the typelib if this project is exposed to COM
22 | [assembly: Guid("e68c36b6-bfa2-4ec2-b132-75509c43fb24")]
23 |
24 | // Version information for an assembly consists of the following four values:
25 | //
26 | // Major Version
27 | // Minor Version
28 | // Build Number
29 | // Revision
30 | //
31 | // You can specify all the values or you can default the Build and Revision Numbers
32 | // by using the '*' as shown below:
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
--------------------------------------------------------------------------------
/HalconConnected/HalconConnected/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace HalconConnected.Properties
12 | {
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources
26 | {
27 |
28 | private static global::System.Resources.ResourceManager resourceMan;
29 |
30 | private static global::System.Globalization.CultureInfo resourceCulture;
31 |
32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
33 | internal Resources()
34 | {
35 | }
36 |
37 | ///
38 | /// Returns the cached ResourceManager instance used by this class.
39 | ///
40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
41 | internal static global::System.Resources.ResourceManager ResourceManager
42 | {
43 | get
44 | {
45 | if ((resourceMan == null))
46 | {
47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WindowsFormsApplication1.Properties.Resources", typeof(Resources).Assembly);
48 | resourceMan = temp;
49 | }
50 | return resourceMan;
51 | }
52 | }
53 |
54 | ///
55 | /// Overrides the current thread's CurrentUICulture property for all
56 | /// resource lookups using this strongly typed resource class.
57 | ///
58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
59 | internal static global::System.Globalization.CultureInfo Culture
60 | {
61 | get
62 | {
63 | return resourceCulture;
64 | }
65 | set
66 | {
67 | resourceCulture = value;
68 | }
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/HalconConnected/HalconConnected/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace HalconConnected.Properties
12 | {
13 |
14 |
15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 | {
19 |
20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21 |
22 | public static Settings Default
23 | {
24 | get
25 | {
26 | return defaultInstance;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/HalconConnected/HalconConnected/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/HalconConnected/Halcon_Connected.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Halcon_Connected", "HalconConnected\Halcon_Connected.csproj", "{E68C36B6-BFA2-4EC2-B132-75509C43FB24}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {E68C36B6-BFA2-4EC2-B132-75509C43FB24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {E68C36B6-BFA2-4EC2-B132-75509C43FB24}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {E68C36B6-BFA2-4EC2-B132-75509C43FB24}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {E68C36B6-BFA2-4EC2-B132-75509C43FB24}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/HalconExtensionLibrary/HalconExtensionLibrary.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {8E3ACF68-A857-4FD6-A19A-32590DD6EE48}
8 | Library
9 | Properties
10 | Rti.Halcon
11 | HalconExtensionLibrary
12 | v4.5.2
13 | 512
14 | true
15 |
16 |
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | pdbonly
27 | true
28 | bin\Release\
29 | TRACE
30 | prompt
31 | 4
32 |
33 |
34 | true
35 | bin\x64\Debug\
36 | DEBUG;TRACE
37 | full
38 | x64
39 | prompt
40 | MinimumRecommendedRules.ruleset
41 |
42 |
43 | bin\x64\Release\
44 | TRACE
45 | true
46 | pdbonly
47 | x64
48 | prompt
49 | MinimumRecommendedRules.ruleset
50 |
51 |
52 |
53 | C:\Program Files\MVTec\HALCON-12.0\bin\dotnet35\halcondotnet.dll
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
77 |
--------------------------------------------------------------------------------
/HalconExtensionLibrary/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyTitle("HalconExtensionLibrary")]
8 | [assembly: AssemblyDescription("")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("Resolution Technology, Inc.")]
11 | [assembly: AssemblyProduct("HalconExtensionLibrary")]
12 | [assembly: AssemblyCopyright("Copyright © 2016, 2107")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | // Setting ComVisible to false makes the types in this assembly not visible
17 | // to COM components. If you need to access a type in this assembly from
18 | // COM, set the ComVisible attribute to true on that type.
19 | [assembly: ComVisible(false)]
20 |
21 | // The following GUID is for the ID of the typelib if this project is exposed to COM
22 | [assembly: Guid("8e3acf68-a857-4fd6-a19a-32590dd6ee48")]
23 |
24 | // Version information for an assembly consists of the following four values:
25 | //
26 | // Major Version
27 | // Minor Version
28 | // Build Number
29 | // Revision
30 | //
31 | // You can specify all the values or you can default the Build and Revision Numbers
32 | // by using the '*' as shown below:
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
--------------------------------------------------------------------------------
/HalconIronPythonWinForms/HalconIronPythonWinForms.py:
--------------------------------------------------------------------------------
1 | import clr
2 | clr.AddReference('System.Drawing')
3 | clr.AddReference('System.Windows.Forms')
4 |
5 | from System.Drawing import *
6 | from System.Windows.Forms import *
7 |
8 | class MyForm(Form):
9 | def __init__(self):
10 | # Create child controls and initialize form
11 | pass
12 |
13 |
14 | Application.EnableVisualStyles()
15 | Application.SetCompatibleTextRenderingDefault(False)
16 |
17 | form = MyForm()
18 | Application.Run(form)
19 |
--------------------------------------------------------------------------------
/HalconIronPythonWinForms/HalconIronPythonWinForms.pyproj:
--------------------------------------------------------------------------------
1 |
2 |
3 | Debug
4 | 2.0
5 | 7ddef0a1-354b-43eb-a98c-dfb003181cfe
6 | .
7 | HalconIronPythonWinForms.py
8 |
9 |
10 | .
11 | True
12 | Global|PythonCore|3.7
13 | IronPython (.NET) launcher
14 | .
15 | HalconIronPythonWinForms
16 | HalconIronPythonWinForms
17 |
18 |
19 | true
20 | false
21 |
22 |
23 | true
24 | false
25 |
26 |
27 |
28 |
29 |
30 |
31 | halcondotnet
32 | halcondotnet.dll
33 | ..\packages\HalconDotNet.19.5.0\lib\net35\halcondotnet.dll
34 | True
35 |
36 |
37 | System.Drawing
38 | System.Drawing.dll
39 | C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Drawing.dll
40 |
41 |
42 | System.Windows.Forms
43 | System.Windows.Forms.dll
44 | C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Windows.Forms.dll
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
57 |
58 |
59 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/HalconIronPythonWinForms/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/@plugins_snapshot.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/_ast.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567010389, "dep_lines": [1, 2, 1, 1], "dep_prios": [10, 5, 5, 30], "dependencies": ["sys", "typing", "builtins", "abc"], "hash": "e4cd8a8eaf09e16e632732ea78340caa", "id": "_ast", "ignore_all": true, "interface_hash": "32cc89ac1f08cc55023ec00065a92bb5", "mtime": 1567010358, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\_ast.pyi", "size": 7915, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/_importlib_modulespec.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567010389, "dep_lines": [10, 11, 12, 1], "dep_prios": [5, 10, 5, 5], "dependencies": ["abc", "sys", "typing", "builtins"], "hash": "03f8e6867e4fa4f51892253d36056e2b", "id": "_importlib_modulespec", "ignore_all": true, "interface_hash": "749d943a044029dc7d0b64759485a0c4", "mtime": 1567010358, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\_importlib_modulespec.pyi", "size": 1568, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/abc.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567010389, "dep_lines": [1, 1], "dep_prios": [5, 5], "dependencies": ["typing", "builtins"], "hash": "2584c2f5c4667a231d7afdd171e0b0a2", "id": "abc", "ignore_all": true, "interface_hash": "182cb46dcee1917ec3274b24d9a3d9c7", "mtime": 1567010358, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\abc.pyi", "size": 613, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/ast.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567010389, "dep_lines": [3, 7, 9, 15, 1, 1], "dep_prios": [10, 5, 5, 5, 5, 30], "dependencies": ["sys", "typing", "typing_extensions", "_ast", "builtins", "abc"], "hash": "19491b293d80af97a65f0e74866977b1", "id": "ast", "ignore_all": true, "interface_hash": "f8c84cb0ddbf13e4a1b8171d2a606579", "mtime": 1567010358, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\ast.pyi", "size": 2047, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/builtins.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567010389, "dep_lines": [4, 12, 13, 14, 15], "dep_prios": [5, 5, 5, 5, 10], "dependencies": ["typing", "abc", "ast", "types", "sys"], "hash": "2744379e870a74fdf20211d74a450bbd", "id": "builtins", "ignore_all": true, "interface_hash": "df59a4cfefca875303f488e5879848db", "mtime": 1567010357, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\2and3\\builtins.pyi", "size": 69554, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/codecs.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567010389, "dep_lines": [1, 2, 4, 5, 1], "dep_prios": [10, 5, 5, 10, 5], "dependencies": ["sys", "typing", "abc", "types", "builtins"], "hash": "cc00b8c3bb064aa4dae150ee47b70caa", "id": "codecs", "ignore_all": true, "interface_hash": "e78b5d0f4dc6b447b0347d0d44b4fbe7", "mtime": 1567010357, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\2and3\\codecs.pyi", "size": 11061, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/collections/__init__.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": ["collections.abc"], "data_mtime": 1567010389, "dep_lines": [2, 3, 9, 1, 1], "dep_prios": [10, 5, 10, 5, 30], "dependencies": ["sys", "typing", "collections.abc", "builtins", "abc"], "hash": "566cbab72aead679a4d89c4eaeb8bfe8", "id": "collections", "ignore_all": true, "interface_hash": "acf9d68497465c1d7db6c7c631b7eec9", "mtime": 1567010359, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\collections\\__init__.pyi", "size": 15217, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/collections/abc.data.json:
--------------------------------------------------------------------------------
1 | {".class": "MypyFile", "_fullname": "collections.abc", "is_partial_stub_package": false, "is_stub": true, "names": {".class": "SymbolTable", "AsyncGenerator": {".class": "SymbolTableNode", "cross_ref": "typing.AsyncGenerator", "kind": "Gdef"}, "AsyncIterable": {".class": "SymbolTableNode", "cross_ref": "typing.AsyncIterable", "kind": "Gdef"}, "AsyncIterator": {".class": "SymbolTableNode", "cross_ref": "typing.AsyncIterator", "kind": "Gdef"}, "Awaitable": {".class": "SymbolTableNode", "cross_ref": "typing.Awaitable", "kind": "Gdef"}, "ByteString": {".class": "SymbolTableNode", "cross_ref": "typing.ByteString", "kind": "Gdef"}, "Callable": {".class": "SymbolTableNode", "cross_ref": "typing.Callable", "kind": "Gdef"}, "Collection": {".class": "SymbolTableNode", "cross_ref": "typing.Collection", "kind": "Gdef"}, "Container": {".class": "SymbolTableNode", "cross_ref": "typing.Container", "kind": "Gdef"}, "Coroutine": {".class": "SymbolTableNode", "cross_ref": "typing.Coroutine", "kind": "Gdef"}, "Generator": {".class": "SymbolTableNode", "cross_ref": "typing.Generator", "kind": "Gdef"}, "Hashable": {".class": "SymbolTableNode", "cross_ref": "typing.Hashable", "kind": "Gdef"}, "ItemsView": {".class": "SymbolTableNode", "cross_ref": "typing.ItemsView", "kind": "Gdef"}, "Iterable": {".class": "SymbolTableNode", "cross_ref": "typing.Iterable", "kind": "Gdef"}, "Iterator": {".class": "SymbolTableNode", "cross_ref": "typing.Iterator", "kind": "Gdef"}, "KeysView": {".class": "SymbolTableNode", "cross_ref": "typing.KeysView", "kind": "Gdef"}, "Mapping": {".class": "SymbolTableNode", "cross_ref": "typing.Mapping", "kind": "Gdef"}, "MappingView": {".class": "SymbolTableNode", "cross_ref": "typing.MappingView", "kind": "Gdef"}, "MutableMapping": {".class": "SymbolTableNode", "cross_ref": "typing.MutableMapping", "kind": "Gdef"}, "MutableSequence": {".class": "SymbolTableNode", "cross_ref": "typing.MutableSequence", "kind": "Gdef"}, "MutableSet": {".class": "SymbolTableNode", "cross_ref": "typing.MutableSet", "kind": "Gdef"}, "Reversible": {".class": "SymbolTableNode", "cross_ref": "typing.Reversible", "kind": "Gdef"}, "Sequence": {".class": "SymbolTableNode", "cross_ref": "typing.Sequence", "kind": "Gdef"}, "Set": {".class": "SymbolTableNode", "cross_ref": "typing.AbstractSet", "kind": "Gdef"}, "Sized": {".class": "SymbolTableNode", "cross_ref": "typing.Sized", "kind": "Gdef"}, "ValuesView": {".class": "SymbolTableNode", "cross_ref": "typing.ValuesView", "kind": "Gdef"}, "__doc__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "collections.abc.__doc__", "name": "__doc__", "type": "builtins.str"}}, "__file__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "collections.abc.__file__", "name": "__file__", "type": "builtins.str"}}, "__name__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "collections.abc.__name__", "name": "__name__", "type": "builtins.str"}}, "__package__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "collections.abc.__package__", "name": "__package__", "type": "builtins.str"}}, "sys": {".class": "SymbolTableNode", "cross_ref": "sys", "kind": "Gdef", "module_hidden": true, "module_public": false}}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\collections\\abc.pyi"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/collections/abc.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567010389, "dep_lines": [4, 6, 1, 1, 1], "dep_prios": [10, 5, 5, 30, 30], "dependencies": ["sys", "collections", "builtins", "abc", "typing"], "hash": "197c87e716a5e5bf05eb5bca4ecd0344", "id": "collections.abc", "ignore_all": true, "interface_hash": "1c9ff8688d396d8483d80da82c6a90fc", "mtime": 1567010359, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\collections\\abc.pyi", "size": 1027, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/importlib/__init__.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": ["importlib.abc"], "data_mtime": 1567010389, "dep_lines": [1, 2, 3, 4, 1], "dep_prios": [5, 10, 10, 5, 5], "dependencies": ["importlib.abc", "sys", "types", "typing", "builtins"], "hash": "c14e5ab6e77f6fcc00235895242e880e", "id": "importlib", "ignore_all": true, "interface_hash": "3f09139552f82ff3cd95d2749208360d", "mtime": 1567010359, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\importlib\\__init__.pyi", "size": 608, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/importlib/abc.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567010389, "dep_lines": [1, 2, 3, 4, 5, 9, 1], "dep_prios": [5, 10, 10, 10, 5, 5, 5], "dependencies": ["abc", "os", "sys", "types", "typing", "_importlib_modulespec", "builtins"], "hash": "3f23da1ee9e26f0928d37a9fe66b815d", "id": "importlib.abc", "ignore_all": true, "interface_hash": "19a3ba7364700ddead1171c149c3d35e", "mtime": 1567010359, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\importlib\\abc.pyi", "size": 3726, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/io.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567010389, "dep_lines": [1, 4, 5, 6, 7, 8, 1], "dep_prios": [5, 10, 10, 5, 10, 5, 30], "dependencies": ["typing", "builtins", "codecs", "mmap", "sys", "types", "abc"], "hash": "ca8af5922acfb33327a24f75a7a95db1", "id": "io", "ignore_all": true, "interface_hash": "d2b8e466f71605c0c9c41aac39022075", "mtime": 1567010359, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\io.pyi", "size": 8180, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/mmap.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567010389, "dep_lines": [1, 2, 1, 1], "dep_prios": [10, 5, 5, 30], "dependencies": ["sys", "typing", "builtins", "abc"], "hash": "8302e76df6f26a6a3dfe7d6cd8361f27", "id": "mmap", "ignore_all": true, "interface_hash": "64dcbb25e24f847a9b88ee6897dcc694", "mtime": 1567010357, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\2and3\\mmap.pyi", "size": 2891, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/os/__init__.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": ["os.path"], "data_mtime": 1567010389, "dep_lines": [4, 5, 6, 12, 13, 666, 1], "dep_prios": [5, 10, 5, 5, 10, 5, 30], "dependencies": ["io", "sys", "typing", "builtins", "os.path", "posix", "abc"], "hash": "d9e2a3dad2bc3a22cc264d5af4439b23", "id": "os", "ignore_all": true, "interface_hash": "edab373af9cb3b918f5f3812c143eeca", "mtime": 1567010359, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\os\\__init__.pyi", "size": 29741, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/os/path.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567010389, "dep_lines": [5, 6, 7, 15, 1], "dep_prios": [10, 10, 5, 5, 30], "dependencies": ["os", "sys", "typing", "builtins", "abc"], "hash": "09de832748181b7c2c68e911de304b25", "id": "os.path", "ignore_all": true, "interface_hash": "9457d5886553cc95ee9e99fec15b91af", "mtime": 1567010359, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\os\\path.pyi", "size": 6258, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/posix.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567010389, "dep_lines": [5, 6, 8, 1, 1], "dep_prios": [10, 5, 5, 5, 30], "dependencies": ["sys", "typing", "os", "builtins", "abc"], "hash": "efaca42fd245a3f3629ae91aa9357495", "id": "posix", "ignore_all": true, "interface_hash": "52cdf3d42b66b4d66746d5220881dc85", "mtime": 1567010359, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\posix.pyi", "size": 1795, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/sys.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567010389, "dep_lines": [6, 11, 13, 1, 1, 1, 1], "dep_prios": [5, 5, 5, 5, 30, 30, 30], "dependencies": ["typing", "types", "importlib.abc", "builtins", "_importlib_modulespec", "abc", "importlib"], "hash": "4b444d636e190488021e0c3a1bff566b", "id": "sys", "ignore_all": true, "interface_hash": "9c46ce231d314a2005973a321f16ea52", "mtime": 1567010359, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\sys.pyi", "size": 5529, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/types.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567010389, "dep_lines": [6, 7, 14, 1, 1], "dep_prios": [10, 5, 5, 5, 30], "dependencies": ["sys", "typing", "_importlib_modulespec", "builtins", "abc"], "hash": "a397e65eace7e3cd818dc9a26e183b67", "id": "types", "ignore_all": true, "interface_hash": "e06dd6d67f51cd85b274e5fff23b9184", "mtime": 1567010359, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\types.pyi", "size": 8557, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/typing.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567010389, "dep_lines": [3, 4, 5, 6, 1, 1], "dep_prios": [10, 5, 5, 10, 5, 30], "dependencies": ["sys", "abc", "types", "collections", "builtins", "typing_extensions"], "hash": "2d2366f0057966000828d938ee34a058", "id": "typing", "ignore_all": true, "interface_hash": "5b963eb9714c95f9e88c549bfa01ed95", "mtime": 1567010359, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\stdlib\\3\\typing.pyi", "size": 22212, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/.mypy_cache/3.7/typing_extensions.meta.json:
--------------------------------------------------------------------------------
1 | {"child_modules": [], "data_mtime": 1567010389, "dep_lines": [1, 2, 3, 1], "dep_prios": [10, 10, 5, 5], "dependencies": ["abc", "sys", "typing", "builtins"], "hash": "faaa727b0c550ac921689e82273c3c7b", "id": "typing_extensions", "ignore_all": true, "interface_hash": "101c6dea4112a057439a7ca42225cad1", "mtime": 1567010360, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "new_semantic_analyzer": true, "no_implicit_optional": false, "platform": "win32", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "F:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\lib\\site-packages\\mypy\\typeshed\\third_party\\2and3\\typing_extensions.pyi", "size": 2432, "suppressed": [], "version_id": "0.720"}
--------------------------------------------------------------------------------
/HalconIronPythonWpf/HalconIronPythonWpf.py:
--------------------------------------------------------------------------------
1 | import wpf
2 | from System.Windows import Application
3 |
4 | class MyWindow(Window):
5 | def __init__(self):
6 | wpf.LoadComponent(self, 'HalconIronPythonWpf.xaml')
7 |
8 | MyWindow()
9 |
--------------------------------------------------------------------------------
/HalconIronPythonWpf/HalconIronPythonWpf.pyproj:
--------------------------------------------------------------------------------
1 |
2 |
3 | Debug
4 | 2.0
5 | f86a39b7-a113-4b9a-aa9b-f79754ff71b8
6 | .
7 | HalconIronPythonWpf.py
8 |
9 |
10 | .
11 | True
12 | IronPython|2.7-64
13 | IronPython (.NET) launcher
14 | .
15 | HalconIronPythonWpf
16 | HalconIronPythonWpf
17 |
18 |
19 | true
20 | false
21 |
22 |
23 | true
24 | false
25 |
26 |
27 |
28 |
29 |
30 |
31 | Designer
32 |
33 |
34 |
35 |
36 | mscorlib
37 | False
38 |
39 |
40 | PresentationCore
41 | False
42 |
43 |
44 | PresentationFramework
45 | False
46 |
47 |
48 | WindowsBase
49 | False
50 |
51 |
52 | System.Xaml
53 | False
54 |
55 |
56 |
57 |
58 |
59 |
60 |
63 |
64 |
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/HalconIronPythonWpf/HalconIronPythonWpf.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
--------------------------------------------------------------------------------
/HalconScaledImage/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/HalconScaledImage/HalconScaledImage.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.26430.13
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "HalconScaledImage", "HalconScaledImage\HalconScaledImage.vbproj", "{BB30BCAA-A840-4BDE-8B1A-BFAB82117CAE}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {BB30BCAA-A840-4BDE-8B1A-BFAB82117CAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {BB30BCAA-A840-4BDE-8B1A-BFAB82117CAE}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {BB30BCAA-A840-4BDE-8B1A-BFAB82117CAE}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {BB30BCAA-A840-4BDE-8B1A-BFAB82117CAE}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/HalconScaledImage/HalconScaledImage/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/HalconScaledImage/HalconScaledImage/Form1.vb:
--------------------------------------------------------------------------------
1 | ' ***********************************************************************
2 | ' Assembly : HalconScaledImage
3 | ' Author : Resolution Technology, Inc.
4 | ' Created : 06-12-2017
5 | ' Last Modified On : 06-13-2017
6 | ' ***********************************************************************
7 | '
8 | ' Copyright © 2017
9 | '
10 | '
11 | ' *************************************************************************
12 | Imports HalconDotNet
13 |
14 | '''
15 | ''' Class Form1.
16 | '''
17 | '''
18 | Public Class Form1
19 |
20 | #Region "Public Properties"
21 |
22 | '''
23 | ''' Gets or sets the halcon image.
24 | '''
25 | ''' The halcon image.
26 | Public Property HalconImage As HImage
27 |
28 | #End Region
29 |
30 | #Region "Private Methods"
31 |
32 | '''
33 | ''' Handles the Click event of the ButtonLoadImage control.
34 | '''
35 | ''' The source of the event.
36 | ''' The instance containing the event data.
37 | Private Sub ButtonLoadImage_Click(sender As Object, e As EventArgs) Handles ButtonLoadImage.Click
38 | If OpenFileDialog1.ShowDialog() = DialogResult.OK Then
39 | HalconImage = New HImage(OpenFileDialog1.FileName)
40 | DisplayHalconImage(HalconImage)
41 | End If
42 | End Sub
43 |
44 | '''
45 | ''' Displays the halcon image.
46 | '''
47 | ''' The halcon image.
48 | Private Sub DisplayHalconImage(halconImage As HImage)
49 | HalconWindowControl.HalconWindow.DispImage(halconImage)
50 | HalconWindowControl.SetFullImagePart(Nothing)
51 | End Sub
52 |
53 | '''
54 | ''' Set the keep aspect ratio property when the Halcon window control is loaded.
55 | '''
56 | ''' The sender.
57 | ''' The instance containing the event data.
58 | Private Sub HalconWindowControl_Load(sender As HSmartWindowControl, e As EventArgs) Handles HalconWindowControl.Load
59 | sender.HKeepAspectRatio = True
60 | End Sub
61 |
62 | '''
63 | ''' Resize the image if the Halcon window control size is changed.
64 | '''
65 | ''' The sender.
66 | ''' The instance containing the event data.
67 | Private Sub HalconWindowControl_SizeChanged(sender As HSmartWindowControl, e As EventArgs) Handles HalconWindowControl.SizeChanged
68 | If HalconImage IsNot Nothing Then
69 | If HalconImage.IsInitialized Then
70 | If HalconWindowControl IsNot Nothing Then
71 | HalconWindowControl.SetFullImagePart(Nothing)
72 | End If
73 | End If
74 | End If
75 |
76 | End Sub
77 |
78 | #End Region
79 |
80 | End Class
--------------------------------------------------------------------------------
/HalconScaledImage/HalconScaledImage/My Project/Application.Designer.vb:
--------------------------------------------------------------------------------
1 | '------------------------------------------------------------------------------
2 | '
3 | ' This code was generated by a tool.
4 | ' Runtime Version:4.0.30319.42000
5 | '
6 | ' Changes to this file may cause incorrect behavior and will be lost if
7 | ' the code is regenerated.
8 | '
9 | '------------------------------------------------------------------------------
10 |
11 | Option Strict On
12 | Option Explicit On
13 |
14 |
15 | Namespace My
16 |
17 | 'NOTE: This file is auto-generated; do not modify it directly. To make changes,
18 | ' or if you encounter build errors in this file, go to the Project Designer
19 | ' (go to Project Properties or double-click the My Project node in
20 | ' Solution Explorer), and make changes on the Application tab.
21 | '
22 | Partial Friend Class MyApplication
23 |
24 | _
25 | Public Sub New()
26 | MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
27 | Me.IsSingleInstance = false
28 | Me.EnableVisualStyles = true
29 | Me.SaveMySettingsOnExit = true
30 | Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
31 | End Sub
32 |
33 | _
34 | Protected Overrides Sub OnCreateMainForm()
35 | Me.MainForm = Global.HalconScaledImage.Form1
36 | End Sub
37 | End Class
38 | End Namespace
39 |
--------------------------------------------------------------------------------
/HalconScaledImage/HalconScaledImage/My Project/Application.myapp:
--------------------------------------------------------------------------------
1 |
2 |
3 | true
4 | Form1
5 | false
6 | 0
7 | true
8 | 0
9 | 0
10 | true
11 |
12 |
--------------------------------------------------------------------------------
/HalconScaledImage/HalconScaledImage/My Project/AssemblyInfo.vb:
--------------------------------------------------------------------------------
1 | Imports System.Reflection
2 | Imports System.Runtime.InteropServices
3 |
4 | ' General Information about an assembly is controlled through the following
5 | ' set of attributes. Change these attribute values to modify the information
6 | ' associated with an assembly.
7 |
8 | ' Review the values of the assembly attributes
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | 'The following GUID is for the ID of the typelib if this project is exposed to COM
20 |
21 |
22 | ' Version information for an assembly consists of the following four values:
23 | '
24 | ' Major Version
25 | ' Minor Version
26 | ' Build Number
27 | ' Revision
28 | '
29 | ' You can specify all the values or you can default the Build and Revision Numbers
30 | ' by using the '*' as shown below:
31 | '
32 |
33 |
34 |
--------------------------------------------------------------------------------
/HalconScaledImage/HalconScaledImage/My Project/Resources.Designer.vb:
--------------------------------------------------------------------------------
1 | '------------------------------------------------------------------------------
2 | '
3 | ' This code was generated by a tool.
4 | ' Runtime Version:4.0.30319.42000
5 | '
6 | ' Changes to this file may cause incorrect behavior and will be lost if
7 | ' the code is regenerated.
8 | '
9 | '------------------------------------------------------------------------------
10 |
11 | Option Strict On
12 | Option Explicit On
13 |
14 |
15 | Namespace My.Resources
16 |
17 | 'This class was auto-generated by the StronglyTypedResourceBuilder
18 | 'class via a tool like ResGen or Visual Studio.
19 | 'To add or remove a member, edit your .ResX file then rerun ResGen
20 | 'with the /str option, or rebuild your VS project.
21 | '''
22 | ''' A strongly-typed resource class, for looking up localized strings, etc.
23 | '''
24 | _
28 | Friend Module Resources
29 |
30 | Private resourceMan As Global.System.Resources.ResourceManager
31 |
32 | Private resourceCulture As Global.System.Globalization.CultureInfo
33 |
34 | '''
35 | ''' Returns the cached ResourceManager instance used by this class.
36 | '''
37 | _
38 | Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
39 | Get
40 | If Object.ReferenceEquals(resourceMan, Nothing) Then
41 | Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("HalconScaledImage.Resources", GetType(Resources).Assembly)
42 | resourceMan = temp
43 | End If
44 | Return resourceMan
45 | End Get
46 | End Property
47 |
48 | '''
49 | ''' Overrides the current thread's CurrentUICulture property for all
50 | ''' resource lookups using this strongly typed resource class.
51 | '''
52 | _
53 | Friend Property Culture() As Global.System.Globalization.CultureInfo
54 | Get
55 | Return resourceCulture
56 | End Get
57 | Set(ByVal value As Global.System.Globalization.CultureInfo)
58 | resourceCulture = value
59 | End Set
60 | End Property
61 | End Module
62 | End Namespace
63 |
--------------------------------------------------------------------------------
/HalconScaledImage/HalconScaledImage/My Project/Settings.Designer.vb:
--------------------------------------------------------------------------------
1 | '------------------------------------------------------------------------------
2 | '
3 | ' This code was generated by a tool.
4 | ' Runtime Version:4.0.30319.42000
5 | '
6 | ' Changes to this file may cause incorrect behavior and will be lost if
7 | ' the code is regenerated.
8 | '
9 | '------------------------------------------------------------------------------
10 |
11 | Option Strict On
12 | Option Explicit On
13 |
14 |
15 | Namespace My
16 |
17 | _
20 | Partial Friend NotInheritable Class MySettings
21 | Inherits Global.System.Configuration.ApplicationSettingsBase
22 |
23 | Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
24 |
25 | #Region "My.Settings Auto-Save Functionality"
26 | #If _MyType = "WindowsForms" Then
27 | Private Shared addedHandler As Boolean
28 |
29 | Private Shared addedHandlerLockObject As New Object
30 |
31 | _
32 | Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
33 | If My.Application.SaveMySettingsOnExit Then
34 | My.Settings.Save()
35 | End If
36 | End Sub
37 | #End If
38 | #End Region
39 |
40 | Public Shared ReadOnly Property [Default]() As MySettings
41 | Get
42 |
43 | #If _MyType = "WindowsForms" Then
44 | If Not addedHandler Then
45 | SyncLock addedHandlerLockObject
46 | If Not addedHandler Then
47 | AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
48 | addedHandler = True
49 | End If
50 | End SyncLock
51 | End If
52 | #End If
53 | Return defaultInstance
54 | End Get
55 | End Property
56 | End Class
57 | End Namespace
58 |
59 | Namespace My
60 |
61 | _
64 | Friend Module MySettingsProperty
65 |
66 | _
67 | Friend ReadOnly Property Settings() As Global.HalconScaledImage.My.MySettings
68 | Get
69 | Return Global.HalconScaledImage.My.MySettings.Default
70 | End Get
71 | End Property
72 | End Module
73 | End Namespace
74 |
--------------------------------------------------------------------------------
/HalconScaledImage/HalconScaledImage/My Project/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/HalconScaledImage/HalconScaledImage/My Project/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
52 |
59 |
60 |
61 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28307.168
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HalconTemplateDemo", "HalconTemplateDemo\HalconTemplateDemo.csproj", "{A63CB120-C2CE-455B-A699-D8DD698E98CE}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Debug|x86 = Debug|x86
12 | Release|Any CPU = Release|Any CPU
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {A63CB120-C2CE-455B-A699-D8DD698E98CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {A63CB120-C2CE-455B-A699-D8DD698E98CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {A63CB120-C2CE-455B-A699-D8DD698E98CE}.Debug|x86.ActiveCfg = Debug|x86
19 | {A63CB120-C2CE-455B-A699-D8DD698E98CE}.Debug|x86.Build.0 = Debug|x86
20 | {A63CB120-C2CE-455B-A699-D8DD698E98CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {A63CB120-C2CE-455B-A699-D8DD698E98CE}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {A63CB120-C2CE-455B-A699-D8DD698E98CE}.Release|x86.ActiveCfg = Release|x86
23 | {A63CB120-C2CE-455B-A699-D8DD698E98CE}.Release|x86.Build.0 = Release|x86
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | GlobalSection(ExtensibilityGlobals) = postSolution
29 | SolutionGuid = {D63E3310-4F8F-410D-BB3E-9899F17131C3}
30 | EndGlobalSection
31 | EndGlobal
32 |
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo/App.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo/App.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | //
3 | // Copyright (c) Resolution Technology, Inc. All rights reserved.
4 | //
5 | //-----------------------------------------------------------------------
6 |
7 | namespace HalconTemplateDemo
8 | {
9 | using System;
10 | using System.Security.Permissions;
11 | using System.Windows;
12 |
13 | ///
14 | /// Interaction logic for App.xaml
15 | ///
16 | public partial class App : Application
17 | {
18 | ///
19 | /// Initializes a new instance of the App class.
20 | ///
21 | public App()
22 | {
23 | IDisposable disposableViewModel = null;
24 |
25 | // Create and show window while storing data context
26 | this.Startup += (sender, args) =>
27 | {
28 | MainWindow = new MainWindow();
29 | disposableViewModel = MainWindow.DataContext as IDisposable;
30 |
31 | SplashScreen splashScreen = new SplashScreen("rti_logo.jpg");
32 | splashScreen.Show(true, !System.Diagnostics.Debugger.IsAttached);
33 | MainWindow.Show();
34 | };
35 |
36 | // Dispose on unhandled exception
37 | this.DispatcherUnhandledException += (sender, args) =>
38 | {
39 | if (disposableViewModel != null)
40 | {
41 | disposableViewModel.Dispose();
42 | }
43 | };
44 |
45 | // Dispose on exit
46 | this.Exit += (sender, args) =>
47 | {
48 | if (disposableViewModel != null)
49 | {
50 | disposableViewModel.Dispose();
51 | }
52 | };
53 | }
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo/Libraries/Rti.Library.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rtigithub/HalconExamples/1cb5bf9a93bbd4ec79035ec5e74c60aecff1fd8b/HalconTemplateDemo/HalconTemplateDemo/Libraries/Rti.Library.dll
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo/Models/Enums.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | //
3 | // Copyright (c) Resolution Technology, Inc. All rights reserved.
4 | //
5 | //-----------------------------------------------------------------------
6 | [module: System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649:FileHeaderFileNameDocumentationMustMatchTypeName",
7 | Justification = "Allow the name of the file to be used.")]
8 |
9 | namespace HalconTemplateDemo.Models
10 | {
11 | ///
12 | /// Enumeration of error codes.
13 | ///
14 | public enum ProcessingErrorCode
15 | {
16 | ///
17 | /// No error occurred.
18 | ///
19 | NoError,
20 |
21 | ///
22 | /// Example error code. To be changed or removed.
23 | ///
24 | ProcessingStep1Error,
25 |
26 | ///
27 | /// Example error code. To be changed or removed.
28 | ///
29 | ProcessingStep2Error,
30 |
31 | ///
32 | /// An undefined error occurred.
33 | ///
34 | UndefinedError,
35 |
36 | ///
37 | /// Wrong Tuple types supplied in parameters.
38 | ///
39 | ParameterError,
40 |
41 | ///
42 | /// An error occurred while acquiring an image.
43 | ///
44 | AcquisitionError,
45 |
46 | ///
47 | /// An error occurred while loading an image.
48 | ///
49 | LoadImageError,
50 |
51 | ///
52 | /// An error occurred while calibrating the camera.
53 | ///
54 | CalibrationError,
55 |
56 | ///
57 | /// An error occurred while initializing the camera.
58 | ///
59 | InitializingCameraError,
60 |
61 | ///
62 | /// An error occurred while storing a calibration file.
63 | ///
64 | CalibrationFileStorageError,
65 |
66 | ///
67 | /// An error occurred while creating a calibration map.
68 | ///
69 | CalibrationMapCreationHalconError,
70 |
71 | ///
72 | /// An error occurred while processing an ROI.
73 | ///
74 | ROIProcessingError,
75 |
76 | ///
77 | /// An error occurred while loading an ROI.
78 | ///
79 | LoadROIError,
80 |
81 | ///
82 | /// An error occurred while saving an ROI.
83 | ///
84 | SaveROIError
85 | }
86 |
87 | ///
88 | /// Enumeration of radio button options.
89 | ///
90 | public enum RadioButtonSelection
91 | {
92 | ///
93 | /// No selection. This is used to toggle the selection so that a reset can be done
94 | /// regardless of the current setting.
95 | ///
96 | None
97 | }
98 | }
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo/Models/IProcessingResult.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | //
3 | // Copyright (c) Resolution Technology, Inc. All rights reserved.
4 | //
5 | //-----------------------------------------------------------------------
6 |
7 | namespace HalconTemplateDemo.Models
8 | {
9 | ///
10 | /// Interface for ProcessingResult
11 | ///
12 | public interface IProcessingResult
13 | {
14 | ///
15 | /// Gets or sets the error message.
16 | ///
17 | string ErrorMessage
18 | {
19 | get;
20 | set;
21 | }
22 |
23 | ///
24 | /// Gets or sets the error code.
25 | ///
26 | ErrorCodeT StatusCode
27 | {
28 | get;
29 | set;
30 | }
31 |
32 | ///
33 | /// Implements the Dispose method of IDisposable.
34 | ///
35 | void Dispose();
36 | }
37 | }
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo/Models/IProcessor.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | //
3 | // Copyright (c) Resolution Technology, Inc. All rights reserved.
4 | //
5 | //-----------------------------------------------------------------------
6 |
7 | namespace HalconTemplateDemo.Models
8 | {
9 | using Rti.DisplayUtilities;
10 |
11 | ///
12 | /// Interface for the processor classes.
13 | ///
14 | public interface IProcessor
15 | {
16 | ///
17 | /// Gets or sets the debug DisplayCollection.
18 | ///
19 | DisplayCollection DebugDisplay
20 | {
21 | get;
22 | set;
23 | }
24 |
25 | ///
26 | /// Gets or sets the CompositeDisposable object.
27 | ///
28 | System.Reactive.Disposables.CompositeDisposable DisposeCollection
29 | {
30 | get;
31 | set;
32 | }
33 |
34 | ///
35 | /// Gets or sets the error code.
36 | ///
37 | ProcessingErrorCode ErrorCode
38 | {
39 | get;
40 | set;
41 | }
42 |
43 | ///
44 | /// Gets or sets the error message.
45 | ///
46 | string ErrorMessage
47 | {
48 | get;
49 | set;
50 | }
51 |
52 | ///
53 | /// Implements the Dispose method of IDisposable.
54 | ///
55 | void Dispose();
56 |
57 | ///
58 | /// Performs the process for this class.
59 | ///
60 | /// A structure containing the processing results and error information.
61 | ProcessingResult Process();
62 | }
63 | }
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo/Models/ProcessingResult.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | //
3 | // Copyright (c) Resolution Technology, Inc. All rights reserved.
4 | //
5 | //-----------------------------------------------------------------------
6 |
7 | namespace HalconTemplateDemo.Models
8 | {
9 | using System.Collections.Generic;
10 | using HalconDotNet;
11 |
12 | ///
13 | /// This class encapsulates the results from a generic process.
14 | ///
15 | public class ProcessingResult : ProcessingResultsBase
16 | {
17 | #region Private Fields
18 |
19 | ///
20 | /// Stores a value indicating whether the class has been disposed.
21 | ///
22 | private bool isDisposed = false;
23 |
24 | ///
25 | /// Stores a dictionary of results.
26 | ///
27 | private Dictionary resultsCollection = new Dictionary();
28 |
29 | #endregion Private Fields
30 |
31 | #region Public Constructors
32 |
33 | ///
34 | /// Initializes a new instance of the ProcessingResult class.
35 | ///
36 | public ProcessingResult()
37 | {
38 | this.StatusCode = ProcessingErrorCode.NoError;
39 | }
40 |
41 | #endregion Public Constructors
42 |
43 | #region Private Destructors
44 |
45 | #endregion Private Destructors
46 |
47 | #region Public Properties
48 |
49 | ///
50 | /// Gets or sets a dictionary of results.
51 | ///
52 | public Dictionary ResultsCollection
53 | {
54 | get => this.resultsCollection;
55 |
56 | set => this.resultsCollection = value;
57 | }
58 |
59 | #endregion Public Properties
60 |
61 | #region Public Methods
62 |
63 | #endregion Public Methods
64 |
65 | #region Protected Methods
66 |
67 | ///
68 | /// Overrides the Dispose method of IDisposable that actually disposes of managed resources.
69 | ///
70 | /// A boolean value indicating whether the class is being disposed.
71 | protected override void Dispose(bool disposing)
72 | {
73 | if (!this.isDisposed)
74 | {
75 | if (disposing)
76 | {
77 | //// Dispose of managed resources here.
78 | }
79 |
80 | foreach (var item in this.ResultsCollection)
81 | {
82 | if (item.Value is HObject)
83 | {
84 | ((HObject)item.Value).Dispose();
85 | }
86 | }
87 |
88 | this.ResultsCollection.Clear();
89 |
90 | //// Dispose of unmanaged resources here.
91 |
92 | this.isDisposed = true;
93 | }
94 |
95 | // Call base.Dispose, passing parameter.
96 | base.Dispose(disposing);
97 | }
98 |
99 | #endregion Protected Methods
100 | }
101 | }
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo/Models/ProcessingResultsBase.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | //
3 | // Copyright (c) Resolution Technology, Inc. All rights reserved.
4 | //
5 | //-----------------------------------------------------------------------
6 |
7 | namespace HalconTemplateDemo.Models
8 | {
9 | using System;
10 | using System.Collections.Generic;
11 |
12 | ///
13 | /// Base class for processing results.
14 | ///
15 | public abstract class ProcessingResultsBase : IDisposable, IProcessingResult
16 | {
17 | #region Private Fields
18 |
19 | ///
20 | /// Error message associated with an exception thrown.
21 | ///
22 | private string errorMessage = "No Errors";
23 |
24 | ///
25 | /// Stores a value indicating whether the class has been disposed.
26 | ///
27 | private bool isDisposed = false;
28 |
29 | ///
30 | /// An enumeration member indicating either success or the error encountered.
31 | ///
32 | private ErrorCodeT statusCode;
33 |
34 | #endregion Private Fields
35 |
36 | #region Public Constructors
37 |
38 | ///
39 | /// Initializes a new instance of the ProcessingResultsBase class.
40 | ///
41 | public ProcessingResultsBase()
42 | {
43 | }
44 |
45 | #endregion Public Constructors
46 |
47 | #region Private Destructors
48 |
49 | ///
50 | /// Finalizes an instance of the ProcessingResultsBase class.
51 | ///
52 | ~ProcessingResultsBase() => this.Dispose(false);
53 |
54 | #endregion Private Destructors
55 |
56 | #region Public Properties
57 |
58 | ///
59 | /// Gets or sets the error message.
60 | ///
61 | public string ErrorMessage
62 | {
63 | get => this.errorMessage;
64 |
65 | set => this.errorMessage = value;
66 | }
67 |
68 | ///
69 | /// Gets or sets the error code.
70 | ///
71 | public ErrorCodeT StatusCode
72 | {
73 | get => this.statusCode;
74 |
75 | set => this.statusCode = value;
76 | }
77 |
78 | #endregion Public Properties
79 |
80 | #region Public Methods
81 |
82 | ///
83 | /// Implements the Dispose method of IDisposable.
84 | ///
85 | public void Dispose()
86 | {
87 | this.Dispose(true);
88 | GC.SuppressFinalize(this);
89 | }
90 |
91 | #endregion Public Methods
92 |
93 | #region Protected Methods
94 |
95 | ///
96 | /// Implements the Dispose method of IDisposable that actually disposes of managed resources.
97 | ///
98 | /// A boolean value indicating whether the class is being disposed.
99 | protected virtual void Dispose(bool disposing)
100 | {
101 | if (!this.isDisposed)
102 | {
103 | if (disposing)
104 | {
105 | //// Code to dispose the managed resources
106 | //// held by the class.
107 | }
108 | }
109 |
110 | this.isDisposed = true;
111 | }
112 |
113 | #endregion Protected Methods
114 | }
115 | }
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Windows;
6 |
7 | // General Information about an assembly is controlled through the following
8 | // set of attributes. Change these attribute values to modify the information
9 | // associated with an assembly.
10 | [assembly: AssemblyTitle("HalconTemplateDemo")]
11 | [assembly: AssemblyDescription("")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyCompany("Resolution Technology, Inc.")]
14 | [assembly: AssemblyProduct("HalconTemplateDemo")]
15 | [assembly: AssemblyCopyright("Copyright © 2016, 2017, 2018")]
16 | [assembly: AssemblyTrademark("")]
17 | [assembly: AssemblyCulture("")]
18 |
19 | // Setting ComVisible to false makes the types in this assembly not visible
20 | // to COM components. If you need to access a type in this assembly from
21 | // COM, set the ComVisible attribute to true on that type.
22 | [assembly: ComVisible(false)]
23 |
24 | //In order to begin building localizable applications, set
25 | //CultureYouAreCodingWith in your .csproj file
26 | //inside a . For example, if you are using US english
27 | //in your source files, set the to en-US. Then uncomment
28 | //the NeutralResourceLanguage attribute below. Update the "en-US" in
29 | //the line below to match the UICulture setting in the project file.
30 |
31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32 |
33 |
34 | [assembly: ThemeInfo(
35 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
36 | //(used if a resource is not found in the page,
37 | // or application resource dictionaries)
38 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
39 | //(used if a resource is not found in the page,
40 | // app, or any theme specific resource dictionaries)
41 | )]
42 |
43 |
44 | // Version information for an assembly consists of the following four values:
45 | //
46 | // Major Version
47 | // Minor Version
48 | // Build Number
49 | // Revision
50 | //
51 | // You can specify all the values or you can default the Build and Revision Numbers
52 | // by using the '*' as shown below:
53 | [assembly: AssemblyVersion("4.15.0.*")]
54 |
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace HalconTemplateDemo.Properties
12 | {
13 | using System;
14 |
15 |
16 | ///
17 | /// A strongly-typed resource class, for looking up localized strings, etc.
18 | ///
19 | // This class was auto-generated by the StronglyTypedResourceBuilder
20 | // class via a tool like ResGen or Visual Studio.
21 | // To add or remove a member, edit your .ResX file then rerun ResGen
22 | // with the /str option, or rebuild your VS project.
23 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
24 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
25 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
26 | internal class Resources
27 | {
28 |
29 | private static global::System.Resources.ResourceManager resourceMan;
30 |
31 | private static global::System.Globalization.CultureInfo resourceCulture;
32 |
33 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
34 | internal Resources()
35 | {
36 | }
37 |
38 | ///
39 | /// Returns the cached ResourceManager instance used by this class.
40 | ///
41 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
42 | internal static global::System.Resources.ResourceManager ResourceManager
43 | {
44 | get
45 | {
46 | if (object.ReferenceEquals(resourceMan, null))
47 | {
48 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("HalconTemplateDemo.Properties.Resources", typeof(Resources).Assembly);
49 | resourceMan = temp;
50 | }
51 | return resourceMan;
52 | }
53 | }
54 |
55 | ///
56 | /// Overrides the current thread's CurrentUICulture property for all
57 | /// resource lookups using this strongly typed resource class.
58 | ///
59 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
60 | internal static global::System.Globalization.CultureInfo Culture
61 | {
62 | get
63 | {
64 | return resourceCulture;
65 | }
66 | set
67 | {
68 | resourceCulture = value;
69 | }
70 | }
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace HalconTemplateDemo.Properties
12 | {
13 |
14 |
15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.1.0.0")]
17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 | {
19 |
20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21 |
22 | public static Settings Default
23 | {
24 | get
25 | {
26 | return defaultInstance;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo/ViewModels/IMainViewModel.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | //
3 | // Copyright (c) Resolution Technology, Inc. All rights reserved.
4 | //
5 | //-----------------------------------------------------------------------
6 |
7 | namespace HalconTemplateDemo.ViewModels
8 | {
9 | using System;
10 |
11 | ///
12 | /// Interface for the main view model classes.
13 | ///
14 | public interface IMainViewModel
15 | {
16 | ///
17 | /// Gets or sets the app state.
18 | ///
19 | int AppState { get; set; }
20 |
21 | ///
22 | /// Gets the CompositeDisposable object.
23 | ///
24 | System.Reactive.Disposables.CompositeDisposable DisposeCollection { get; }
25 |
26 | ///
27 | /// Gets or sets the reactive list of Menu Item view models.
28 | ///
29 | ReactiveUI.ReactiveList MenuItems { get; set; }
30 |
31 | ///
32 | /// Gets or sets the DataSet that stores the processing result.
33 | ///
34 | System.Data.DataSet ProcessingResultsDataSet { get; set; }
35 |
36 | ///
37 | /// Gets or sets the status text.
38 | ///
39 | string StatusText { get; set; }
40 |
41 | ///
42 | /// Implements the Dispose method of IDisposable.
43 | ///
44 | void Dispose();
45 | }
46 | }
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo/ViewModels/MenuItemVM.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | //
3 | // Copyright (c) Resolution Technology, Inc. All rights reserved.
4 | //
5 | //-----------------------------------------------------------------------
6 |
7 | namespace HalconTemplateDemo.ViewModels
8 | {
9 | using System.Reactive;
10 | using Models;
11 | using ReactiveUI;
12 |
13 | ///
14 | /// MenuItemVM is a small class that stores the objects needed for a context menu item.
15 | ///
16 | public class MenuItemVM
17 | {
18 | ///
19 | /// Initializes a new instance of the MenuItemVM class.
20 | ///
21 | /// The display name for the menu item.
22 | /// The menu command.
23 | public MenuItemVM(string name, ReactiveCommand command)
24 | {
25 | this.DisplayName = name;
26 | this.MenuCommand = command;
27 | }
28 |
29 | ///
30 | /// Gets or sets the display name.
31 | ///
32 | public string DisplayName { get; set; }
33 |
34 | ///
35 | /// Gets or sets the command to be bound to the menu item.
36 | ///
37 | public ReactiveCommand MenuCommand { get; protected set; }
38 | }
39 | }
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo/Views/NegativeIntegerConverter.cs:
--------------------------------------------------------------------------------
1 |
2 | // ***********************************************************************
3 | // Assembly : HalconTemplateDemo
4 | // Author : Resolution Technology, Inc.
5 | // Created : 06-15-2017
6 | // Last Modified On : 06-15-2017
7 | // ***********************************************************************
8 | //
9 | // Copyright © 2016, 2017
10 | //
11 | //
12 | // ***********************************************************************
13 |
14 | namespace RibbonTest
15 | {
16 | using System;
17 | using System.Globalization;
18 | using System.Windows.Data;
19 |
20 | ///
21 | /// Class NegativeIntegerConverter.
22 | ///
23 | ///
24 | class NegativeIntegerConverter : IValueConverter
25 | {
26 | ///
27 | /// Converts a value.
28 | ///
29 | /// The value produced by the binding source.
30 | /// The type of the binding target property.
31 | /// The converter parameter to use.
32 | /// The culture to use in the converter.
33 | /// A converted value. If the method returns , the valid null value is used.
34 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) =>
35 | -1 * System.Convert.ToInt32(value);
36 |
37 | ///
38 | /// Converts a value.
39 | ///
40 | /// The value that is produced by the binding target.
41 | /// The type to convert to.
42 | /// The converter parameter to use.
43 | /// The culture to use in the converter.
44 | /// A converted value. If the method returns , the valid null value is used.
45 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) =>
46 | -1 * System.Convert.ToInt32(value);
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo/Views/RadioButtonCheckedToEnumConverter.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | //
3 | // Copyright (c) Resolution Technology, Inc. All rights reserved.
4 | //
5 | //-----------------------------------------------------------------------
6 |
7 | namespace HalconTemplateDemo.View
8 | {
9 | using System;
10 | using System.Windows.Data;
11 |
12 | ///
13 | /// IValueConverter from radio button checked property to an enumeration type determined from usage.
14 | ///
15 | public class RadioButtonCheckedToEnumConverter : IValueConverter
16 | {
17 | ///
18 | /// Converts from the enumeration type to the value type, a boolean for the IsChecked property.
19 | ///
20 | /// The value of the radio button.
21 | /// The type of the enumeration.
22 | /// The converter parameter.
23 | /// The culture.
24 | /// The boolean value.
25 | public object Convert(object value, Type enumType, object parameter, System.Globalization.CultureInfo culture) =>
26 | parameter.Equals(value);
27 |
28 | ///
29 | /// Returns the enumeration value of the parameter if value is true.
30 | ///
31 | /// The value of the radio button.
32 | /// The type of the enumeration.
33 | /// The converter parameter.
34 | /// The culture.
35 | /// The enumeration value.
36 | public object ConvertBack(object value, Type enumType, object parameter, System.Globalization.CultureInfo culture) =>
37 | value.Equals(true) ? parameter : Binding.DoNothing;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo/app.config:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/HalconTemplateDemo/HalconTemplateDemo/rti_logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rtigithub/HalconExamples/1cb5bf9a93bbd4ec79035ec5e74c60aecff1fd8b/HalconTemplateDemo/HalconTemplateDemo/rti_logo.jpg
--------------------------------------------------------------------------------
/LicenseCheck/LicenseCheck.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28307.421
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LicenseCheck", "LicenseCheck\LicenseCheck.csproj", "{945BFE2F-3D40-43A5-9138-0DF43C56E710}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {945BFE2F-3D40-43A5-9138-0DF43C56E710}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {945BFE2F-3D40-43A5-9138-0DF43C56E710}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {945BFE2F-3D40-43A5-9138-0DF43C56E710}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {945BFE2F-3D40-43A5-9138-0DF43C56E710}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {5E7A8E96-FC85-4CA4-8D7E-8B6AE68C844B}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/LicenseCheck/LicenseCheck/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/LicenseCheck/LicenseCheck/LicenseCheck.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {945BFE2F-3D40-43A5-9138-0DF43C56E710}
8 | Exe
9 | LicenseCheck
10 | LicenseCheck
11 | v4.6.1
12 | 512
13 | true
14 | true
15 |
16 |
17 | AnyCPU
18 | true
19 | full
20 | false
21 | bin\Debug\
22 | DEBUG;TRACE
23 | prompt
24 | 4
25 | false
26 |
27 |
28 | AnyCPU
29 | pdbonly
30 | true
31 | bin\Release\
32 | TRACE
33 | prompt
34 | 4
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 | 20.11.0.1
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/LicenseCheck/LicenseCheck/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 | using HalconDotNet;
4 |
5 | namespace LicenseCheck
6 | {
7 | class Program
8 | {
9 | public delegate void HLicenseRecheckCallback(IntPtr context, int error);
10 |
11 | // Must match library name use "halconxl" if appropriate
12 | [DllImport("halcon", CallingConvention = CallingConvention.Cdecl)]
13 | public static extern void HSetLicenseRecheckFailedCallback(
14 | HLicenseRecheckCallback callback, IntPtr context);
15 |
16 | // Member variable, delegate must be referenced / kept alive while in use
17 | static readonly HLicenseRecheckCallback MyCallback = MyCallbackImpl;
18 | // This method contains the implementation of what should happen in case of an error.
19 | public static void MyCallbackImpl(IntPtr context, int error)
20 | {
21 | Console.WriteLine("Error while checking the license (" + error + ")");
22 | }
23 |
24 | static void Main(string[] args)
25 | {
26 | // During execution of initialization code
27 | HSetLicenseRecheckFailedCallback(MyCallback, IntPtr.Zero);
28 | HImage img = new HImage();
29 | while (true)
30 | {
31 | // If possible, always do a proper error handling of HALCON functionality!
32 | // This should not always prevent you from licensing but also other issues.
33 | try
34 | {
35 | Console.WriteLine("Executing HALCON functionality and sleeping afterwards...");
36 | img.ReadImage("monkey");
37 | }
38 | catch (HOperatorException e)
39 | {
40 | Console.WriteLine("Error while executing HALCON functionality: " + e.Message);
41 | }
42 | System.Threading.Thread.Sleep(5000);
43 | }
44 | }
45 |
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/LicenseCheck/LicenseCheck/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("LicenseCheck")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("LicenseCheck")]
13 | [assembly: AssemblyCopyright("Copyright © 2019")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("945bfe2f-3d40-43a5-9138-0df43c56e710")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # HalconExamples
2 | Small example projects demonstrating subset of features
3 | This is a collection of simple programs and projects demonstrating some of the tasks that we need to do. These examples are not fully debugged and do not represent our best practices.
4 |
--------------------------------------------------------------------------------
/license.md:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2016, 2017, 2018 Resolution Technology, Inc.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------