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 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;
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
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.º 5
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.RegisterParam(new GHParam_DHr(), "Dhours", "Dhrs", "The Dhours to which to assign positions", GH_ParamAccess.tree);
            pManager.Register_StringParam("Key", "Key", "The key associated with the y-axis", GH_ParamAccess.item);
            pManager.Register_IntervalParam("Scale", "Scl", "An interval that associates hour values with the graph height.  In effect, sets the vertical scale of the graph.  Defaults to the max and min of given values.", GH_ParamAccess.item);
            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_2DIntervalParam("Graph Dimensions", "Dim", "The dimensions of the resulting graph", GH_ParamAccess.item);
            pManager.Register_DoubleParam("Subgraph Width", "Wid", "The width of each diurnal subgraph, as a percentage of available area (0 -> 1).  Defaults to 1.0", 1.0, GH_ParamAccess.item);

            this.Params.Input[2].Optional = true;
            this.Params.Input[3].Optional = true;
            this.Params.Input[4].Optional = true;
            this.Params.Input[5].Optional = true;
        }
Exemplo n.º 6
0
        protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
        {
            pManager.Register_StringParam("output", "out", "error messages from the system");

            pManager.Register_PlaneParam("Proxies", "P", "the planes for the proxies");

            pManager.Register_CurveParam("MeshAsCurves", "MC", "the connectivity mesh as a set of curves");

            pManager.Register_GenericParam("HLwingMesh", "WM", "the winged mesh to put into the next function");

            pManager.Register_VectorParam("Normals", "N", "the normals for each face");

            pManager.Register_PointParam("Centres", "C", "the centres for each face");

            pManager.Register_CurveParam("VoronoiOnMesh", "VOM", "non planar voronoi from clusters");
        }
Exemplo n.º 7
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.RegisterParam(new GHParam_DHr(), "Dhour", "Dhr", "The Dhour from which to extract a value", GH_ParamAccess.list);
     pManager.Register_StringParam("Value Key", "Key", "The name of the value to extract", GH_ParamAccess.item);
 }
Exemplo n.º 8
0
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_StringParam("Common Keys", "CKey", "The keys common to all Dhours", GH_ParamAccess.item);
     pManager.Register_StringParam("Orphan Keys", "OKey", "The keys found in some Dhours, but not all", GH_ParamAccess.item);
 }
Exemplo n.º 9
0
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_StringParam("data", "D", "query result");
     pManager.Register_StringParam("out", "O", "out");
 }
Exemplo n.º 10
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.RegisterParam(new GHParam_DHr(), "Dhours", "Dhrs", "The Dhours from which to extract values", GH_ParamAccess.list);
     pManager.Register_StringParam("Key", "Key", "The key to test", GH_ParamAccess.item);
     pManager.Register_StringParam("Operator", "Opr", "The comparison operator.  Choose '==' (equal to), '!=' (not equal to),'>'(greater than),'>=' (greater than or equal to), '<' (less than), or '<=' (less than or equal to)", GH_ParamAccess.item);
     pManager.Register_DoubleParam("Value", "Val", "The value to test against", GH_ParamAccess.item);
 }
Exemplo n.º 11
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.RegisterParam(new GHParam_DHr(), "Dhours", "Dhrs", "The Dhours to which to assign positions", GH_ParamAccess.list);
            pManager.Register_StringParam("Key", "Key", "The key associated with the radial dimension of the graph.", GH_ParamAccess.item);
            pManager.Register_IntervalParam("Radius Scale", "SclR", "An interval that associates hour values with the graph radius, setting the radial scale of the graph.  Defaults to the max and min of given values.", GH_ParamAccess.item);
            pManager.Register_StringParam("Period", "Prd", "The time period associated with one revolution around the graph.  Choose 'year', 'day', or 'none' (default).  The default setting of 'none' results in a graph that plots hours in the order in which they were given, ignoring their timestamp, and filling the 360deg of the circle.", "none", GH_ParamAccess.item);
            pManager.Register_PlaneParam("Location", "Loc", "The location and orientation (as a plane) at which to draw this graph.  Note an angular value of zero will align with the x-axis of this plane.", 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[2].Optional = true;
        }
Exemplo n.º 12
0
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_StringParam("path", "P", "The selected path");
 }
Exemplo n.º 13
0
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_StringParam("file", "F", "The output filename");
     pManager.Register_BooleanParam("success", "S", "True if successfully written, false if failed");
 }
