当前位置: 首页>>代码示例>>C#>>正文


C# GH_Component.Register_IntegerParam方法代码示例

本文整理汇总了C#中GH_Component.Register_IntegerParam方法的典型用法代码示例。如果您正苦于以下问题:C# GH_Component.Register_IntegerParam方法的具体用法?C# GH_Component.Register_IntegerParam怎么用?C# GH_Component.Register_IntegerParam使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GH_Component的用法示例。


在下文中一共展示了GH_Component.Register_IntegerParam方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RegisterOutputParams

 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_GenericParam("Feedback", "F", "Feedback Output. Here you get a copy of the data at the \"*D\" input, or the \"*S\" input if the first is empty.");
     pManager.Register_GenericParam("Feedback History", "H", "History Output. Here you get the history of all Hoopsnake iterations.");
     pManager.Register_IntegerParam("Loops Counter", "L", "Loops Counter.");
     pManager.Register_IntegerParam("Iterations Counter", "I", "Iterations Counter.");
 }
开发者ID:kanukanun,项目名称:Hoopsnake,代码行数:7,代码来源:HSComponent.cs

示例2: RegisterInputParams

        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            //change the param access thing to have individual items, list or tree etc
            pManager.Register_MeshParam("mesh", "m", "Mesh to planarise");

            pManager.Register_IntegerParam("metric", "D/N", " 0 = euclidian error metric, 1 = normal based error metric", 1);

            pManager.Register_IntegerParam("numberOfPanels", "n", "number of planar panels required for output", 90);

            pManager.Register_BooleanParam("run", "R", "run planarisation", false);
        }
开发者ID:formateng,项目名称:giraffe,代码行数:11,代码来源:Component_OBSOLETE.cs

示例3: RegisterInputParams

 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.RegisterParam(new GHParam_SpatialGraph(), "Spatial Graph", "S", "The Spatial Graph.", GH_ParamAccess.item);
     pManager.Register_StringParam("Script", "Func", "The function to execute", GH_ParamAccess.item);
     pManager.Register_DoubleParam("Value", "V", "Initial Values", GH_ParamAccess.list);
     pManager.Register_IntegerParam("Generations", "G", "Number of Generations to create.", 0, GH_ParamAccess.item);
 }
开发者ID:ksteinfe,项目名称:ants,代码行数:7,代码来源:AntsEngine.cs

示例4: RegisterOutputParams

 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_IntegerParam("Hour Number", "Hr", "The hour of the year represented by this Dhour", GH_ParamAccess.item);
     pManager.Register_StringParam("Keys", "Keys", "The keys stored in this Dhour", GH_ParamAccess.list);
     pManager.Register_DoubleParam("Values", "Vals", "The values stored in this Dhour", GH_ParamAccess.list);
     pManager.Register_ColourParam("Color", "Clr", "The color assigned to this hour", GH_ParamAccess.item);
     pManager.Register_PointParam("Position", "Pt", "The point assigned to this hour", GH_ParamAccess.item);
 }
开发者ID:ksteinfe,项目名称:dyear,代码行数:8,代码来源:Components+Primitive.cs

示例5: RegisterOutputParams

 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_PointParam("Vertex_Points", "V", "Vertex point positions", GH_ParamAccess.list);
     pManager.Register_IntegerParam("Vertex_Outgoing_Halfedge", "V_He", "One of the outgoing halfedges for each vertex", GH_ParamAccess.list);
     pManager.Register_IntegerParam("Halfedge_StartVertex", "He_V", "The starting vertex of each halfedge", GH_ParamAccess.list);
     pManager.Register_IntegerParam("Halfedge_AdjacentFace", "He_F", "The face bordered by each halfedge (or -1 if it is adjacent to a boundary)", GH_ParamAccess.list);
     pManager.Register_IntegerParam("Halfedge_NextHalfedge", "He_Nxt", "The next halfedge around the same face", GH_ParamAccess.list);
     pManager.Register_IntegerParam("Halfedge_PrevHalfedge", "He_Prv", "The previous halfedge around the same face", GH_ParamAccess.list);
     pManager.Register_IntegerParam("Halfedge_Pair", "He_P", "The halfedge joining the same 2 vertices in the opposite direction", GH_ParamAccess.list);
     pManager.Register_IntegerParam("Face_Halfedge", "F_He", "The first halfedge of each face", GH_ParamAccess.list);
 }
