本文整理汇总了C#中GH_Component.AddLineParameter方法的典型用法代码示例。如果您正苦于以下问题:C# GH_Component.AddLineParameter方法的具体用法?C# GH_Component.AddLineParameter怎么用?C# GH_Component.AddLineParameter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GH_Component
的用法示例。
在下文中一共展示了GH_Component.AddLineParameter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RegisterOutputParams
/// <summary>
/// Registers output parameters for component
/// </summary>
/// <param name="pManager"></param>
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
{
pManager.AddPointParameter("Points", "P", "New Points", GH_ParamAccess.list);
pManager.AddNumberParameter("Radius", "R", "New radius", GH_ParamAccess.list);
pManager.AddLineParameter("Acceleration", "A", "Draws lines to represent the acceleration of a point", GH_ParamAccess.list);
pManager.AddLineParameter("Velocity", "V", "Draws lines to represent to velocity of a point. A good way to check if the system has settled is to attached the following to this output: Curve Length -> Mass Addition -> Data Recorder -> Quick Graph", GH_ParamAccess.list);
pManager.AddNumberParameter("Brigthnesses", "B", "Current brightness of mesh at location of point", GH_ParamAccess.list);
}
示例2: RegisterInputParams
/// <summary>
/// Registers all the input parameters for this component.
/// </summary>
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddLineParameter("LineA", "LnA", "Line representing the first segment [m]", GH_ParamAccess.item);
pManager.AddLineParameter("LineB", "LnB", "Line representing the consecutive segment [m]", GH_ParamAccess.item);
pManager.AddNumberParameter("E-Modulus", "E", "E-Modulus of the material [MPa]", GH_ParamAccess.item);
pManager.AddNumberParameter("Inertia", "I", "The moment of inertia [mm4]", GH_ParamAccess.item);
pManager.AddNumberParameter("z-distance", "z", "The distance from the section axis to the extreme fiber [mm]", GH_ParamAccess.item);
pManager.AddIntegerParameter("RestAngleOption", "Opt", "Specify the rest angle. 0: straight. 1: current angle", GH_ParamAccess.item, 0);
}
示例3: 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);
}
示例4: 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;
}
示例5: RegisterInputParams
/// <summary>
/// Registers all the input parameters for this component.
/// </summary>
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddLineParameter("Line", "Ln", "Line representing the cable element [m]", GH_ParamAccess.item);
pManager.AddNumberParameter("E-Modulus", "E", "E-Modulus of the material [MPa]", GH_ParamAccess.item);
pManager.AddNumberParameter("Area", "A", "Cross-section area [mm2]", GH_ParamAccess.item);
pManager.AddNumberParameter("PreTension", "P", "Optional pre-tension [kN]", GH_ParamAccess.item);
pManager[3].Optional = true;
}
示例6: RegisterOutputParams
/// <summary>
/// Registers all the output parameters for this component.
/// </summary>
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
{
pManager.AddIntegerParameter("PIndexStart", "PI0", "The start particle index of a bar element", GH_ParamAccess.item);
pManager.AddIntegerParameter("PIndexEnd", "PI1", "The end particle index of a bar element", GH_ParamAccess.item);
pManager.AddLineParameter("Line", "ln", "The updated line geometry", GH_ParamAccess.item);
pManager.AddNumberParameter("AxialForce", "F", "The axial force [kN] in the bar (- is compression)", GH_ParamAccess.item);
pManager.AddNumberParameter("AxialStress", "stressA", "The axial stress [MPa] in the bar (- is compression)", GH_ParamAccess.item);
}
示例7: RegisterInputParams
/// <summary>
/// Registers all the input parameters for this component.
/// </summary>
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddLineParameter("Line", "Ln", "Line representing the bar element [m]", GH_ParamAccess.item);
pManager.AddNumberParameter("E-Modulus", "E", "E-Modulus of the material [MPa]", GH_ParamAccess.item);
pManager.AddNumberParameter("Area", "A", "Cross-section area [mm2]", GH_ParamAccess.item);
}
示例8: RegisterInputParams
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddLineParameter("Lines", "L", "Lines to be converted", GH_ParamAccess.item);
pManager.AddGenericParameter("CrossSection", "CS", "Defines cross section of beam", GH_ParamAccess.item);
pManager.AddGenericParameter("Material", "M", "Defines material of beam", GH_ParamAccess.item);
}
示例9: RegisterInputParams
/// <summary>
/// Registers all the input parameters for this component.
/// </summary>
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddLineParameter("Line", "ln", "Line segment in [m]", GH_ParamAccess.list);
pManager.AddNumberParameter("BendingMoment", "M", "The bending moments in [kNm]", GH_ParamAccess.list);
pManager.AddPlaneParameter("BendingPlane", "pl", "The bending planes", GH_ParamAccess.list);
}
示例10: RegisterOutputParams
/// <summary>
/// Registers all the output parameters for this component.
/// </summary>
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
{
pManager.AddLineParameter("lines", "lines", "lines", GH_ParamAccess.item);
//pManager.AddGenericParameter("surfaces", "surfaces", "surfaces", GH_ParamAccess.list);
//pManager.AddBrepParameter("surfaces", "surfaces", "surfaces", GH_ParamAccess.list);
pManager.AddCurveParameter("curveRight", "curveRight", "curveRight", GH_ParamAccess.list);
pManager.AddCurveParameter("curveLeft", "curveLeft", "curveLeft", GH_ParamAccess.list);
pManager.AddNumberParameter("Coplanarity", "Coplanarity", "Coplanarity", GH_ParamAccess.list);
pManager.AddLineParameter("linesUp", "linesUp", "linesUp", GH_ParamAccess.list);
pManager.AddLineParameter("linesDown", "linesDown", "linesDown", GH_ParamAccess.list);
}
示例11: RegisterOutputParams
/// <summary>
/// Registers all the output parameters for this component.
/// </summary>
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
{
pManager.AddLineParameter("Connect Line", "cL", "all output line to connect pairs of points", GH_ParamAccess.list);
pManager.AddNumberParameter("Connect Weight", "cW", "line weight of each lines, this is calculated by average chemoattractor level of point pairs.", GH_ParamAccess.list);
}
示例12: RegisterInputParams
/// <summary>
/// Registers all the input parameters for this component.
/// </summary>
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddLineParameter("Line", "ln", "The lines to display", GH_ParamAccess.list);
pManager.AddNumberParameter("Axial stresses", "stressA", "The axial stresses", GH_ParamAccess.list);
}
示例13: RegisterInputParams
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddLineParameter("Gridline", "Gridline", "Gridline", GH_ParamAccess.item);
int b = pManager.AddTextParameter("Name", "Name", "Name", GH_ParamAccess.item);
int a = pManager.AddGenericParameter("Parameters", "Param", "Parameters", GH_ParamAccess.list);
pManager[a].Optional = true;
pManager[b].Optional = true;
}
示例14: RegisterOutputParams
/// <summary>
/// Registers all the output parameters for this component.
/// </summary>
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
{
pManager.AddLineParameter("Connect Line", "CL", "Connect Line", GH_ParamAccess.list);
}
示例15: RegisterInputParams
/// <summary>
/// Registers all the input parameters for this component.
/// </summary>
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddLineParameter("Bars", "bars", "Bar elements", GH_ParamAccess.list);
}