Exemplo n.º 1
0
        //this method is called by vvvv when the node is created
        public void SetPluginHost(IPluginHost Host)
        {
            //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);


            //create outputs


            FHost.CreateMeshOutput("Mesh", TSliceMode.Dynamic, TPinVisibility.True, out FMyMeshOutput);
        }
Exemplo n.º 2
0
        public static IDXMeshOut CreateMeshOutput(this IPluginHost host, OutputAttribute attribute, Type type)
        {
            IDXMeshOut result = null;

            host.CreateMeshOutput(attribute.Name, (TSliceMode)attribute.SliceMode, (TPinVisibility)attribute.Visibility, out result);
            result.Order = attribute.Order;
            return(result);
        }
Exemplo n.º 3
0
        //this method is called by vvvv when the node is created
        public void SetPluginHost(IPluginHost Host)
        {
            //assign host
            FHost = Host;

            //create inputs
            FHost.CreateValueInput("Radius", 1, null, TSliceMode.Single, TPinVisibility.True, out Radius);
            Radius.SetSubType(0.001, 1000.0, 0.001, 1.0, false, false, false);

            FHost.CreateValueInput("Perspective", 1, null, TSliceMode.Single, TPinVisibility.True, out Perspective);
            Perspective.SetSubType(0.1, 1, 0.001, 0.5, false, false, false);

            FHost.CreateValueInput("Quaternion Transform ", 4, null, TSliceMode.Dynamic, TPinVisibility.True, out QuaternionTransform);
            QuaternionTransform.SetSubType4D(double.MinValue, double.MaxValue, 0.01, 0, 0, 0, 1, false, false, false);

            //create outputs
            FHost.CreateMeshOutput("Mesh", TSliceMode.Dynamic, TPinVisibility.True, out FMyMeshOutput);
        }
Exemplo n.º 4
0
        public PluginColladaMesh(
            IPluginHost host,
            [Config("Opaque=1?", IsSingle = true, DefaultValue = 1)]
            IDiffSpread <bool> opaqueIsOneInput)
        {
            //the nodes constructor
            FDeviceMeshes           = new Dictionary <Device, Mesh>();
            FSelectedInstanceMeshes = new List <Model.InstanceMesh>();

            host.CreateMeshOutput("Mesh", TSliceMode.Dynamic, TPinVisibility.True, out FMyMeshOutput);
            FMyMeshOutput.Order = int.MinValue;
            host.CreateTransformOutput("Transforms", TSliceMode.Dynamic, TPinVisibility.True, out FTransformOutput);
            FTransformOutput.Order = int.MinValue + 1;
            host.CreateTransformOutput("Skinning Transforms", TSliceMode.Dynamic, TPinVisibility.True, out FSkinningTransformOutput);
            FSkinningTransformOutput.Order = int.MinValue + 2;
            host.CreateTransformOutput("Inverse Bind Pose Transforms", TSliceMode.Dynamic, TPinVisibility.OnlyInspector, out FInvBindPoseTransformOutput);
            host.CreateTransformOutput("Bind Shape Transform", TSliceMode.Dynamic, TPinVisibility.OnlyInspector, out FBindShapeTransformOutput);

            FOpaqueIsOneInput          = opaqueIsOneInput;
            FOpaqueIsOneInput.Changed += new SpreadChangedEventHander <bool>(FOpaqueIsOneInput_Changed);
        }
Exemplo n.º 5
0
        //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);
        }
Exemplo n.º 6
0
 public MeshNode(IPluginHost host)
 {
     host.CreateMeshOutput("Mesh", TSliceMode.Dynamic, TPinVisibility.True, out this.FOutMesh);
     this.FOutMesh.Order = 0;
 }
Exemplo n.º 7
0
 public DXMeshOutPluginBase(IPluginHost host)
 {
     host.CreateMeshOutput("Mesh", TSliceMode.Dynamic, TPinVisibility.True, out FMeshOut);
 }
Exemplo n.º 8
0
 public MeshJoin(IPluginHost host)
 {
     host.CreateMeshOutput("Mesh",TSliceMode.Dynamic,TPinVisibility.True,out this.FPinOutMesh);
 }
Exemplo n.º 9
0
		public MeshNode(IPluginHost host)
        {
            host.CreateMeshOutput("Mesh", TSliceMode.Dynamic, TPinVisibility.True, out this.FOutMesh);
            this.FOutMesh.Order = 0;
        }