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


C# GH_Component.AddBooleanParameter方法代码示例

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


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

示例1: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Surface", "Surf", "Surface to adjust.", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Swap UV", "SwapUV", "Swap the uv parameters.", GH_ParamAccess.item, false);
     pManager.AddBooleanParameter("Reverse U", "ReverseU", "Reverse the u-parameter direction.", GH_ParamAccess.item, false);
     pManager.AddBooleanParameter("Reverse V", "ReverseV", "Reverse the v-parameter direction.", GH_ParamAccess.item, false);
 }
开发者ID:smor,项目名称:intralattice,代码行数:10,代码来源:AdjustUVComponent.cs

示例2: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("PinnedSupportPt", "pt", "The point to function as a support", GH_ParamAccess.item);
     pManager.AddBooleanParameter("XFixed", "X", "Set to true if the X direction is fixed", GH_ParamAccess.item, true);
     pManager.AddBooleanParameter("YFixed", "Y", "Set to true if the Y direction is fixed", GH_ParamAccess.item, true);
     pManager.AddBooleanParameter("ZFixed", "Z", "Set to true if the Z direction is fixed", GH_ParamAccess.item, true);
     pManager.AddNumberParameter("Strength", "strength", "The strength of a spring to fix the point in the desired directions", GH_ParamAccess.item, 1e15);
 }
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:11,代码来源:Support.cs

示例3: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBrepParameter("Triloop Stipes", "Stripes", "Input the 3 Stripes of each Triloop", GH_ParamAccess.tree);
     pManager.AddBooleanParameter("Merge Stripes", "Y", "Reorients unrolled surfaces to one connected surface", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Switch", "Switch", "Switch", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Seam", "Seam", "0: Seam on Inside, 1: Seam on Outside", GH_ParamAccess.item);
     pManager.AddPointParameter("Points", "P", "Points to unroll with Brep", GH_ParamAccess.tree);
 }
开发者ID:GeneKao,项目名称:Pavilion2015_ITECH,代码行数:11,代码来源:GHC_Unroller.cs

示例4: RegisterInputParams

 //set up input parameters - auth token, name, worksheets, include blank cells, spreadsheet range, row/column order, formulas/values, and a refresh toggle.
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddParameter(new AuthToken_Param(), "Token", "T", "Google Authentication Token, obtained with Google Authenticator component.", GH_ParamAccess.item);
     pManager.AddTextParameter("Name", "N", "Name of the spreadsheet to query", GH_ParamAccess.item);
     pManager.AddTextParameter("Worksheet", "W", "Optional Worksheet name", GH_ParamAccess.item);
     pManager[2].Optional = true; //worksheets optional
     pManager.AddBooleanParameter("Include Blank Cells?", "B", "Set to true to include blank cells in data output.", GH_ParamAccess.item,false);
     pManager.AddParameter(new Range_Param(), "Spreadsheet Range", "SR", "Range of cells to query.", GH_ParamAccess.item);
     pManager[4].Optional = true; //spreadsheet range optional
     pManager.AddBooleanParameter("Organize by Rows or Columns", "R/C", "Set to true to organize data output by row - otherwise data is structured by column.", GH_ParamAccess.item,false);
     pManager.AddBooleanParameter("Read Formulas or Values", "F/V", "Set to true to return formulas rather than values from the spreadsheet", GH_ParamAccess.item,false);
     pManager.AddBooleanParameter("Refresh", "R", "Send a new value to this parameter to cause the spreadsheet data to refresh.", GH_ParamAccess.tree, true);
 }
开发者ID:ptierney,项目名称:leafcutter,代码行数:14,代码来源:ReadSpreadsheet.cs

示例5: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("write?", "W?", "Write the va3c JSON file to disk?", GH_ParamAccess.item);
     pManager.AddTextParameter("filePath", "Fp", "Full filepath of the file you'd like to create.  Files will be overwritten automatically.", GH_ParamAccess.item);
     pManager.AddTextParameter("Mesh Geo", "Me", "va3c geometry", GH_ParamAccess.list);
     pManager.AddTextParameter("Materials", "Mat", "va3c materials", GH_ParamAccess.list);
 }
