本文整理汇总了C#中GH_Component类的典型用法代码示例。如果您正苦于以下问题:C# GH_Component类的具体用法?C# GH_Component怎么用?C# GH_Component使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GH_Component类属于命名空间,在下文中一共展示了GH_Component类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: RegisterInputParams
/// <summary>
/// Registers all the input parameters for this component.
/// </summary>
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddLineParameter("Line", "L", "A line to convert into a va3c JSON representation of the line", GH_ParamAccess.item);
pManager.AddGenericParameter("Line Material", "Lm", "Line Material", GH_ParamAccess.item);
pManager.AddTextParameter("Layer", "[L]", "Layer", GH_ParamAccess.item);
pManager[2].Optional = true;
}
开发者ID:luodinglin,项目名称:GHvA3C,代码行数:10,代码来源:va3c_Line.cs
示例2: RegisterOutputParams
/// <summary>
/// Registers all the output parameters for this component.
/// </summary>
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
{
pManager.AddPointParameter("Position", "P", "Position", GH_ParamAccess.item);
pManager.AddVectorParameter("Velocity", "V", "Velocity", GH_ParamAccess.item);
pManager.AddVectorParameter("Acceleration", "A", "Acceleration", GH_ParamAccess.item);
pManager.AddIntegerParameter("Lifespan", "L", "Lifespan", GH_ParamAccess.item);
}
开发者ID:lxfschr,项目名称:Quelea,代码行数:10,代码来源:DeconstructAgentComponent.cs
示例3: RegisterOutputParams
/// <summary>
/// Registers all the output parameters for this component.
/// </summary>
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
{
pManager.AddIntegerParameter("PIndexBending", "PI12", "The particle index associated with the calculated moment", GH_ParamAccess.item);
pManager.AddPlaneParameter("Plane", "pl", "The bending plane", GH_ParamAccess.item);
pManager.AddNumberParameter("BendingMoment", "M", "The bending moment [kNm]", GH_ParamAccess.item);
pManager.AddNumberParameter("BendingStress", "stressB", "The bending stress [MPa]", GH_ParamAccess.item);
}
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:10,代码来源:CastRodOutput.cs
示例4: RegisterOutputParams
/// <summary>
/// Registers all the output parameters for this component.
/// </summary>
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
{
pManager.AddCurveParameter("Struts", "Struts", "Cleaned curve network.", GH_ParamAccess.list);
pManager.AddPointParameter("Nodes", "Nodes", "List of unique nodes.", GH_ParamAccess.list);
pManager.AddIntegerParameter("CurveStart", "I", "Index in 'Nodes' for the start of each curve in 'Struts'.", GH_ParamAccess.list);
pManager.AddIntegerParameter("CurveEnd", "J", "Index in 'Nodes' for the end of each curve in 'Struts'.", GH_ParamAccess.list);
}
开发者ID:smor,项目名称:intralattice,代码行数:10,代码来源:CleanNetworkComponent.cs
示例5: 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
示例6: RegisterInputParams
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddMeshParameter("Mesh", "M", "Mesh of the model", GH_ParamAccess.item);
pManager.AddPlaneParameter("Planes", "P", "Section Planes", GH_ParamAccess.list);
pManager.AddNumberParameter("Thickness", "T", "Thickness of the parts", GH_ParamAccess.item);
pManager.AddNumberParameter("Deeper", "D", "Makes the slits deeper", GH_ParamAccess.item, 0.0);
}
开发者ID:olitur,项目名称:Bowerbird,代码行数:7,代码来源:BBSectionComponent.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.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
示例8: RegisterInputParams
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddCurveParameter("Curves", "C", "", GH_ParamAccess.list);
pManager.AddPlaneParameter("Plane", "P", "", GH_ParamAccess.item);
pManager[1].Optional = true;
}
开发者ID:olitur,项目名称:Bowerbird,代码行数:7,代码来源:BBUnionComponent.cs
示例9: 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
示例10: 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
示例11: RegisterInputParams
/// <summary>
/// Registers all the input parameters for this component.
/// </summary>
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddCurveParameter("Struts", "Struts", "Wireframe to thicken", GH_ParamAccess.list);
pManager.AddTextParameter("Gradient String", "Grad", "The spatial gradient as an expression string", GH_ParamAccess.item, "0");
pManager.AddNumberParameter("Maximum Radius", "Rmax", "Maximum radius in gradient", GH_ParamAccess.item, 0.5);
pManager.AddNumberParameter("Minimum Radius", "Rmin", "Minimum radius in gradient", GH_ParamAccess.item, 0.2);
}
开发者ID:smor,项目名称:intralattice,代码行数:10,代码来源:HeterogenGradientComponent.cs
示例12: RegisterInputParams
/// <summary>
/// Registers all the input parameters for this component.
/// </summary>
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
base.RegisterInputParams(pManager);
pManager.AddGenericParameter("Environment", "Env", "Environment", GH_ParamAccess.item);
pManager.AddIntegerParameter("detect radius", "detr", "Below this value, pairs of agents locations will be connected at a possibility.", GH_ParamAccess.item);
pManager.AddNumberParameter("select possibility", "selp", "The possibility of a pair of agents locations are connected", GH_ParamAccess.item);
}
开发者ID:maajor,项目名称:Physarealm,代码行数:10,代码来源:PopulationInterconnectComponent.cs
示例13: Run
public static List<object[]> Run(GH_Component component, IList<object> data, System.Collections.IDictionary kwargs)
{
Type t = component.GetType();
var method = t.GetMethod("SolveInstance", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
List<object[]> input = BuildInputList(data);
int output_count = component.Params.Output.Count;
int iterations = input.Count;
List<object[]> output = new List<object[]>(output_count);
for (int i = 0; i < output_count; i++)
output.Add(new object[iterations]);
bool run_parallel = false;
if (kwargs != null && kwargs.Contains("multithreaded"))
run_parallel = (bool)kwargs["multithreaded"];
if (run_parallel)
{
System.Threading.Tasks.Parallel.For(0, input.Count, (iteration) => SolveIteration(iteration, component, input, output, method));
}
else
{
for( int iteration=0; iteration<input.Count; iteration++)
{
SolveIteration(iteration, component, input, output, method);
};
}
return output;
}
开发者ID:needlsd,项目名称:ghpython,代码行数:30,代码来源:FastComponent.cs
示例14: 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
示例15: RegisterInputParams
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddMeshParameter("Mesh", "M", "Mesh of the model", GH_ParamAccess.item);
pManager.AddNumberParameter("Thickness", "T", "Thickness of the parts", GH_ParamAccess.item);
pManager.AddPlaneParameter("Plane", "P", "Base plane", GH_ParamAccess.item, Plane.WorldXY);
pManager.AddNumberParameter("Border", "B", "Overlapping of the layers", GH_ParamAccess.item, 0);
}
开发者ID:olitur,项目名称:Bowerbird,代码行数:7,代码来源:BBLayerComponent.cs
示例16: 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
示例17: RegisterInputParams
/// <summary>
/// Registers all the input parameters for this component.
/// </summary>
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddCurveParameter("Polyline", "Pl", "A list of polylines to offset", GH_ParamAccess.item);
pManager.AddPointParameter("Point", "P", "Offset Distance", GH_ParamAccess.item);
pManager.AddPlaneParameter("Plane", "Pln", "Plane to project the polylines to", GH_ParamAccess.item, default(Plane));
pManager.AddNumberParameter("Tolerance", "T", "Tolerance: all floating point data beyond this precision will be discarded.", GH_ParamAccess.item, Rhino.RhinoDoc.ActiveDoc.ModelAbsoluteTolerance);
}
开发者ID:JIMMMMMMY,项目名称:clipper,代码行数:10,代码来源:PolygonContainmentComponent.cs
示例18: RegisterInputParams
/// <summary>
/// Registers all the input parameters for this component.
/// </summary>
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddPointParameter("Position", "pos", "The position of the load", GH_ParamAccess.list);
pManager.AddVectorParameter("Load", "load", "The nodal load", GH_ParamAccess.list);
pManager.AddColourParameter("Colour", "c", "The colour of the load", GH_ParamAccess.item, Color.DarkCyan);
pManager.AddNumberParameter("Scale", "sc", "Scale factor", GH_ParamAccess.item, 1.0);
}
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:10,代码来源:LoadVisualisation.cs
示例19: RegisterInputParams
/// <summary>
/// Registers all the input parameters for this component.
/// </summary>
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddLineParameter("Lines", "ln", "The lines to display", GH_ParamAccess.list);
pManager.AddPointParameter("DisplacedNodes", "pFinal", "The displaced nodes", GH_ParamAccess.list);
pManager.AddNumberParameter("Displacement", "displ", "The nodal displacements", GH_ParamAccess.list);
pManager.AddColourParameter("ColourRange", "c", "The colour range (use gradient)", GH_ParamAccess.list);
}
开发者ID:CecilieBrandt,项目名称:K2Engineering,代码行数:10,代码来源:DisplacementVisualisation.cs
示例20: RegisterInputParams
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.Register_CurveParam("Path Curve", "PC", "Path Curve");
pManager.Register_PlaneParam("Path Plane", "PP", "Path Plane");
pManager.Register_CurveParam("Section Curve", "SC", "Section Curve");
pManager.Register_PlaneParam("Section Plane", "SP", "Section Plane");
}
开发者ID:parkjunseok,项目名称:Beaver,代码行数:7,代码来源:Beaver.cs
注:本文中的GH_Component类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论