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


C# GH_Component.Register_BooleanParam方法代码示例

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


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

示例1: 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

示例2: 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.list);
            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 orthographic graph.  This parameter is ignored when plotting stereographic graphs.", GH_ParamAccess.item);
            pManager.Register_DoubleParam("Graph Radius", "Rad", "The dimensions of the resulting stereographic graph.  This parameter is ignored when plotting orthographic graphs.", 3.0, GH_ParamAccess.item);
            pManager.Register_StringParam("Plot Type", "Typ", "The type of graph to plot.  Choose 'Ortho' or 'Stereo', defaults to Stereo.", "Stereographic", GH_ParamAccess.item);

            pManager.Register_StringParam("Solar Altitude Key", "Alt Key", "The key related to the solar altitude", "solar_altitude", GH_ParamAccess.item);
            pManager.Register_StringParam("Solar Azimuth Key", "Azm Key", "The key related to the solar azimuth", "solar_azimuth", GH_ParamAccess.item);
            pManager.Register_BooleanParam("Cull Nighttime", "Cull Night", "Cull nighttime hours (default)", true, GH_ParamAccess.item);

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

示例3: RegisterInputParams

 //protected override Bitmap Icon { get { return Ants.Properties.Resources.Ants_Icons_graph_by_points; } }
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.Register_CurveParam("Shapes", "S", "Shapes.", GH_ParamAccess.list);
     pManager.Register_BooleanParam("Connect Corners", "C", "Connect up the neighbors at corners?", false, GH_ParamAccess.item);
 }
开发者ID:ksteinfe,项目名称:ants,代码行数:6,代码来源:AntsWorldBuilders.cs

示例4: 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

示例5: 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 U", "Key U", "The first key by which to count hours", GH_ParamAccess.item);
            pManager.Register_StringParam("Key U", "Key V", "The second key by which to count hours", GH_ParamAccess.item);
            pManager.Register_2DIntervalParam("UV Interval", "Ival2", "The overall two-dimensional interval to sample.  This interval will be subdivided into a number of subintervals.", GH_ParamAccess.item);
            pManager.Register_IntervalParam("Subdivisions", "Divs", "An interval of two integer numbers that describe the number of subdivisions desired in the U and V dimensions", new Interval(4, 3), GH_ParamAccess.item);
            pManager.Register_BooleanParam("Cull Outliers", "Cul", "If true, outlying values will be culled.  If false (default), any values that fall outside of this interval will be appended to the highest or lowest count.", false, GH_ParamAccess.item);

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

示例6: 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("Selection Script", "SFunc", "The selection function to execute", GH_ParamAccess.item);
     pManager.Register_BooleanParam("One or All", "Bool", "Select one or all", GH_ParamAccess.item);
     pManager.Register_StringParam("Eval Script", "EFunc", "The evaluation 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,代码行数:9,代码来源:AntsEngine.cs


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