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


C# GH_Component.Register_StringParam方法代码示例

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


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

示例1: RegisterInputParams

        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.RegisterParam(new GHParam_DHr(), "Dhours", "Dhrs", "The Dhours to which to apply color values", GH_ParamAccess.list);
            pManager.Register_StringParam("Key A", "Key A", "The primary key on which to base colorization", GH_ParamAccess.item);
            pManager.Register_IntervalParam("Domain A", "Rng A", "The domain that maps colors for Key A to their corresponding color.  Defaults to the range of given values for Key A.\nValues that fall outside of the given range will be reset to the maximum or minimum color value.", GH_ParamAccess.item);
            pManager.Register_StringParam("Key B", "Key B", "The secondary key on which to base colorization", GH_ParamAccess.item);
            pManager.Register_IntervalParam("Domain B", "Rng B", "The domain that maps colors for Key B to their corresponding color.  Defaults to the range of given values for Key B.\nValues that fall outside of the given range will be reset to the maximum or minimum color value.", GH_ParamAccess.item);
            pManager.Register_ColourParam("A High, B High", "Hi-Hi", "The color to assign when A is high and B is high.  Defaults to red.", Color.Red, GH_ParamAccess.item);
            pManager.Register_ColourParam("A High, B Low", "Hi-Lo", "The color to assign when A is high and B is low.  Defaults to yellow.", Color.Yellow, GH_ParamAccess.item);
            pManager.Register_ColourParam("A Low, B High", "Lo-Hi", "The color to assign when A is high and B is high.  Defaults to blue.", Color.Blue, GH_ParamAccess.item);
            pManager.Register_ColourParam("A Low, B Low", "Lo-Lo", "The color to assign when A is high and B is low.  Defaults to white.", Color.White, GH_ParamAccess.item);

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

示例2: RegisterInputParams

 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.RegisterParam(new GHParam_DHr(), "Dhours", "Dhrs", "The Dhours to plot", GH_ParamAccess.list);
     pManager.Register_StringParam("Value Key", "Key", "The name of the value to plot", GH_ParamAccess.item);
     pManager.Register_IntervalParam("Domain", "Rng", "The [optional] domain to plot, with black corresponding to the low value and white to the high value.  Defaults to the max and min of the given values", GH_ParamAccess.item);
     Params.Input[2].Optional = true;
 }
开发者ID:ksteinfe,项目名称:dyear,代码行数:7,代码来源:Heatmap.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: RegisterInputParams

        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.RegisterParam(new GHParam_DHr(), "Dhours", "Dhrs", "The Dhours to which to assign positions", GH_ParamAccess.tree);
            pManager.Register_StringParam("Key", "Key", "The key associated with the y-axis", GH_ParamAccess.item);
            pManager.Register_IntervalParam("Scale", "Scl", "An interval that associates hour values with the graph height.  In effect, sets the vertical scale of the graph.  Defaults to the max and min of given values.", GH_ParamAccess.item);
            pManager.Register_PlaneParam("Location", "Loc", "The location and orientation (as a plane) at which to draw this graph", new Plane(new Point3d(0, 0, 0), new Vector3d(0, 0, 1)), GH_ParamAccess.item);
            pManager.Register_2DIntervalParam("Graph Dimensions", "Dim", "The dimensions of the resulting graph", GH_ParamAccess.item);
            pManager.Register_DoubleParam("Subgraph Width", "Wid", "The width of each diurnal subgraph, as a percentage of available area (0 -> 1).  Defaults to 1.0", 1.0, GH_ParamAccess.item);

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

示例6: RegisterOutputParams

        protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
        {
            pManager.Register_StringParam("output", "out", "error messages from the system");

            pManager.Register_PlaneParam("Proxies", "P", "the planes for the proxies");

            pManager.Register_CurveParam("MeshAsCurves", "MC", "the connectivity mesh as a set of curves");

            pManager.Register_GenericParam("HLwingMesh", "WM", "the winged mesh to put into the next function");

            pManager.Register_VectorParam("Normals", "N", "the normals for each face");

            pManager.Register_PointParam("Centres", "C", "the centres for each face");

            pManager.Register_CurveParam("VoronoiOnMesh", "VOM", "non planar voronoi from clusters");
        }
