本文整理汇总了C#中IPluginHost.CreateValueInput方法的典型用法代码示例。如果您正苦于以下问题:C# IPluginHost.CreateValueInput方法的具体用法?C# IPluginHost.CreateValueInput怎么用?C# IPluginHost.CreateValueInput使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IPluginHost
的用法示例。
在下文中一共展示了IPluginHost.CreateValueInput方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetPluginHost
//this method is called by vvvv when the node is created
public void SetPluginHost(IPluginHost Host)
{
//assign host
FHost = Host;
//create inputs
FHost.CreateValueInput("Vertices", 3, null, TSliceMode.Dynamic, TPinVisibility.True, out VertsIn);
VertsIn.SetSubType3D(double.MinValue, double.MaxValue, 0.01, 0, 0, 0, false, false, false);
FHost.CreateValueInput("Thickness", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out ThicknessIn);
ThicknessIn.SetSubType(double.MinValue, double.MaxValue, 0.01, 0.1, false, false, false);
FHost.CreateValueInput("Bin Size", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out BinSizeIn);
BinSizeIn.SetSubType(-1, int.MaxValue, 1, -1, false, false, true);
//create outputs
FHost.CreateMeshOutput("Mesh", TSliceMode.Dynamic, TPinVisibility.True, out MeshOut);
}
示例2: MetaballsMeshNode
public MetaballsMeshNode(IPluginHost Host)
{
//the nodes constructor
OpenVoxels = new int[MaxOpenVoxels * 3];
PreComputed = new int[MaxOpenVoxels * 12];
//assign host
FHost = Host;
//create inputs
FHost.CreateValueInput("Position ", 3, null, TSliceMode.Dynamic, TPinVisibility.True, out pos);
pos.SetSubType3D(-1, 1, 0.01, 0, 0, 0, false, false, false);
FHost.CreateValueInput("Mass", 1, null, TSliceMode.Dynamic, TPinVisibility.True, out mass);
mass.SetSubType(0, 2, 0.01, 1, false, false, false);
FHost.CreateValueInput("Grid Size", 1, null, TSliceMode.Single, TPinVisibility.True, out gsize);
gsize.SetSubType(2, 128, 1, 2, false, false, true);
// MaxValue is set to 128...
FHost.CreateValueInput("Level", 1, null, TSliceMode.Single, TPinVisibility.True, out level);
level.SetSubType(double.MinValue, double.MaxValue, 0.01, 1, false, false, false);
FHost.CreateValueInput("Smooth Mesh", 1, null, TSliceMode.Single, TPinVisibility.True, out smooth);
smooth.SetSubType(0, 1, 1, 0, false, true, true);
}