Exemplo n.º 14
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.Register_StringParam("Keys to Keep", "Keys", "The keys that should remain in the given Dhour", GH_ParamAccess.list);
     pManager.RegisterParam(new GHParam_DHr(), "Dhour", "Dhr", "The given Dhour", GH_ParamAccess.item);
 }
Exemplo n.º 15
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     GHParam_DHr param = new GHParam_DHr();
     pManager.RegisterParam(param, "Dhours", "Dhrs", "The Dhours from which to calculate statistics", GH_ParamAccess.list);
     pManager.Register_StringParam("Period", "P", "The time period to cycle through.  Choose 'yearly', 'monthly', 'monthly diurnal', 'weekly', 'weekly diurnal', or 'daily'.  Output values are labeled 'SURROGATE' to remain distinguished from original Dhour lists.");
 }
Exemplo n.º 16
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.RegisterParam(new GHParam_DHr(), "Dhours", "Dhrs", "The Dhours to search for extremes within", GH_ParamAccess.list);
     pManager.Register_StringParam("Value Key", "Key", "The name of the value to test", GH_ParamAccess.item);
 }
Exemplo n.º 17
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.RegisterParam(new GHParam_DHr(), "Dhours", "Dhrs", "The Dhours from which to extract values", GH_ParamAccess.tree);
            pManager.Register_StringParam("Key", "Key", "The key by which to sort hours", GH_ParamAccess.item);
            pManager.Register_IntervalParam("Interval", "Ival", "The overall interval to sample.  This interval will be subdivided into a number of subintervals.  Defaults to min and max of given values.  Any values that fall outside of this interval will be appended to the highest or lowest count.", GH_ParamAccess.item);
            pManager.Register_IntegerParam("Subdivisions", "Div", "The number of subintervals to divide the above interval into", 10, GH_ParamAccess.item);

            this.Params.Input[2].Optional = true;
        }
Exemplo n.º 18
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.RegisterParam(new GHParam_DHr(), "Dhours", "Dhrs", "The Dhours from which to extract values", GH_ParamAccess.list);
            pManager.Register_StringParam("Key U", "Key U", "The first key by which to count hours", GH_ParamAccess.item);
            pManager.Register_StringParam("Key U", "Key V", "The second key by which to count hours", GH_ParamAccess.item);
            pManager.Register_2DIntervalParam("UV Interval", "Ival2", "The overall two-dimensional interval to sample.  This interval will be subdivided into a number of subintervals.", GH_ParamAccess.item);
            pManager.Register_IntervalParam("Subdivisions", "Divs", "An interval of two integer numbers that describe the number of subdivisions desired in the U and V dimensions", new Interval(4, 3), GH_ParamAccess.item);
            pManager.Register_BooleanParam("Cull Outliers", "Cul", "If true, outlying values will be culled.  If false (default), any values that fall outside of this interval will be appended to the highest or lowest count.", false, GH_ParamAccess.item);

            this.Params.Input[3].Optional = true;
        }
Exemplo n.º 19
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.º 20
0
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_StringParam("Console", "...", "Messages from Python", GH_ParamAccess.tree);
     pManager.RegisterParam(new GHParam_AWorld(), "AWorld", "W", "The resulting AntsWorld.", GH_ParamAccess.item);
     pManager.Register_StringParam("Value", "V", "Value for Key", GH_ParamAccess.item);
 }
Exemplo n.º 21
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.Register_StringParam("data source", "S", "data source");
     pManager.Register_StringParam("sql query", "Q", "sql query statement");
     pManager.Register_StringParam("index Path", "P", "Path to MySQL binlog-index file");
 }
Exemplo n.º 22
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.RegisterParam(new GHParam_DHr(), "Dhours", "Dhrs", "The Dhours to which to assign positions", GH_ParamAccess.list);
            pManager.Register_StringParam("Radius Key", "KeyR", "The key associated with the radial dimension of the graph", GH_ParamAccess.item);
            pManager.Register_StringParam("Angle Key", "KeyA", "The key associated with the angular dimension of the graph", GH_ParamAccess.item);
            pManager.Register_IntervalParam("Radius Scale", "SclR", "An interval that associates hour values with the graph radius, setting the radial scale of the graph.  Defaults to the max and min of given values.", GH_ParamAccess.item);
            pManager.Register_IntervalParam("Angle Scale", "SclA", "An interval that associates hour values with the graph angle, setting the angular scale of the graph.  Defaults to 0 -> 360.", new Interval(0, 360), GH_ParamAccess.item);
            pManager.Register_PlaneParam("Location", "Loc", "The location and orientation (as a plane) at which to draw this graph.  Note an angular value of zero will align with the x-axis of this plane.", 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);
            pManager.Register_IntervalParam("Subdivisions", "Divs", "An interval of two integer numbers that describe the number of subregions desired.  The first number corresponds to radius divisions, and the second to angular divisions.", new Interval(4, 3), GH_ParamAccess.item);

            this.Params.Input[3].Optional = true;
            this.Params.Input[5].Optional = true;
            this.Params.Input[6].Optional = true;
        }