开发者ID:formateng,项目名称:giraffe,代码行数:16,代码来源:Component_OBSOLETE.cs

示例7: RegisterInputParams

 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.RegisterParam(new GHParam_DHr(), "Dhour", "Dhr", "The Dhour from which to extract a value", GH_ParamAccess.list);
     pManager.Register_StringParam("Value Key", "Key", "The name of the value to extract", GH_ParamAccess.item);
 }
开发者ID:ksteinfe,项目名称:dyear,代码行数:5,代码来源:Components+Primitive.cs

示例8: RegisterOutputParams

 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_StringParam("data", "D", "query result");
     pManager.Register_StringParam("out", "O", "out");
 }
开发者ID:parkjunseok,项目名称:Beaver,代码行数:5,代码来源:Beaver.cs

示例9: 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.list);
     pManager.Register_StringParam("Key", "Key", "The key to test", GH_ParamAccess.item);
     pManager.Register_StringParam("Operator", "Opr", "The comparison operator.  Choose '==' (equal to), '!=' (not equal to),'>'(greater than),'>=' (greater than or equal to), '<' (less than), or '<=' (less than or equal to)", GH_ParamAccess.item);
     pManager.Register_DoubleParam("Value", "Val", "The value to test against", GH_ParamAccess.item);
 }
开发者ID:ksteinfe,项目名称:dyear,代码行数:7,代码来源:Components+Filter.cs

示例10: RegisterOutputParams

 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_StringParam("path", "P", "The selected path");
 }
开发者ID:arendvw,项目名称:ExportTools,代码行数:7,代码来源:SelectFolderComponent.cs

示例11: RegisterOutputParams

 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_StringParam("file", "F", "The output filename");
     pManager.Register_BooleanParam("success", "S", "True if successfully written, false if failed");
 }
开发者ID:arendvw,项目名称:ExportTools,代码行数:8,代码来源:ScreenshotComponent.cs

示例12: RegisterOutputParams

 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_StringParam("Console", "...", "Messages from Python", GH_ParamAccess.tree);
     pManager.RegisterParam(new GHParam_AWorld(), "AWorld", "W", "The resulting AntsWorld.", GH_ParamAccess.item);
     pManager.Register_StringParam("Value", "V", "Value for Key", GH_ParamAccess.item);
 }
开发者ID:nreifenstein,项目名称:Picnic,代码行数:6,代码来源:AntPicnic.cs

示例13: RegisterInputParams

 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.Register_StringParam("data source", "S", "data source");
     pManager.Register_StringParam("sql query", "Q", "sql query statement");
     pManager.Register_StringParam("index Path", "P", "Path to MySQL binlog-index file");
 }
开发者ID:parkjunseok,项目名称:Beaver,代码行数:6,代码来源:Beaver.cs

示例14: RegisterOutputParams

 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_StringParam("Console", "...", "Messages from Python", GH_ParamAccess.tree);
     //pManager.Register_BooleanParam("Contains", "B", "Contains Key.", GH_ParamAccess.item);
     pManager.Register_GenericParam("Keys", "KS", "Keys in Picnic", GH_ParamAccess.list);
     pManager.Register_GenericParam("Out", "O", "jhfjgs", GH_ParamAccess.item);
     pManager.Register_StringParam("S", "S", "S", GH_ParamAccess.item);
 }
开发者ID:nreifenstein,项目名称:Picnic,代码行数:11,代码来源:PicnicComponent.cs

示例15: RegisterOutputParams

 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_StringParam("Key", "K", "A string key");
     pManager.Register_GenericParam("Value", "V", "A value key");
 }
开发者ID:arendvw,项目名称:ExportTools,代码行数:5,代码来源:ExplodeHashComponent.cs


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