开发者ID:luodinglin,项目名称:GHvA3C,代码行数:10,代码来源:va3c_Scene_ARCHIVE_20141104.cs

示例6: RegisterInputParams

        //set up input parameters - token, filter, and refresh trigger
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddParameter(new AuthToken_Param(), "Token", "T", "Google Authentication Token, obtained with Google Authenticator component.", GH_ParamAccess.item);
            //description of filter parameter
            string desc = string.Concat(new string[]
                {
                    "Allows you to filter spreadsheets from your drive.",
                    "\n",
                    "Filter is case sensitive.",
                    "\n",
                    "The following wildcards are allowed:",
                    "\n",
                    "? (any single character)",
                    "\n",
                    "* (zero or more characters)",
                    "\n",
                    "# (any single digit [0-9])",
                    "\n",
                    "[chars] (any single character in chars)",
                    "\n",
                    "[!chars] (any single character not in chars)"
                });
            pManager.AddTextParameter("Filter", "F", desc, GH_ParamAccess.item);
            pManager[1].Optional = true; //filter is optional
            pManager.AddBooleanParameter("Refresh", "R", "Send a new value to this parameter to cause the list of spreadsheets to refresh.", GH_ParamAccess.tree, true);

            //refresh parameter value is never actually used, but any new data passed into it will trigger a new solveinstance.
        }
开发者ID:ptierney,项目名称:leafcutter,代码行数:29,代码来源:SpreadsheetList.cs

示例7: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("write?", "W?", "Write the VA3C JSON file to disk?", GH_ParamAccess.item);
     pManager.AddTextParameter("filePath", "Fp", "Full filepath of the file you'd like to create.  Files will be overwritten automatically.", GH_ParamAccess.item);
     pManager.AddGenericParameter("Elements", "E", "va3c Elements to add to the scene.", GH_ParamAccess.list);
     pManager[2].DataMapping = GH_DataMapping.Flatten;
 }
开发者ID:luodinglin,项目名称:GHvA3C,代码行数:10,代码来源:va3c_SceneCompiler.cs

示例8: RegisterInputParams

 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Input", "I", "Input value", GH_ParamAccess.tree);
     pManager.AddBooleanParameter("Enumerate", "E", "Enumerate lists to sequentally named items, or create a list of values", GH_ParamAccess.item, false);
     this.Params.Input[0].ObjectChanged += resetMapping;
     this.Params.Input[0].AttributesChanged += resetMapping;
 }
开发者ID:arendvw,项目名称:ExportTools,代码行数:7,代码来源:AutoHashComponent.cs

示例9: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("filename", "F", "The destination filename", GH_ParamAccess.item);
     pManager.AddIntegerParameter("height", "H", "Height (pixels) of screenshot", GH_ParamAccess.item, 600);
     pManager.AddIntegerParameter("width", "W", "Width (pixels) of screenshot", GH_ParamAccess.item, 800);
     pManager.AddTextParameter("viewport", "VP", "Viewport to capture", GH_ParamAccess.item, "Perspective");
     pManager.AddBooleanParameter("enabled", "E", "Enable the screenshot", GH_ParamAccess.item, false);
 }
开发者ID:arendvw,项目名称:ExportTools,代码行数:11,代码来源:ScreenshotComponent.cs

示例10: RegisterInputParams

 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPlaneParameter("Location", "L", "Location and orientation of the text", GH_ParamAccess.item);
     pManager.AddTextParameter("Text", "T", "Text to display", GH_ParamAccess.item);
     pManager.AddNumberParameter("Size", "S", "Size of the text", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Bold", "B", "True for bold font", GH_ParamAccess.item, false);
     pManager.AddIntegerParameter("Horizontal alignment", "H", "0=Center, 1=Left, 2=Right", GH_ParamAccess.item, 0);
     pManager.AddIntegerParameter("Vertical alignment", "V", "0=Center, 1=Top, 2=Bottom, 3=Baseline", GH_ParamAccess.item, 0);
 }
