本文整理汇总了C#中GH_Component.Register_ColourParam方法的典型用法代码示例。如果您正苦于以下问题:C# GH_Component.Register_ColourParam方法的具体用法?C# GH_Component.Register_ColourParam怎么用?C# GH_Component.Register_ColourParam使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GH_Component
的用法示例。
在下文中一共展示了GH_Component.Register_ColourParam方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例2: 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);
}
示例3: RegisterOutputParams
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
{
pManager.Register_CurveParam("Regions", "Rgns", "Regions that represent each slice on the resulting Pie Graph", GH_ParamAccess.list);
pManager.Register_MeshParam("Mesh", "Msh", "Meshes that represent the resulting graph, with vertex colors assigned where applicable.", GH_ParamAccess.list);
pManager.Register_ColourParam("Colors", "Clrs", "Colors corresponding to each region", GH_ParamAccess.list);
}
示例4: RegisterInputParams
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.Register_DoubleParam("Values", "Vals", "A list of values, each associated with a slice of the Pie Graph. The sum of these values will be used to set the 'scale' of the graph.", GH_ParamAccess.list);
pManager.Register_ColourParam("Colors", "Clrs", "A list of colors to be associated with each slice of the Pie Graph", 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_IntervalParam("Graph Radii", "Rad", "An interval that sets the inner and outer radii of the resulting graph. Defaults to 1.0 -> 3.0", new Interval(1.0, 3.0), GH_ParamAccess.item);
this.Params.Input[1].Optional = true;
}
示例5: RegisterInputParams
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.Register_IntegerParam("Hour Number", "Hr", "The hour of the year to construct, (0-8759). Defaults to -1, which produces an invalid Dhour.", -1, GH_ParamAccess.list);
pManager.Register_StringParam("Keys", "Keys", "The named keys to store in this Dhour. Must be a list of equal length to the 'Vals' parameter.", GH_ParamAccess.list);
pManager.Register_DoubleParam("Values", "Vals", "The values to store in this Dhour. Must be a list of equal length to the 'Keys' parameter.", GH_ParamAccess.tree);
pManager.Register_ColourParam("Color", "Clr", "Optional. A color assigned to this hour, typically for analysis and visualization.", GH_ParamAccess.list);
pManager.Register_PointParam("Position", "Pt", "Optional. A point in space assigned to this hour, typically for analysis and visualization.", GH_ParamAccess.list);
this.Params.Input[3].Optional = true;
this.Params.Input[4].Optional = true;
}
示例6: RegisterOutputParams
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
{
pManager.RegisterParam(new GHParam_DHr(), "Dhours", "Dhrs", "The colorized Dhours", GH_ParamAccess.list);
pManager.Register_ColourParam("Colors", "color", "The assigned colors", GH_ParamAccess.list);
}