开发者ID:panhao4812,项目名称:Plankton,代码行数:14,代码来源:DecomposePlankton.cs

示例6: RegisterInputParams

        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.Register_IntegerParam("Hour Number", "Hr", "The hour of the year to construct, (0-8759).  Defaults to -1, which produces an invalid Dhour.", -1, GH_ParamAccess.list);
            pManager.Register_StringParam("Keys", "Keys", "The named keys to store in this Dhour. Must be a list of equal length to the 'Vals' parameter.", GH_ParamAccess.list);
            pManager.Register_DoubleParam("Values", "Vals", "The values to store in this Dhour.  Must be a list of equal length to the 'Keys' parameter.", GH_ParamAccess.tree);
            pManager.Register_ColourParam("Color", "Clr", "Optional.  A color assigned to this hour, typically for analysis and visualization.", GH_ParamAccess.list);
            pManager.Register_PointParam("Position", "Pt", "Optional.  A point in space assigned to this hour, typically for analysis and visualization.", GH_ParamAccess.list);

            this.Params.Input[3].Optional = true;
            this.Params.Input[4].Optional = true;
        }
开发者ID:ksteinfe,项目名称:dyear,代码行数:11,代码来源:Components+Primitive.cs

示例7: RegisterInputParams

 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.RegisterParam(new GHParam_AWorld(), "AWorld", "W", "The AntsWorld to convert.", GH_ParamAccess.item);
     pManager.Register_IntegerParam("Generation", "G", "Generation to select.", 0, GH_ParamAccess.item);
 }
开发者ID:ksteinfe,项目名称:ants,代码行数:5,代码来源:AntsWorldBuilders.cs

示例8: RegisterOutputParams

 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_PointParam("Points", "P", "Node position.", GH_ParamAccess.item);
     pManager.Register_IntegerParam("Neighbors", "N", "Neighbor Indices.", GH_ParamAccess.list);
     pManager.Register_LineParam("Edges", "E", "Neighboring Edges", GH_ParamAccess.list);
     pManager.Register_DoubleParam("Weights", "W", "Edge Weights.", GH_ParamAccess.list);
 }
开发者ID:ksteinfe,项目名称:ants,代码行数:7,代码来源:AntsWorldBuilders.cs

示例9: RegisterOutputParams

 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_IntegerParam("Frequencies", "Freqs", "A list of frequencies describing the number of hours in a bin", GH_ParamAccess.tree);
     pManager.Register_IntervalParam("Subintervals", "Ivals", "A list of intervals, produced by subdividing the given interval, that describes the ranges of values for each bin", GH_ParamAccess.tree);
     pManager.RegisterParam(new GHParam_DHr(), "Dhours", "Dhrs", "Hours that fall into the above subintervals", GH_ParamAccess.tree);
 }
开发者ID:ksteinfe,项目名称:dyear,代码行数:6,代码来源:Components+Filter.cs

示例10: RegisterInputParams

        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.RegisterParam(new GHParam_DHr(), "Dhours", "Dhrs", "The Dhours from which to extract values", GH_ParamAccess.tree);
            pManager.Register_StringParam("Key", "Key", "The key by which to sort hours", GH_ParamAccess.item);
            pManager.Register_IntervalParam("Interval", "Ival", "The overall interval to sample.  This interval will be subdivided into a number of subintervals.  Defaults to min and max of given values.  Any values that fall outside of this interval will be appended to the highest or lowest count.", GH_ParamAccess.item);
            pManager.Register_IntegerParam("Subdivisions", "Div", "The number of subintervals to divide the above interval into", 10, GH_ParamAccess.item);

            this.Params.Input[2].Optional = true;
        }
开发者ID:ksteinfe,项目名称:dyear,代码行数:9,代码来源:Components+Filter.cs


注:本文中的GH_Component.Register_IntegerParam方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。