开发者ID:olitur,项目名称:Bowerbird,代码行数:9,代码来源:BBTextComponent.cs

示例11: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("Activate", "Activate", "Activate", GH_ParamAccess.item);
     pManager.AddTextParameter("ViewportName", "ViewportName", "ViewportName", GH_ParamAccess.item);
     pManager.AddPointParameter("Location", "Location", "Camera Location", GH_ParamAccess.item);
     pManager.AddPointParameter("Target", "Target", "Camera Target", GH_ParamAccess.item);
     pManager.AddNumberParameter("Lens", "Lens", "Camera Lens Focal Length", GH_ParamAccess.item);
     pManager.AddVectorParameter("Up", "Up", "Camera's Up (Z) vector", GH_ParamAccess.item);
 }
开发者ID:provolot,项目名称:FlounderCamera,代码行数:12,代码来源:setFlounderCameraComponent.cs

示例12: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Environment", "Env", "Environment", GH_ParamAccess.item);
     pManager.AddGenericParameter("Emitter", "Emi", "Emitter", GH_ParamAccess.item);
     pManager.AddGenericParameter("Food", "F", "Food", GH_ParamAccess.item);
     pManager.AddGenericParameter("Settings", "Set", "Settings", GH_ParamAccess.list);
     pManager.AddBooleanParameter("reset", "r", "reset", GH_ParamAccess.item, true);
     pManager[3].Optional = true;
 }
开发者ID:maajor,项目名称:Physarealm,代码行数:12,代码来源:PhysarealmComponent.cs

示例13: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Topology", "Topo", "Unit cell topology", GH_ParamAccess.item);
     pManager.AddSurfaceParameter("Surface", "Surf", "Surface to conform to", GH_ParamAccess.item);
     pManager.AddCurveParameter("Axis", "A", "Axis (may be curved)", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Number u", "Nu", "Number of unit cells (u)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number v", "Nv", "Number of unit cells (v)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number w", "Nw", "Number of unit cells (w)", GH_ParamAccess.item, 5);
     pManager.AddBooleanParameter("Morph", "Morph", "If true, struts are morphed to the space as curves.", GH_ParamAccess.item, false);
 }
开发者ID:smor,项目名称:intralattice,代码行数:13,代码来源:ConformSAComponent.cs

示例14: RegisterInputParams

 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Topology", "Topo", "Unit cell topology", GH_ParamAccess.item);
     pManager.AddNumberParameter("Radius", "R", "Radius of cylinder", GH_ParamAccess.item, 15);
     pManager.AddNumberParameter("Height", "H", "Height of cylinder", GH_ParamAccess.item, 25);
     pManager.AddIntegerParameter("Number u", "Nu", "Number of unit cells (axial)", GH_ParamAccess.item, 5);
     pManager.AddIntegerParameter("Number v", "Nv", "Number of unit cells (theta)", GH_ParamAccess.item, 15);
     pManager.AddIntegerParameter("Number w", "Nw", "Number of unit cells (radial)", GH_ParamAccess.item, 4);
     pManager.AddBooleanParameter("Morph", "Morph", "If true, struts are morphed to the space as curves.", GH_ParamAccess.item, false);
 }
开发者ID:smor,项目名称:intralattice,代码行数:13,代码来源:BasicCylinderComponent.cs

示例15: RegisterInputParams

 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Lines", "L", "Wireframe to thicken", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Sides", "S", "Number of sides for the struts", GH_ParamAccess.item, 6);
     pManager.AddNumberParameter("Start Radius", "Rs", "Radius at the start of each line", GH_ParamAccess.list);
     pManager.AddNumberParameter("End Radius", "Re", "Radius at the end of each line", GH_ParamAccess.list);
     pManager.AddNumberParameter("Node Depth", "N", "Offset depth for nodes", GH_ParamAccess.item);
     pManager.AddNumberParameter("Division", "D", "Segment division length", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Open", "O", "If true, nodes with only one connected strut will be left open", GH_ParamAccess.item, false);
 }
开发者ID:nsbcnjsbc,项目名称:Exoskeleton2,代码行数:10,代码来源:ExoWireframe.cs


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