public void SetPluginHost(IPluginHost Host) { //assign host this.FHost = Host; eventHandler = new NWReceiveTouchInfoDelegate(ReceiveTouchInformation); connectEventHandler = new NWConnectEventDelegate(ConnectEventHandler); disconnectEventHandler = new NWDisconnectEventDelegate(ConnectEventHandler); //Set the connect and disconnect event handlers. Imports.SetConnectEventHandler(connectEventHandler); Imports.SetDisconnectEventHandler(disconnectEventHandler); //this.FHost.CreateValueInput("Enabled", 1, null, TSliceMode.Single, TPinVisibility.True, out this.FPinInEnabled); //this.FPinInEnabled.SetSubType(0, 1, 1, 0, false, true, false); this.FHost.CreateValueOutput("Devices Count", 1, null, TSliceMode.Single, TPinVisibility.True, out this.FPinOutDevicesCount); this.FPinOutDevicesCount.SetSubType(0, double.MaxValue, 1, 0, false, false, true); this.FHost.CreateValueOutput("Id", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out this.FPinOutId); this.FPinOutId.SetSubType(double.MinValue, double.MaxValue, 1, 0, false, false, true); this.FHost.CreateValueOutput("Position", 2, null, TSliceMode.Dynamic, TPinVisibility.True, out this.FPinOutPosition); this.FPinOutPosition.SetSubType2D(double.MinValue, double.MaxValue, 0.01, 0, 0, false, false, false); this.FHost.CreateValueOutput("Size", 2, null, TSliceMode.Dynamic, TPinVisibility.True, out this.FPinOutSize); this.FPinOutSize.SetSubType2D(double.MinValue, double.MaxValue, 0.01, 0, 0, false, false, false); this.FHost.CreateValueOutput("Velocity", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out this.FPinOutVelocity); this.FPinOutVelocity.SetSubType(double.MinValue, double.MaxValue, 0.01, 0, false, false, false); this.FHost.CreateStringOutput("Event Type", TSliceMode.Dynamic, TPinVisibility.True, out this.FpinOutEventType); this.FpinOutEventType.SetSubType("", false); this.FHost.CreateStringOutput("Type", TSliceMode.Dynamic, TPinVisibility.True, out this.FPinOutType); this.FPinOutType.SetSubType("", false); this.FHost.CreateValueOutput("Confidence Level", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out this.FpinOutLevel); this.FpinOutLevel.SetSubType(double.MinValue, double.MaxValue, 1, 0, false, false, true); this.FHost.CreateValueOutput("On Data", 1, null, TSliceMode.Single, TPinVisibility.True, out this.FPinOutOnData); this.FPinOutOnData.SetSubType(0, 1, 1, 0, false, true, false); }
public static extern Int32 OpenDevice(Int32 deviceID, NWReceiveTouchInfoDelegate callbackFn);