//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { //assign host FHost = Host; //create inputs FHost.CreateValueInput("Refresh", 1, null, TSliceMode.Single, TPinVisibility.True, out FRefresh); FRefresh.SetSubType(0, 1, 1, 0, true, false, false); //create outputs FHost.CreateValueOutput("Resolution", 2, null, TSliceMode.Dynamic, TPinVisibility.True, out FResolutionOutput); FResolutionOutput.SetSubType2D(double.MinValue, double.MaxValue, 0.01, 0, 0, false, false, true); FHost.CreateValueOutput("Resolution Offset", 2, null, TSliceMode.Dynamic, TPinVisibility.True, out FResolutionOffsetOutput); FResolutionOffsetOutput.SetSubType2D(double.MinValue, double.MaxValue, 0.01, 0, 0, false, false, true); FHost.CreateValueOutput("Working Area", 2, null, TSliceMode.Dynamic, TPinVisibility.True, out FWorkAreaOutput); FWorkAreaOutput.SetSubType2D(double.MinValue, double.MaxValue, 0.01, 0, 0, false, false, true); FHost.CreateValueOutput("Working Area Offset", 2, null, TSliceMode.Dynamic, TPinVisibility.True, out FWorkAreaOffsetOutput); FWorkAreaOffsetOutput.SetSubType2D(double.MinValue, double.MaxValue, 0.01, 0, 0, false, false, true); FHost.CreateValueOutput("Bits Per Pixel", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FBitsPerPixel); FBitsPerPixel.SetSubType(0.0, 1.1, 0.01, 0, false, false, true); FHost.CreateStringOutput("Device Name", TSliceMode.Dynamic, TPinVisibility.True, out FDeviceName); FDeviceName.SetSubType("", false); FHost.CreateValueOutput("Is Primary", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FIsPrimary); FIsPrimary.SetSubType(0.0, 1.1, 0.01, 0, false, true, false); }
//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { //assign host FHost = Host; //create inputs FHost.CreateValueConfig("Ansi/UTF8", 1, null, TSliceMode.Single, TPinVisibility.OnlyInspector, out FAnsiUtf); FAnsiUtf.SetSubType(0, 1, 1, 0, false, true, false); FHost.CreateValueConfig("Toggle line-wise", 1, null, TSliceMode.Single, TPinVisibility.OnlyInspector, out FLineWise); FLineWise.SetSubType(0, 1, 1, 0, false, true, false); FHost.CreateStringInput("Filename", TSliceMode.Dynamic, TPinVisibility.True, out FFilename); FFilename.SetSubType("", true); FHost.CreateValueInput("Startindex", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FIndex); FIndex.SetSubType(0, double.MaxValue, 1, 0, false, false, true); FHost.CreateValueInput("Count", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FCount); FCount.SetSubType(0, double.MaxValue, 1, 1, false, false, true); FHost.CreateValueInput("Update", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FUpdate); FUpdate.SetSubType(0, 1, 1, 0, true, false, false); //create outputs FHost.CreateStringOutput("Content", TSliceMode.Dynamic, TPinVisibility.True, out FContent); FContent.SetSubType("", false); }
//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { //assign host FHost = Host; //create inputs FHost.CreateValueInput("Enable", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FEnable); FEnable.SetSubType(0, 1, 1, 0, false, false, true); FHost.CreateValueInput("Sensitivity XYZ", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FSensitivity); FSensitivity.SetSubType(double.MinValue, double.MaxValue, 0.01, 0, false, false, false); FHost.CreateValueInput("Serial Number", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FSerial); FSerial.SetSubType(0, double.MaxValue, 1, 0, false, false, true); //create outputs FHost.CreateValueOutput("Axis XYZ", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FAxis); FAxis.SetSubType(0, 1, 0.0001, 0, false, false, false); FHost.CreateValueOutput("Connected", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FConnected); FConnected.SetSubType(0, 1, 1, 0, false, true, true); FHost.CreateStringOutput("Info", TSliceMode.Dynamic, TPinVisibility.True, out FInfo); FInfo.SetSubType("Disabled", false); }
//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { //assign host FHost = Host; //create inputs FHost.CreateValueInput("Enable", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FEnable); FEnable.SetSubType(0, 1, 1, 0, false, true, true); FHost.CreateValueInput("Position", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FPositionIn); FPositionIn.SetSubType(double.MinValue, double.MaxValue, 1, 0, false, false, true); FHost.CreateValueInput("SetPosition", 1, null, TSliceMode.Single, TPinVisibility.True, out FSetPosition); FSetPosition.SetSubType(0, 1, 1, 0, true, false, true); FHost.CreateValueInput("Serial", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FSerial); FSerial.SetSubType(0, double.MaxValue, 1, 0, false, false, true); //create outputs FHost.CreateValueOutput("Position", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FPositionOut); FPositionOut.SetSubType(double.MinValue, double.MaxValue, 0.0001, 0, false, false, false); FHost.CreateStringOutput("Info", TSliceMode.Dynamic, TPinVisibility.True, out FInfo); FInfo.SetSubType("Disabled", false); }
public void SetPluginHost(IPluginHost Host) { FHost = Host; //INPUT-PINS FHost.CreateStringInput("Input", TSliceMode.Dynamic, TPinVisibility.True, out FDataIn); FDataIn.SetSubType("", false); FHost.CreateValueInput("Do Send", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FDoSendIn); FDoSendIn.SetSubType(0, 1, 1, 0, true, false, true); FHost.CreateValueInput("Keep Last Data", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FKeepLastDataIn); FKeepLastDataIn.SetSubType(0, 1, 1, 0, false, false, true); FHost.CreateValueInput("Baudrate", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FBaudrateIn); FBaudrateIn.SetSubType(Double.MinValue, Double.MaxValue, 1, 9600, false, false, true); FHost.CreateEnumInput("Data Bits", TSliceMode.Dynamic, TPinVisibility.True, out FDatabitsIn); FDatabitsIn.SetSubType("DataBits"); FHost.CreateEnumInput("Stop Bits", TSliceMode.Dynamic, TPinVisibility.True, out FStopbitsIn); FStopbitsIn.SetSubType("StopBits"); FHost.CreateEnumInput("Parity", TSliceMode.Dynamic, TPinVisibility.True, out FParityIn); FParityIn.SetSubType("Parity"); FHost.CreateEnumInput("Hand Shake", TSliceMode.Dynamic, TPinVisibility.True, out FHandShakeIn); FHandShakeIn.SetSubType("Hand Shake"); FHost.UpdateEnum("Hand Shake", "None", new string[] { "None", "RequestToSend", "RequestToSendXOnXOff", "XOnXOff" }); FHost.CreateValueInput("ReadBuffer Size", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FReadBufferIn); FReadBufferIn.SetSubType(0, Double.MaxValue, 1, 4096, false, false, true); FHost.CreateValueInput("Enabled", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FEnableIn); FEnableIn.SetSubType(0, 1, 1, 0, false, false, true); FHost.CreateValueInput("ComPort", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FPortNumberIn); FPortNumberIn.SetSubType(1, double.MaxValue, 1, 1, false, false, true); // OUTPUT-PINS FHost.CreateStringOutput("Output", TSliceMode.Dynamic, TPinVisibility.True, out FDataOut); FDataOut.SetSubType("", false); FHost.CreateValueOutput("On Data", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FOnDataOut); FOnDataOut.SetSubType(0, 1, 1, 0, true, false, true); FHost.CreateValueOutput("IsConnected", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FConnectedOut); FConnectedOut.SetSubType(0, 1, 1, 0, false, false, true); FHost.CreateValueOutput("Available Ports", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FPortsOut); FPortsOut.SetSubType(1, 15, 1, 1, false, false, true); FHost.CreateValueOutput("ReadBuffer Size", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FReadBufferOut); FReadBufferOut.SetSubType(0, Double.MaxValue, 1, 0, false, false, true); FPortsOut.SliceCount = _AvailablePorts.Length; }
protected override void CreatePins() { base.CreatePins(); FHost.CreateStringOutput(Name, TSliceMode.Dynamic, TPinVisibility.True, out FStringOut); FStringOut.SetSubType("default", false); FStringOut.Order = Order; }
//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { //assign host FHost = Host; //create inputs FHost.CreateValueInput("Update", 1, null, TSliceMode.Single, TPinVisibility.True, out FRefresh); FRefresh.SetSubType(0, 1, 1, 0, true, false, false); //create outputs FHost.CreateStringOutput("Audio", TSliceMode.Dynamic, TPinVisibility.True, out FAudio); FAudio.SetSubType("", false); FHost.CreateStringOutput("Video", TSliceMode.Dynamic, TPinVisibility.True, out FVideo); FVideo.SetSubType("", false); }
protected override void CreatePins() { base.CreatePins(); FHost.CreateStringOutput(Name, TSliceMode.Dynamic, TPinVisibility.True, out FCurrentStateOut); FCurrentStateOut.SetSubType("", false); FCurrentStateOut.Order = Order; FHost.CreateStringOutput(Name + "-State", TSliceMode.Dynamic, TPinVisibility.OnlyInspector, out FStates); FStates.SetSubType("", false); FStates.Order = Order; FHost.CreateValueOutput(Name + "-StateTime", 1, null, TSliceMode.Dynamic, TPinVisibility.OnlyInspector, out FStateTimes); FStateTimes.SetSubType(double.MinValue, double.MaxValue, 0.0001, 0, false, false, false); FStateTimes.Order = Order; }
//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { //assign host FHost = Host; //create inputs FHost.CreateStringInput("Remote Host", TSliceMode.Dynamic, TPinVisibility.True, out FRemoteHostStringInput); FRemoteHostStringInput.SetSubType("localhost", false); FHost.CreateValueInput("Remote Port", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FRemotePortValueInput); FRemotePortValueInput.SetSubType(0.0, 65535.0, 1.0, 4444.0, false, false, true); FHost.CreateStringInput("Input", TSliceMode.Dynamic, TPinVisibility.True, out FInputStringInput); FInputStringInput.SetSubType("", false); FHost.CreateValueInput("Send", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FDoSendValueInput); FDoSendValueInput.SetSubType(0.0, 1.0, 1.0, 0.0, true, false, false); FHost.CreateValueInput("Hold", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FHoldOutputInput); FHoldOutputInput.SetSubType(0.0, 1.0, 1.0, 0.0, false, true, false); FHost.CreateValueInput("Receive Buffer Size", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FReceiveBufferSizeInput); FReceiveBufferSizeInput.SetSubType(1.0, (double)int.MaxValue, 1.0, 8192.0, false, false, true); FHost.CreateValueInput("Receive Timeout", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FReceiveTimeoutInput); FReceiveTimeoutInput.SetSubType(0.0, int.MaxValue / 1000.0, 1.0, 0.0, false, false, false); FHost.CreateValueInput("Send Buffer Size", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FSendBufferSizeInput); FSendBufferSizeInput.SetSubType(1.0, (double)int.MaxValue, 1.0, 8192.0, false, false, true); FHost.CreateValueInput("Send Timeout", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FSendTimeoutInput); FSendTimeoutInput.SetSubType(0.0, int.MaxValue / 1000.0, 1.0, 0.0, false, false, false); FHost.CreateValueInput("Enable", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FEnableValueInput); FEnableValueInput.SetSubType(0.0, 1.0, 1.0, 1.0, false, true, false); //create outputs FHost.CreateStringOutput("Output", TSliceMode.Dynamic, TPinVisibility.True, out FOutputStringOutput); FOutputStringOutput.SetSubType("", false); FHost.CreateValueOutput("NewData", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FReceivedNewData); FReceivedNewData.SetSubType(0, 1, 1, 0, true, false, true); FHost.CreateValueOutput("Connected", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FConnectedValueOutput); FConnectedValueOutput.SetSubType(0.0, 1.0, 1.0, 0.0, false, true, false); }
//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { //assign host FHost = Host; //create inputs //create outputs FHost.CreateValueOutput("BatteryPower", 1, null, TSliceMode.Single, TPinVisibility.True, out FBatteryStateOut); FBatteryStateOut.SetSubType(double.MinValue, double.MaxValue, 0.01, 0, false, false, false); FHost.CreateStringOutput("PowerMode", TSliceMode.Single, TPinVisibility.True, out FPowerStateOut); FPowerStateOut.SetSubType("", false); FHost.CreateStringOutput("PowerMessage", TSliceMode.Single, TPinVisibility.True, out FPowerMessage); FPowerMessage.SetSubType("", false); }
public void SetPluginHost(IPluginHost Host) { FHost = Host; //INPUT-PINS FHost.CreateStringInput("Mask", TSliceMode.Dynamic, TPinVisibility.True, out FMask); FMask.SetSubType("*.*", false); FHost.CreateStringInput("Directory", TSliceMode.Single, TPinVisibility.True, out FDirectory); FDirectory.SetSubType2("", int.MaxValue, string.Empty, TStringType.Directory); FHost.CreateValueInput("Include Subdirectories", 1, null, TSliceMode.Single, TPinVisibility.True, out FSubdirectories); FSubdirectories.SetSubType(0, 1, 1, 0, false, true, true); FHost.CreateValueInput("Show Short Filename", 1, null, TSliceMode.Single, TPinVisibility.False, out FShortFilenameIn); FShortFilenameIn.SetSubType(0, 1, 1, 1, false, true, true); FHost.UpdateEnum("Sort Order", "Name", new string[] { "Name", "FullName", "FileSize", "Extension", "LastAccess", "LastWriteTime", "CreationTime" }); FHost.CreateEnumInput("Sort Order", TSliceMode.Single, TPinVisibility.True, out FMaskRule); FMaskRule.SetSubType("Sort Order"); FHost.CreateValueInput("Count", 1, null, TSliceMode.Single, TPinVisibility.True, out FCountIn); FCountIn.SetSubType(0, double.MaxValue, 1, 0, false, false, true); FHost.UpdateEnum("Count Selection", "First", new string[] { "First", "Last" }); FHost.CreateEnumInput("Count Selection", TSliceMode.Single, TPinVisibility.True, out FCountOrder); FCountOrder.SetSubType("Count Selection"); FHost.CreateValueInput("Update", 1, null, TSliceMode.Single, TPinVisibility.True, out FUpdate); FUpdate.SetSubType(0, 1, 1, 0, true, false, true); // OUTPUT-PINS FHost.CreateStringOutput("Filenames", TSliceMode.Dynamic, TPinVisibility.True, out FFiles); FFiles.SetSubType("", true); FHost.CreateStringOutput("Short Filenames", TSliceMode.Dynamic, TPinVisibility.True, out FShortFilenameOut); FShortFilenameOut.SetSubType("", false); FHost.CreateValueOutput("File Count", 1, null, TSliceMode.Single, TPinVisibility.True, out FCountOut); FCountOut.SetSubType(0, double.MaxValue, 1, 0, false, false, true); FHost.CreateStringOutput("Message", TSliceMode.Single, TPinVisibility.Hidden, out FMessage); FMessage.SetSubType("OK", false); }
//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { //assign host FHost = Host; //create inputs FHost.CreateStringInput("Shortcut", TSliceMode.Dynamic, TPinVisibility.True, out FShortcut); FShortcut.SetSubType(@"c:\dummy.lnk", false); //create outputs FHost.CreateStringOutput("Destination", TSliceMode.Dynamic, TPinVisibility.True, out FDestination); FDestination.SetSubType("", true); FHost.CreateStringOutput("Working Directory", TSliceMode.Dynamic, TPinVisibility.OnlyInspector, out FWorkingDir); FWorkingDir.SetSubType("", true); FHost.CreateStringOutput("Icon Location", TSliceMode.Dynamic, TPinVisibility.OnlyInspector, out FIcon); FIcon.SetSubType("", true); }
//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { //assign host FHost = Host; //create inputs FHost.CreateValueInput("A", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FMyValueInputA); FMyValueInputA.SetSubType(0, 255, 1, 127, false, false, true); FHost.CreateValueInput("B", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FMyValueInputB); FMyValueInputB.SetSubType(0, 255, 1, 0, false, false, true); FHost.CreateValueInput("C", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FMyValueInputC); FMyValueInputC.SetSubType(0, 255, 1, 0, false, false, true); FHost.CreateValueInput("D", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FMyValueInputD); FMyValueInputD.SetSubType(0, 255, 1, 1, false, false, true); //create outputs FHost.CreateStringOutput("IP", TSliceMode.Dynamic, TPinVisibility.True, out FMyStringOutput); FMyStringOutput.SetSubType("", false); }
//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { //assign host FHost = Host; //create inputs FHost.CreateValueInput("Enabled", 1, null, TSliceMode.Single, TPinVisibility.True, out FEnablePin); FEnablePin.SetSubType(0, 1, 1, 1, false, true, false); FHost.CreateValueInput("Format", 1, null, TSliceMode.Single, TPinVisibility.True, out FFormatPin); FFormatPin.SetSubType(0, 5, 1, 1, false, false, true); FHost.CreateValueInput("Pixel Clock", 1, null, TSliceMode.Single, TPinVisibility.True, out FPixelClockPin); FPixelClockPin.SetSubType(5, 30, 1, 30, false, false, false); FHost.CreateValueInput("Framerate", 1, null, TSliceMode.Single, TPinVisibility.True, out FFrameRatePin); FFrameRatePin.SetSubType(7.76, 52.18, 0.01, 52.18, false, false, false); FHost.CreateValueInput("Exposure Time", 1, null, TSliceMode.Single, TPinVisibility.True, out FExposureTimePin); FExposureTimePin.SetSubType(0.03, 19.099, 0.01, 5, false, false, false); FHost.CreateValueInput("Flash Mode", 1, null, TSliceMode.Single, TPinVisibility.True, out FFlashModePin); FFlashModePin.SetSubType(0, 10, 1, 0, false, false, true); FHost.CreateValueInput("Flash Delay", 1, null, TSliceMode.Single, TPinVisibility.True, out FFlashDelayPin); FFlashDelayPin.SetSubType(0, 20, 0.01, 0, false, false, false); FHost.CreateValueInput("Flash Duration", 1, null, TSliceMode.Single, TPinVisibility.True, out FFlashDurationPin); FFlashDurationPin.SetSubType(0, 20, 0.01, 1, false, false, false); FHost.CreateStringInput("Shared Name", TSliceMode.Dynamic, TPinVisibility.True, out FSharedNamePin); FSharedNamePin.SetSubType("#vvvv", false); //create outputs FHost.CreateValueOutput("Actual Framerate", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FActualFrameRatePin); FActualFrameRatePin.SetSubType(0, double.MaxValue, 0.01, 0, false, false, false); FHost.CreateStringOutput("Info", TSliceMode.Single, TPinVisibility.True, out FInfoPin); FInfoPin.SetSubType("", false); }
//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { //assign host FHost = Host; //create inputs FHost.CreateValueInput("Enable", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FEnable); FEnable.SetSubType(0, 1, 1, 0, false, true, true); //create outputs FHost.CreateStringOutput("Device", TSliceMode.Dynamic, TPinVisibility.True, out FDevice); FDevice.SetSubType("", false); FHost.CreateValueOutput("Serial", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FSerial); FSerial.SetSubType(0, double.MaxValue, 1, 0, false, false, true); FHost.CreateValueOutput("Version", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FVersion); FVersion.SetSubType(0, double.MaxValue, 1, 0, false, false, true); FHost.CreateStringOutput("Libary Version", TSliceMode.Dynamic, TPinVisibility.True, out FLibraryVersion); FLibraryVersion.SetSubType("", false); }
//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { //assign host FHost = Host; //create config FHost.CreateValueConfig("Input Count", 1, null, TSliceMode.Single, TPinVisibility.True, out FInCount); FInCount.SetSubType(1, double.MaxValue, 1, 1, false, false, true); //create inputs FHost.CreateValueInput("Prepend Patch Path", 1, null, TSliceMode.Single, TPinVisibility.OnlyInspector, out FPrepend); FPrepend.SetSubType(0, 1, 1, 1, false, true, false); FHost.CreateStringInput("Input 1", TSliceMode.Dynamic, TPinVisibility.True, out FIn1); FIn1.SetSubType("", false); //create outputs FHost.CreateStringOutput("Output", TSliceMode.Dynamic, TPinVisibility.True, out FOutput); FOutput.SetSubType("", false); // FInList.Add(FIn1); }
public void SetPluginHost(IPluginHost Host) { FHost = Host; //INPUT-PINS FHost.CreateStringInput("Identifier", TSliceMode.Single, TPinVisibility.True, out FIdentifier); FIdentifier.SetSubType("", false); FHost.CreateValueInput("Enable", 1, null, TSliceMode.Single, TPinVisibility.True, out FEnableIn); FEnableIn.SetSubType(0, 1, 1, 0, false, false, true); FHost.CreateValueInput("Port", 1, null, TSliceMode.Single, TPinVisibility.True, out FPortNumberIn); FPortNumberIn.SetSubType(1, 15, 1, 1, false, false, true); FHost.CreateValueInput("Baudrate", 1, null, TSliceMode.Single, TPinVisibility.True, out FBaudrateIn); FBaudrateIn.SetSubType(Double.MinValue, Double.MaxValue, 1, 9600, false, false, true); FHost.CreateValueInput("Message Frame Size", 1, null, TSliceMode.Single, TPinVisibility.True, out FDataFieldSize); FDataFieldSize.SetSubType(0, double.MaxValue, 1, 8, false, false, true); FHost.CreateValueInput("Timeout", 1, null, TSliceMode.Single, TPinVisibility.True, out FTimeOut); FTimeOut.SetSubType(0, double.MaxValue, 1, 500, false, false, true); // OUTPUT-PINS FHost.CreateStringOutput("Output", TSliceMode.Dynamic, TPinVisibility.True, out FDataOut); FDataOut.SetSubType("", false); FHost.CreateValueOutput("Connected", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FConnectedOut); FConnectedOut.SetSubType(0, 1, 1, 0, false, false, true); FHost.CreateValueOutput("Available Ports", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FPortsOut); FPortsOut.SetSubType(1, 15, 1, 1, false, false, true); }
//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { //assign host FHost = Host; //create inputs FHost.CreateValueConfig("List Count", 1, null, TSliceMode.Single, TPinVisibility.OnlyInspector, out FListCount); FListCount.SetSubType(1, double.MaxValue, 1, 1, false, false, true); FHost.CreateValueConfig("Columns", 1, null, TSliceMode.Single, TPinVisibility.OnlyInspector, out FColumns); FColumns.SetSubType(1, double.MaxValue, 1, 1, false, false, true); FHost.CreateStringInput("List Item", TSliceMode.Dynamic, TPinVisibility.True, out FItems); FItems.SetSubType("Item", false); FHost.CreateValueInput("Bin Size", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FBinSize); FBinSize.SetSubType(-1, double.MaxValue, 1, -1, false, false, true); FHost.CreateValueInput("Default Slice", 1, null, TSliceMode.Single, TPinVisibility.Hidden, out FDefault); FDefault.SetSubType(0, double.MaxValue, 1, 0, false, false, true); FHost.CreateValueInput("Select Item", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FSelectItem); FSelectItem.SetSubType(0, double.MaxValue, 1, 0, false, false, true); FHost.CreateValueInput("Do Select", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FDoSelect); FDoSelect.SetSubType(0, 1, 1, 0, true, false, false); //create outputs FHost.CreateValueOutput("Selected Index", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FSelectIndex); FSelectIndex.SetSubType(0, double.MaxValue, 0.01, 0, false, false, true); FHost.CreateStringOutput("Selected Item", TSliceMode.Dynamic, TPinVisibility.True, out FItem); FItem.SetSubType("", false); FComboList.Add(startCombo); }
//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { //assign host FHost = Host; //create inputs FHost.CreateValueInput("Enable", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FEnable); FEnable.SetSubType(0, 1, 1, 0, false, true, true); FHost.CreateValueInput("Digital Out", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FDigitalOut); FDigitalOut.SetSubType(0, 1, 1, 0, false, true, true); FHost.CreateValueInput("Sensitivity", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FSensitivity); FSensitivity.SetSubType(0, 1, 0.01, 0.1, false, false, false); FHost.CreateValueInput("Ratiometric", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FRatiomatric); FRatiomatric.SetSubType(0, 1, 1, 1, false, true, true); FHost.CreateValueInput("Serial", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FSerial); FSerial.SetSubType(0, double.MaxValue, 1, 0, false, false, true); //create outputs FHost.CreateValueOutput("Analog In", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FAnalogIn); FAnalogIn.SetSubType(double.MinValue, double.MaxValue, 0.0001, 0, false, false, false); FHost.CreateValueOutput("Digital In", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FDigitalIn); FDigitalIn.SetSubType(0, 1, 1, 0, false, true, true); FHost.CreateValueOutput("Number of Digital Outputs", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FDigiOutCount); FDigiOutCount.SetSubType(0, 1, 1, 0, false, true, true); //FHost.CreateValueOutput("Connected", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FConnected); //FConnected.SetSubType(0, 1, 1, 0, false, true, true); FHost.CreateStringOutput("Info", TSliceMode.Dynamic, TPinVisibility.True, out FInfo); FInfo.SetSubType("Disabled", false); }
//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { //assign host FHost = Host; //create inputs FHost.CreateValueInput("Update", 1, null, TSliceMode.Single, TPinVisibility.True, out FRefresh); FRefresh.SetSubType(0, 1, 1, 0, true, false, false); //create outputs FHost.CreateStringOutput("Mainboard", TSliceMode.Dynamic, TPinVisibility.True, out FMB); FMB.SetSubType("", false); FHost.CreateStringOutput("Processor", TSliceMode.Dynamic, TPinVisibility.True, out FCPU); FCPU.SetSubType("", false); FHost.CreateStringOutput("RAM", TSliceMode.Dynamic, TPinVisibility.True, out FRAM); FRAM.SetSubType("", false); FHost.CreateStringOutput("HDD", TSliceMode.Dynamic, TPinVisibility.True, out FHDD); FHDD.SetSubType("", false); FHost.CreateStringOutput("USB Controller", TSliceMode.Dynamic, TPinVisibility.True, out FUSB); FUSB.SetSubType("", false); FHost.CreateStringOutput("1394 Controller", TSliceMode.Dynamic, TPinVisibility.True, out FFirewire); FFirewire.SetSubType("", false); FHost.CreateStringOutput("Sound", TSliceMode.Dynamic, TPinVisibility.True, out FAudio); FAudio.SetSubType("", false); FHost.CreateStringOutput("Graphics", TSliceMode.Dynamic, TPinVisibility.True, out FVideo); FVideo.SetSubType("", false); FHost.CreateStringOutput("All Devices", TSliceMode.Dynamic, TPinVisibility.True, out FDevice); FDevice.SetSubType("", false); }
//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { // //assign host FHost = Host; //create inputs // The Pin for the Value FHost.CreateValueInput("Value Input", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FMyValueInput); FMyValueInput.SetSubType(double.MinValue, double.MaxValue, 0.01, 0.5, false, false, false); // The Pin for the Transtype // The Input is going to be Integer. FHost.CreateValueInput("Transition Type", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FTransType); FTransType.SetSubType(0.0, FAmountOfTransitionsmade - 1, 1, 0, false, false, true); // The Pin for the Trans Mode (in, out, in/out, out/in) FHost.CreateValueInput("Transition Mode", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FTransMode); FTransMode.SetSubType(0.0, 3.0, 1, 0, false, false, true); // The Pin for the Toggle Inverse or Not... FHost.CreateValueInput("Inverse", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FInverse); FInverse.SetSubType(0.0, 1.0, 1, 0, false, true, true); //create outputs // Values FHost.CreateValueOutput("Value Output", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FMyValueOutput); FMyValueOutput.SetSubType(double.MinValue, double.MaxValue, 0.01, 0, false, false, false); // TransType FHost.CreateStringOutput("Used Transition TYPE", TSliceMode.Dynamic, TPinVisibility.True, out FMyStringOutput); FMyStringOutput.SetSubType("", false); }
//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { //assign host FHost = Host; //create inputs FHost.CreateStringInput("Formate", TSliceMode.Dynamic, TPinVisibility.True, out FFormate); FFormate.SetSubType("", false); FHost.CreateStringInput("CultureInfo", TSliceMode.Dynamic, TPinVisibility.True, out FCulturInfo); FCulturInfo.SetSubType("en-US", false); FHost.CreateValueInput("Update", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FUpdate); FUpdate.SetSubType(0.0, 1.0, 1.0, 1.0, false, true, false); //create outputs FHost.CreateStringOutput("Current Date", TSliceMode.Dynamic, TPinVisibility.True, out FCurrentDate); FCurrentDate.SetSubType("", false); FHost.CreateStringOutput("UTC", TSliceMode.Dynamic, TPinVisibility.True, out FUTC); FUTC.SetSubType("", false); }
//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { //assign host FHost = Host; //create inputs FHost.CreateValueConfig("Debug Pins", 1, null, TSliceMode.Single, TPinVisibility.OnlyInspector, out FPinConfigDebug); FPinConfigDebug.SetSubType(0, 1, 1, 0, false, true, false); FHost.CreateValueInput("Enable", 1, null, TSliceMode.Single, TPinVisibility.True, out FPinInputEnable); FPinInputEnable.SetSubType(0, 1, 1, 0, false, true, false); FHost.CreateValueInput("Exclusive", 1, null, TSliceMode.Single, TPinVisibility.True, out FPinInputDigitizing); FPinInputDigitizing.SetSubType(0, 1, 1, 1, false, true, false); //create outputs FHost.CreateValueOutput("X", 1, null, TSliceMode.Single, TPinVisibility.True, out FPinOutputX); FPinOutputX.SetSubType(-1, 1, 0.01, 0, false, false, false); FHost.CreateValueOutput("Y", 1, null, TSliceMode.Single, TPinVisibility.True, out FPinOutputY); FPinOutputY.SetSubType(-1, 1, 0.01, 0, false, false, false); FHost.CreateValueOutput("Pressure", 1, null, TSliceMode.Single, TPinVisibility.True, out FPinOutputPressure); FPinOutputPressure.SetSubType(0, 1, 0.01, 0, false, false, false); FHost.CreateValueOutput("Proximity", 1, null, TSliceMode.Single, TPinVisibility.True, out FPinOutputProximity); FPinOutputProximity.SetSubType(0, 1, 1, 0, false, true, false); FHost.CreateValueOutput("Tilt", 1, null, TSliceMode.Single, TPinVisibility.True, out FPinOutputTilt); FPinOutputTilt.SetSubType(-1, 1, 0.01, 0, false, false, false); FHost.CreateValueOutput("Azimuth", 1, null, TSliceMode.Single, TPinVisibility.True, out FPinOutputAzimuth); FPinOutputAzimuth.SetSubType(0, 1, 0.01, 0, false, false, false); FHost.CreateValueOutput("Cursor", 1, null, TSliceMode.Single, TPinVisibility.True, out FPinOutputCursor); FPinOutputCursor.SetSubType(int.MinValue, int.MaxValue, 1, 0, false, false, true); FHost.CreateValueOutput("Cursor Serial No.", 1, null, TSliceMode.Single, TPinVisibility.True, out FPinOutputSerialNo); FPinOutputSerialNo.SetSubType(int.MinValue, int.MaxValue, 1, 0, false, false, true); FHost.CreateValueOutput("Cursor Type", 1, null, TSliceMode.Single, TPinVisibility.True, out FPinOutputCursorType); FPinOutputCursorType.SetSubType(int.MinValue, int.MaxValue, 1, 0, false, false, true); FHost.CreateValueOutput("Cursor Subtype", 1, null, TSliceMode.Single, TPinVisibility.True, out FPinOutputCursorSubtype); FPinOutputCursorSubtype.SetSubType(int.MinValue, int.MaxValue, 1, 0, false, false, true); FHost.CreateStringOutput("Cursor Name", TSliceMode.Single, TPinVisibility.True, out FPinOutputCursorName); FPinOutputCursorName.SetSubType("", false); FHost.CreateValueOutput("Dimensions", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FPinOutputDimensions); FPinOutputDimensions.SetSubType(double.MinValue, double.MaxValue, 0.01, 0, false, false, false); FHost.CreateValueOutput("Buttons", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FPinOutputButtons); FPinOutputButtons.SetSubType(0, 1, 1, 0, false, true, true); if (Tablet != null) { Connect(); } Configurate(FPinConfigDebug); }
//this method is called by vvvv when the node is created public void SetPluginHost(IPluginHost Host) { FHost = Host; FHost.CreateStringInput("Wiimote ID", TSliceMode.Dynamic, TPinVisibility.OnlyInspector, out FPinInputID); FPinInputID.SetSubType("-1", false); FHost.CreateValueInput("Enable", 1, null, TSliceMode.Single, TPinVisibility.True, out FPinInputEnable); FPinInputEnable.SetSubType(0, 1, 1, 0, false, true, false); FHost.CreateValueInput("LED", 4, new string[4] { "0", "1", "2", "3" }, TSliceMode.Dynamic, TPinVisibility.True, out FPinInputLED); FPinInputLED.SetSubType4D(0, 1, 1, 0, 0, 0, 0, false, true, false); FHost.CreateValueInput("Rumble", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out FPinInputRumble); FPinInputRumble.SetSubType(0, 1, 1, 0, false, true, false); FHost.UpdateEnum("WiimoteInfraredMode", "Extended", new string[4] { "Full", "Extended", "Basic", "Off" }); FHost.CreateEnumInput("Infrared Mode", TSliceMode.Dynamic, TPinVisibility.True, out FPinInputMode); FPinInputMode.SetSubType("WiimoteInfraredMode"); FHost.CreateValueFastInput("Calibration ZeroG", 3, null, TSliceMode.Dynamic, TPinVisibility.OnlyInspector, out FPinInputCalibrationZeroG); FPinInputCalibrationZeroG.SetSubType3D(0, 0xFF, 1, 126, 126, 131, false, false, true); FHost.CreateValueFastInput("Calibration OneG", 3, null, TSliceMode.Dynamic, TPinVisibility.OnlyInspector, out FPinInputCalibrationOneG); FPinInputCalibrationOneG.SetSubType3D(0, 0xFF, 1, 151, 151, 151, false, false, true); FHost.CreateValueInput("Calibrate", 1, null, TSliceMode.Single, TPinVisibility.OnlyInspector, out FPinInputCalibrate); FPinInputCalibrate.SetSubType(0, 1, 1, 0, true, false, false); FHost.CreateValueInput("Force Reset", 1, null, TSliceMode.Single, TPinVisibility.OnlyInspector, out FPinForceReset); FPinForceReset.SetSubType(0, 1, 1, 0, true, false, false); FHost.UpdateEnum("WiimoteExtensionEnum", "none", new string[5] { "none", "Nunchuk", "Classic", "BalanceBoard", "Guitar" }); FHost.CreateEnumConfig("Extension", TSliceMode.Single, TPinVisibility.True, out FPinConfigExtension); FPinConfigExtension.SetSubType("WiimoteExtensionEnum"); // FHost.CreateValueConfig("MotionPlus", 1, null, TSliceMode.Single, TPinVisibility.True, out FPinMotionPlus); // FPinMotionPlus.SetSubType(0, 1, 1, 0, false, true, false); //create outputs FHost.CreateStringOutput("Available Wiimotes", TSliceMode.Dynamic, TPinVisibility.OnlyInspector, out FPinOutputAvailable); FPinOutputAvailable.SetSubType("none", false); FHost.CreateStringOutput("Working", TSliceMode.Single, TPinVisibility.True, out FPinOutputWorking); FPinOutputWorking.SetSubType("Initializing", false); FHost.CreateStringOutput("Extension Found", TSliceMode.Single, TPinVisibility.True, out FPinOutputExtensionFound); FPinOutputExtensionFound.SetSubType("none", false); FHost.CreateValueOutput("Battery", 1, null, TSliceMode.Single, TPinVisibility.True, out FPinOutputBattery); FPinOutputBattery.SetSubType(double.MinValue, double.MaxValue, 0.0001, 0, false, false, false); FHost.CreateValueOutput("Cursor", 4, new string[4] { "Up", "Down", "Left", "Right" }, TSliceMode.Dynamic, TPinVisibility.True, out FPinOutputCursor); FPinOutputCursor.SetSubType4D(0, 1, 1, 0, 0, 0, 0, false, true, false); FHost.CreateValueOutput("Buttons", 4, new string[4] { "A", "B", "1", "2" }, TSliceMode.Dynamic, TPinVisibility.True, out FPinOutputButtons); FPinOutputButtons.SetSubType4D(0, 1, 1, 0, 0, 0, 0, false, true, false); FHost.CreateValueOutput("System", 3, new string[3] { "Plus", "Minus", "Home" }, TSliceMode.Dynamic, TPinVisibility.True, out FPinOutputControls); FPinOutputControls.SetSubType3D(0, 1, 1, 0, 0, 0, false, true, false); FHost.CreateValueOutput("Acceleration", 3, null, TSliceMode.Dynamic, TPinVisibility.True, out FPinOutputAccelleration); FPinOutputAccelleration.SetSubType3D(double.MinValue, double.MaxValue, 0.0001, 0, 0, 0, false, false, false); FHost.CreateValueOutput("Angle", 3, new string[3] { "Pitch", "Roll", "Yaw" }, TSliceMode.Dynamic, TPinVisibility.True, out FPinOutputTilt); FPinOutputTilt.SetSubType3D(double.MinValue, double.MaxValue, 0.0001, 0, 0, 0, false, false, false); FHost.CreateValueOutput("Infrared", 3, new string[3] { "X", "Y", "Size" }, TSliceMode.Dynamic, TPinVisibility.True, out FPinOutputInfraredBlobs); FPinOutputInfraredBlobs.SetSubType3D(0, 1023, 1, 0, 0, 0, false, false, true); Enable(); }