Exemplo n.º 23
0
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_StringParam("Console", "...", "Messages from Python", GH_ParamAccess.tree);
     //pManager.Register_BooleanParam("Contains", "B", "Contains Key.", GH_ParamAccess.item);
     pManager.Register_GenericParam("Keys", "KS", "Keys in Picnic", GH_ParamAccess.list);
     pManager.Register_GenericParam("Out", "O", "jhfjgs", GH_ParamAccess.item);
     pManager.Register_StringParam("S", "S", "S", GH_ParamAccess.item);
 }
Exemplo n.º 24
0
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_StringParam("Unit", "U", "The unit of the current rhino document");
 }
Exemplo n.º 25
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.RegisterParam(new GHParam_DHr(), "Dhours", "Dhrs", "The Dhours to which to assign positions", 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_2DIntervalParam("Graph Dimensions", "Dim", "The dimensions of the resulting orthographic graph.  This parameter is ignored when plotting stereographic graphs.", GH_ParamAccess.item);
            pManager.Register_DoubleParam("Graph Radius", "Rad", "The dimensions of the resulting stereographic graph.  This parameter is ignored when plotting orthographic graphs.", 3.0, GH_ParamAccess.item);
            pManager.Register_StringParam("Plot Type", "Typ", "The type of graph to plot.  Choose 'Ortho' or 'Stereo', defaults to Stereo.", "Stereographic", GH_ParamAccess.item);

            pManager.Register_StringParam("Solar Altitude Key", "Alt Key", "The key related to the solar altitude", "solar_altitude", GH_ParamAccess.item);
            pManager.Register_StringParam("Solar Azimuth Key", "Azm Key", "The key related to the solar azimuth", "solar_azimuth", GH_ParamAccess.item);
            pManager.Register_BooleanParam("Cull Nighttime", "Cull Night", "Cull nighttime hours (default)", true, GH_ParamAccess.item);

            this.Params.Input[1].Optional = true;
            this.Params.Input[2].Optional = true;
            //this.Params.Input[3].Optional = true;
            this.Params.Input[4].Optional = true;
            this.Params.Input[5].Optional = true;
            this.Params.Input[6].Optional = true;
        }
Exemplo n.º 26
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;
        }
Exemplo n.º 27
0
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.Register_StringParam("Key", "K", "A string key");
     pManager.Register_GenericParam("Value", "V", "A value key");
 }
Exemplo n.º 28
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.RegisterParam(new GHParam_DHr(), "Dhours", "Dhrs", "The Dhours from which to extract values", GH_ParamAccess.list);
     pManager.Register_StringParam("Key", "Key", "The key to sort on", GH_ParamAccess.item);
     pManager.Register_BooleanParam("Ascending/Decending", "Asc", "Set to false to sort decending.", true);
 }
Exemplo n.º 29
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.RegisterParam(new GHParam_DHr(), "Dhours", "Dhrs", "The Dhours to which to assign positions", GH_ParamAccess.list);
            pManager.Register_StringParam("Keys", "Keys", "The keys associated with the y-axis.  Values will be stacked in the order in which these keys are given.", GH_ParamAccess.list);
            pManager.Register_IntervalParam("Scale", "Scl", "An interval that associates hour values with the graph height.  In effect, sets the vertical scale of the graph.  Defaults to 0 ->(Max/Min) of the values found in all the given keys.", GH_ParamAccess.item);
            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_2DIntervalParam("Graph Dimensions", "Dim", "The dimensions of the resulting graph", GH_ParamAccess.item);
            pManager.Register_DoubleParam("Bar Width", "BWdth", "The width of each bar, as a percentage of available area (0 -> 1).  Defaults to 1.0", 1.0, GH_ParamAccess.item);

            this.Params.Input[2].Optional = true;
            this.Params.Input[3].Optional = true;
            this.Params.Input[4].Optional = true;
            this.Params.Input[5].Optional = true;
        }
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     base.RegisterOutputParams(pManager);
     pManager.Register_StringParam("t", "t", "Textual output");
 }