Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
        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;
        }
Exemplo n.º 5
0
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.RegisterParam(new GHParam_DHr(), "Dhours", "Dhrs", "The spatialized Dhours", GH_ParamAccess.list);
     pManager.Register_PointParam("Positions", "Pts", "The assigned positions of the hours", GH_ParamAccess.list);
     pManager.Register_CurveParam("Lines", "Lns", "Lines that represent the area on the resulting graph occupied by each hour given", GH_ParamAccess.list);
     pManager.Register_ColourParam("Colors", "Clrs", "Colors corresponding to each line produced", GH_ParamAccess.item);
     pManager.Register_MeshParam("Mesh", "Msh", "A mesh representing the resulting graph, with vertex colors assigned where applicable.", GH_ParamAccess.item);
     pManager.Register_GeometryParam("Trim Boundary", "Bnd", "A Trimming Boundary.  May be a rectangle or a circle, depending on the plot type.", GH_ParamAccess.item);
 }
Exemplo n.º 6
0
        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;
        }
Exemplo n.º 7
0
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_ColourParam("Color", "Clr", "The color of the Dhour", GH_ParamAccess.item);
 }
Exemplo n.º 8
0
 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);
 }
Exemplo n.º 9
0
        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", "Key", "The key on which to base colorization", GH_ParamAccess.item);
            pManager.Register_IntervalParam("Domain", "Rng", "The domain that maps values to their corresponding colors.  Defaults to the range of given values. The high end of the domain will correspond to the given high color, and the low end will correspond to the given low color. Values that fall outside of the given range will default to the maximum or minimum color value.", GH_ParamAccess.item);
            pManager.Register_ColourParam("High Color", "Hi", "The color to assign to hours with high values.  Defaults to white.", Color.White, GH_ParamAccess.item);
            pManager.Register_ColourParam("Mid Color", "Mid", "The color to assign to hours with middle values.  Optional.", GH_ParamAccess.item);
            pManager.Register_ColourParam("High Color", "Lo", "The color to assign to hours with low values.  Defaults to black.", Color.Black, GH_ParamAccess.item);

            this.Params.Input[2].Optional = true;
            this.Params.Input[4].Optional = true;
        }