コード例 #1
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddColourParameter("Colour 1", "C1", "Start colour of gradient.", GH_ParamAccess.item, Color.Crimson);
     pManager.AddColourParameter("Colour 2", "C2", "End colour of gradient.", GH_ParamAccess.item, Color.Teal);
     pManager.AddPointParameter("Point 1", "P1", "Start point of gradient", GH_ParamAccess.item, new Point3d(0, 0, 0));
     pManager.AddPointParameter("Point 2", "P2", "End point of gradient", GH_ParamAccess.item, new Point3d(100, 100, 0));
 }
コード例 #2
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddParameter(new Param_PixelGrid());

            pManager.AddColourParameter("TrueColour", "T", "Color for true cells", GH_ParamAccess.item, Color.Black);
            pManager.AddColourParameter("FalseColour", "F", "Color for false cells", GH_ParamAccess.item, Color.White);
        }
コード例 #3
0
ファイル: LtComponent.cs プロジェクト: linluz/Lt
        }  // Contour Flood Analysis

        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddCurveParameter("等高线", "C", "要进行淹没分析的等高线", GH_ParamAccess.list);
            pManager.AddIntegerParameter("高程", "E", "水面的高程", GH_ParamAccess.item);
            pManager.AddBooleanParameter("摊平", "F", "是否要将水下等高线摊平到水平面,默认为false", GH_ParamAccess.item, false);
            pManager.AddColourParameter("水上色", "Cu", "未淹没区等高线的色彩", GH_ParamAccess.item, Color.White);
            pManager.AddColourParameter("水下色", "Cd", "被淹没区等高线的色彩", GH_ParamAccess.item, Color.FromArgb(59, 104, 156));
        }
コード例 #4
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Geometry", "G", "The geometry to preview (will be converted to Mesh)",
                               GH_ParamAccess.item);
     pManager.AddColourParameter("Front Face Color", "F", "The front face color", GH_ParamAccess.item,
                                 Color.Gray);
     pManager.AddColourParameter("Back Face Color", "B", "The back face color", GH_ParamAccess.item,
                                 Color.Red);
 }
コード例 #5
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("Elements to Adjust", "E", "The elements to adjust", GH_ParamAccess.item);
     pManager.AddColourParameter("Foreground", "FC", "The foreground color of the element", GH_ParamAccess.item);
     pManager[1].Optional = true;
     pManager.AddColourParameter("Background", "BC", "The background color of the element", GH_ParamAccess.item);
     pManager[2].Optional = true;
     pManager.AddNumberParameter("Font Size", "S", "The font size of the element", GH_ParamAccess.item);
     pManager[3].Optional = true;
 }
コード例 #6
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("Toggle", "T", "Toggles between user-defined and default canvas settings.", GH_ParamAccess.item);
     pManager.AddColourParameter("Background Color", "B", "Set canvas background color.", GH_ParamAccess.item);
     pManager.AddColourParameter("Grid Color", "G", "Set canvas grid color.", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Grid Cell Width", "W", "Set grid cell width.", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Grid Cell Height", "H", "Set grid cell height.", GH_ParamAccess.item);
     for (int i = 1; i < 5; i++)
     {
         pManager[i].Optional = true;
     }
 }
コード例 #7
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddColourParameter("Color Structural Elements", "Color Structural Elements", "Adjust Color for Structural Points/Lines/Areas", GH_ParamAccess.item, DrawUtil.DrawColorStructuralElements);
     pManager.AddColourParameter("Color Loads", "Color Loads", "Adjust Color for Point/Line/Area Load Forces and Moments", GH_ParamAccess.item, DrawUtil.DrawColorLoads);
     pManager.AddColourParameter("Color Supports", "Color Supports", "Adjust Color for Point and Line Supports", GH_ParamAccess.item, DrawUtil.DrawColorSupports);
     pManager.AddNumberParameter("Scale Factor Loads", "Scale Factor Loads", "Global Scale Factor for displayed SOFiSTiK Loads", GH_ParamAccess.item, DrawUtil.ScaleFactorLoads);
     pManager.AddNumberParameter("Density Factor Loads", "Density Factor Loads", "Global Density for Line/Area Loads", GH_ParamAccess.item, DrawUtil.DensityFactorLoads);
     pManager.AddNumberParameter("Scale Factor Supports", "Scale Factor Supports", "Global Scale Factor for displayed SOFiSTiK Support Symbols", GH_ParamAccess.item, DrawUtil.ScaleFactorSupports);
     pManager.AddNumberParameter("Density Factor Supports", "Density Factor Supports", "Global Density for Line Supports", GH_ParamAccess.item, DrawUtil.DensityFactorSupports);
     pManager.AddNumberParameter("Scale Factor LocalFrame", "Scale Factor for local Frame", "Global Scale Factor for displayed local coordinate frames", GH_ParamAccess.item, DrawUtil.ScaleFactorLocalFrame);
     pManager.AddNumberParameter("Density Factor LocalFrame", "Density Factor for local Frame", "Global Density Factor for displayed local coordinate frames", GH_ParamAccess.item, DrawUtil.DensityFactorLocalFrame);
 }
コード例 #8
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddColourParameter("Color Structural Elements", "Color Structural Elements", "Adjust Color for Structural Points/Lines/Areas", GH_ParamAccess.item, DrawUtil.DrawColorStructuralElements);
     pManager.AddColourParameter("Color Loads", "Color Loads", "Adjust Color for Point/Line/Area Load Forces and Moments", GH_ParamAccess.item, DrawUtil.DrawColorLoads);
     pManager.AddColourParameter("Color Supports", "Color Supports", "Adjust Color for Point and Line Supports", GH_ParamAccess.item, DrawUtil.DrawColorSupports);
     pManager.AddNumberParameter("Scale Factor Loads", "Scale Factor Loads", "Global Scale Factor for displayed SOFiSTiK Loads", GH_ParamAccess.item, DrawUtil.ScaleFactorLoads);
     pManager.AddNumberParameter("Density Factor Loads", "Density Factor Loads", "Global Density for Line/Area Loads", GH_ParamAccess.item, DrawUtil.DensityFactorLoads);
     pManager.AddNumberParameter("Scale Factor Supports", "Scale Factor Supports", "Global Scale Factor for displayed SOFiSTiK Support Symbols", GH_ParamAccess.item, DrawUtil.ScaleFactorSupports);
     pManager.AddNumberParameter("Density Factor Supports", "Density Factor Supports", "Global Density for Line Supports", GH_ParamAccess.item, DrawUtil.DensityFactorSupports);
     pManager.AddNumberParameter("Scale Factor LocalFrame", "Scale Factor LocalFrame", "Global Scale Factor for displayed local coordinate frames", GH_ParamAccess.item, DrawUtil.ScaleFactorLocalFrame);
     pManager.AddNumberParameter("Density Factor LocalFrame", "Density Factor LocalFrame", "Global Density Factor for displayed local coordinate frames", GH_ParamAccess.item, DrawUtil.DensityFactorLocalFrame);
     pManager.AddNumberParameter("Scale miscellaneous Elements", "Scale miscellaneous Elements", "Global Scale Factor for miscellaneous Elements", GH_ParamAccess.item, DrawUtil.ScaleFactorMisc);
     pManager.AddBooleanParameter("Show Info", "Show Info", "Show/Hide additional Information of Structural Elements when selected", GH_ParamAccess.item, DrawUtil.DrawInfo);
 }
コード例 #9
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("Text", "T", "Text content", GH_ParamAccess.item);
     pManager.AddTextParameter("Font", "F", "Text font", GH_ParamAccess.item);
     pManager.AddPointParameter("Location", "L", "Text location", GH_ParamAccess.item);
     pManager.AddColourParameter("Colour", "C", "Text colour", GH_ParamAccess.item, Color.Black);
 }
コード例 #10
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Curves", "C", "The curves to display", GH_ParamAccess.item);
     pManager.AddColourParameter("Color", "Col", "The color to use for direction display", GH_ParamAccess.item,
                                 Color.Red);
     pManager.AddIntegerParameter("Size", "S", "The size to display direction arrows", GH_ParamAccess.item, 20);
 }
コード例 #11
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Anchor Point", "A", "Anchor point for preview vector", GH_ParamAccess.item);
     pManager.AddVectorParameter("Vector", "V", "Vector to display", GH_ParamAccess.item);
     pManager.AddColourParameter("Colour", "C", "Colour of vector", GH_ParamAccess.item, Color.Black);
     pManager.AddIntegerParameter("Thickness", "T", "Thickness of display vector", GH_ParamAccess.item, 1);
 }
コード例 #12
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddNumberParameter("Width", "W", "Width of edge (in pixels).", GH_ParamAccess.item, 2);
            pManager.AddColourParameter("Colour", "C", "Colour of edge.", GH_ParamAccess.item, Color.Black);
            pManager.AddIntegerParameter("End Cap", "E", "End cap type", GH_ParamAccess.item, 0);
            pManager.AddIntegerParameter("Dash Cap", "D", "Dash cap type", GH_ParamAccess.item, 0);
            pManager.AddNumberParameter("Dash pattern", "P", "Dash pattern as a collection of dash+gap lengths.",
                                        GH_ParamAccess.list);

            pManager[4].Optional = true;

            Param_Integer cap0 = pManager[2] as Param_Integer;

            if (cap0 != null)
            {
                for (int i = 0; i < GdiCache._capNames.Length; i++)
                {
                    cap0.AddNamedValue(GdiCache._capNames[i], (int)GdiCache._capValues[i]);
                }
            }

            Param_Integer cap1 = pManager[3] as Param_Integer;

            if (cap1 != null)
            {
                for (int i = 0; i < GdiCache._dashCapNames.Length; i++)
                {
                    cap1.AddNamedValue(GdiCache._dashCapNames[i], (int)GdiCache._dashCapValues[i]);
                }
            }
        }
コード例 #13
0
 protected override void RegisterInputParams(GH_InputParamManager manager)
 {
     manager.AddTextParameter("Name", "N", string.Empty, GH_ParamAccess.item);
     manager.AddBooleanParameter("Override", "O", "Override Material", GH_ParamAccess.item, false);
     manager[manager.AddColourParameter("Color", "C", "Material color", GH_ParamAccess.item, System.Drawing.Color.White)].Optional = true;
     //manager[manager.AddParameter(new Grasshopper.Kernel.Parameters.Param_OGLShader(), "Shader", "S", "Material shading attributes", GH_ParamAccess.item)].Optional = true;
 }
コード例 #14
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddBooleanParameter("Bump Preview", "BE", "Set to true to bump edges slightly in front of meshes", GH_ParamAccess.item);
            pManager.AddBooleanParameter("Preview Mesh Edges", "ME", "Control preview of mesh edges", GH_ParamAccess.item);
            pManager.AddNumberParameter("Plane Radius", "PR", "Display size of planes in preview", GH_ParamAccess.item);
            var PSindex = pManager.AddIntegerParameter("Point Style", "PS", "Set the point display style", GH_ParamAccess.item);
            var PSParam = pManager[PSindex] as Param_Integer;

            PSParam.AddNamedValue("Simple", 0);
            PSParam.AddNamedValue("ControlPoint", 1);
            PSParam.AddNamedValue("ActivePoint", 2);
            PSParam.AddNamedValue("X", 3);
            pManager.AddColourParameter("Preview Color", "PC", "Geometry Preview Color", GH_ParamAccess.item);
            pManager.AddColourParameter("Selected Color", "PS", "The color for selected Geometry", GH_ParamAccess.item);
            pManager.AddBooleanParameter("Reset Preview Colors", "RPC", "Set to true to reset your preview colors to Grasshopper Defaults.", GH_ParamAccess.item);
            Enumerable.Range(0, 7).ToList().ForEach(i => pManager[i].Optional = true);
        }
コード例 #15
0
ファイル: CreateLayer.cs プロジェクト: KaivnD/NoahComponents
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("物件", "G", "与Exporter搭配,指定输出物件", GH_ParamAccess.item);
     pManager.AddTextParameter("图层名称", "L", "与Exporter搭配,指定输出物件的图层名称", GH_ParamAccess.item, "默认值");
     pManager.AddColourParameter("图层颜色", "C", "与Exporter搭配,指定输出物件的图层颜色", GH_ParamAccess.item, Color.Black);
     pManager[1].Optional = true;
     pManager[2].Optional = true;
 }
コード例 #16
0
ファイル: Cooker.cs プロジェクト: KaivnD/NoahComponents
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("GH物件", "G", "需要Cook的GH物件", GH_ParamAccess.item);
     pManager.AddTextParameter("图层名字", "L", "Rhino文档相应图层,可以不事先创建,可为某个图层的子图层(父图层::子图层)", GH_ParamAccess.item);
     pManager.AddCurveParameter("填充曲线", "H", "需要填充的曲线列表", GH_ParamAccess.list);
     pManager.AddColourParameter("图层颜色", "C", "该图层的颜色", GH_ParamAccess.item, Color.Black);
     pManager[0].Optional = true;
     pManager[2].Optional = true;
 }
コード例 #17
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddColourParameter("MarkerColor", "Color", "The color, or colors, of the markers this component should track", GH_ParamAccess.list);
     pManager.AddNumberParameter("ColorFuzz", "Fuzz", "The amount of leeway to use when matching the color. A higher value will identify more similar colors",
                                 GH_ParamAccess.item);
     pManager.AddGenericParameter("SandwormOptions", "SWO", "Setup & Calibration options", GH_ParamAccess.item);
     pManager[0].Optional = false;
     pManager[1].Optional = true;
     pManager[2].Optional = true;
 }
コード例 #18
0
ファイル: GH_CustomDisplay.cs プロジェクト: tudo-tk/Eagle
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddGeometryParameter("Geoemtry", "G", "Geoemtry", GH_ParamAccess.tree);
            pManager.AddColourParameter("Color", "C", "Color for geometry", GH_ParamAccess.list);
            pManager.AddIntegerParameter("Style", "DS", "Rhino Display Style", GH_ParamAccess.item);
            pManager.AddIntegerParameter("Size", "S", "Size of geometry", GH_ParamAccess.item);

            pManager[2].Optional = true;
            pManager[3].Optional = true;
        }
コード例 #19
0
ファイル: Dict_Color.cs プロジェクト: henrikevers/Volvox
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddParameter(new Param_Cloud {
         Name = "Cloud", NickName = "C", Description = "Point Cloud", Optional = false
     });
     pManager.AddTextParameter("Key", "K", "Key", GH_ParamAccess.item);
     pManager.AddNumberParameter("Values", "V", "Values", GH_ParamAccess.list);
     pManager.AddColourParameter("Colors", "C", "Colors", GH_ParamAccess.list);
     pManager.AddNumberParameter("StepSize", "S", "Step Size of Gradient", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
 }
コード例 #20
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("GSA Model", "GSA", "GSA model containing some results", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Load Case", "LC", "Load Case (default 1)", GH_ParamAccess.item, 1);
     pManager.AddTextParameter("Element filter list", "El", "Filter import by list." + System.Environment.NewLine +
                               "Element list should take the form:" + System.Environment.NewLine +
                               " 1 11 to 20 step 2 P1 not (G1 to G6 step 3) P11 not (PA PB1 PS2 PM3 PA4 M1)" + System.Environment.NewLine +
                               "Refer to GSA help file for definition of lists and full vocabulary.", GH_ParamAccess.item, "All");
     pManager.AddColourParameter("Colour", "Co", "Optional list of colours to override default colours" +
                                 System.Environment.NewLine + "A new gradient will be created from the input list of colours", GH_ParamAccess.list);
     pManager[1].Optional = true;
     pManager[2].Optional = true;
     pManager[3].Optional = true;
 }
コード例 #21
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "Mesh", "Mesh to recolor", GH_ParamAccess.item);
     pManager.AddNumberParameter("Result", "Result", "Result with the same number of faces as mesh",
                                 GH_ParamAccess.list);
     pManager.AddColourParameter("List Of Colors", "Colors", "List of colours", GH_ParamAccess.list);
     pManager.AddNumberParameter("Lower Boundary", "LowBound",
                                 "Optional lower bound for the coloring. Default is 0.0", GH_ParamAccess.item);
     pManager.AddNumberParameter("Upper Boundary", "UpperBound",
                                 "Optional upper bound for the coloring. Default is the max value of Result.", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Segments", "Segments", "Number of segments to divide the output colors in.",
                                  GH_ParamAccess.item, 10);
     pManager[3].Optional = true;
     pManager[4].Optional = true;
     pManager[5].Optional = true;
 }
コード例 #22
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "Mesh", "Mesh", GH_ParamAccess.item);
     pManager.AddIntegerParameter("CurvatureType", "CurvatureType", "0 = Min, 1 = Max, 2 = Gaussian, 3 = Mean, 4 = Absolute, 5 = Difference, 6 = Rms  ", GH_ParamAccess.item, 3);
     //pManager.AddBooleanParameter("Ring / Sphere", "Ring / Sphere", "Ring = true, Sphere = false", GH_ParamAccess.item, true);
     pManager.AddNumberParameter(" Radius", " Radius", " Radius", GH_ParamAccess.item, 2);
     pManager.AddIntegerParameter("Method", "Method", "0 = Quadratic fitting 3 coefficients, 1 = Quadratic fitting 4 coefficients, 2 = Quadratic fitting 6 coefficients, 3 = Cubic fitting 7 coefficients ", GH_ParamAccess.item, 1);
     //pManager.AddBooleanParameter("Static", "Static", "Static", GH_ParamAccess.item, false);
     pManager.AddIntervalParameter("Interval", "Interval", "Interval", GH_ParamAccess.item, new Interval(0, 0));
     pManager.AddColourParameter("3Colors", "3Colors", "3 colors", GH_ParamAccess.list);
     pManager.AddBooleanParameter("On", "On", "On", GH_ParamAccess.item, true);
     pManager[0].Optional = true;
     pManager[4].Optional = true;
     pManager[5].Optional = true;
     pManager[6].Optional = true;
 }
コード例 #23
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("GSA Model", "GSA", "GSA model containing some results", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Load Case", "LC", "Load Case (default 1)", GH_ParamAccess.item, 1);
     pManager.AddTextParameter("Node filter list", "No", "Filter results by list." + System.Environment.NewLine +
                               "Node list should take the form:" + System.Environment.NewLine +
                               " 1 11 to 72 step 2 not (XY3 31 to 45)" + System.Environment.NewLine +
                               "Refer to GSA help file for definition of lists and full vocabulary.", GH_ParamAccess.item, "All");
     pManager.AddColourParameter("Colour", "Co", "Optional list of colours to override default colours." +
                                 System.Environment.NewLine + "A new gradient will be created from the input list of colours", GH_ParamAccess.list);
     pManager.AddNumberParameter("Scalar", "x:X", "Scale the result display size", GH_ParamAccess.item, 10);
     pManager[1].Optional = true;
     pManager[2].Optional = true;
     pManager[3].Optional = true;
     pManager[4].Optional = true;
 }
コード例 #24
0
ファイル: LtComponent.cs プロジェクト: linluz/Lt
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("地形", "Mt", "要进行坡向分析的山地地形网格", GH_ParamAccess.item);
     pManager.AddColourParameter("色彩", "C", "各向的色彩,请按上、北、东北、东、东南、南、西南、西、西北的顺序连入9个色彩", GH_ParamAccess.list,
                                 new List <Color>
     {
         Color.FromArgb(219, 219, 219),
         Color.FromArgb(232, 77, 77),
         Color.FromArgb(230, 168, 55),
         Color.FromArgb(227, 227, 59),
         Color.FromArgb(49, 222, 49),
         Color.FromArgb(39, 219, 189),
         Color.FromArgb(51, 162, 222),
         Color.FromArgb(48, 48, 217),
         Color.FromArgb(217, 46, 217)
     });
 }
コード例 #25
0
        protected override void RegisterInputParams(GH_InputParamManager mgr)
        {
            List <Color> defcol = new List <Color>
            {
                Color.Black,
                Color.White
            };
            List <double> defstop = new List <double>
            {
                0.0,
                1.0
            };

            base.RegisterInputParams(mgr);
            cpidx = mgr.AddColourParameter("Stop Colours", "SC", "List of colours", GH_ParamAccess.list, defcol);
            spidx = mgr.AddNumberParameter("Stop Positions", "SP", "List of stop positions", GH_ParamAccess.list, defstop);
        }
コード例 #26
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            var shapeParam = new GdiGooParameter();

            pManager.AddParameter(shapeParam, "Shapes", "S", "Shapes to draw", GH_ParamAccess.list);
            pManager.AddRectangleParameter("Size", "S", "Bitmap size and orientation", GH_ParamAccess.item,
                                           new Rectangle3d(Plane.WorldXY, 100, 100));
            pManager.AddNumberParameter("Factor", "F", "Image scaling factor (pixels per Rhino unit).", GH_ParamAccess.item, 1);

            pManager.AddColourParameter("Background", "B", "Background colour", GH_ParamAccess.item, Color.Transparent);
            pManager.AddBooleanParameter("Anti-alias", "A", "Anti-alias smoothing flag", GH_ParamAccess.item, true);

            var fileParam = new Param_FilePath();

            fileParam.FileFilter = "Image files (*.png)|*.png";
            pManager.AddParameter(fileParam, "File location", "L", "Save location of image", GH_ParamAccess.item);
        }
コード例 #27
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddTextParameter("Text", "T", "Text content", GH_ParamAccess.item);
            pManager.AddTextParameter("Font", "F", "Text font", GH_ParamAccess.item);
            pManager.AddPointParameter("Location", "L", "Text location", GH_ParamAccess.item);
            pManager.AddColourParameter("Colour", "C", "Text colour", GH_ParamAccess.item, Color.Black);
            pManager.AddNumberParameter("Horizontal", "H", "Normalised horizontal offset", GH_ParamAccess.item, 0.0);
            pManager.AddNumberParameter("Vertical", "V", "Normalised vertical offset", GH_ParamAccess.item, 0.0);
            pManager.AddAngleParameter("Angle", "A", "Rotation angle.", GH_ParamAccess.item, 0.0);

            Param_Number angle = pManager[6] as Param_Number;

            if (angle != null)
            {
                angle.UseDegrees = true;
            }
        }
コード例 #28
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddNumberParameter("Number", "ID", "Property number PA# (default appended to model = 0). Will overwrite any existing property with same number", GH_ParamAccess.item, 0);
            pManager.AddTextParameter("Name", "Na", "GSA 2D Property Name", GH_ParamAccess.item);
            pManager.AddColourParameter("Colour", "Col", "GSA 2D Property Colour)", GH_ParamAccess.item);
            pManager[0].Optional = true;
            pManager[1].Optional = true;
            pManager[2].Optional = true;
            if (first)
            {
                first = false;
                //register input parameter
                Params.RegisterInputParam(new Param_Integer());
                Params.RegisterInputParam(new Param_String());
                Params.RegisterInputParam(new Param_Integer());
                Params.RegisterInputParam(new Param_Integer());
                Params.RegisterInputParam(new Param_Number());

                (this as IGH_VariableParameterComponent).VariableParameterMaintenance();
                Params.OnParametersChanged();
                ExpireSolution(true);
            }
        }
コード例 #29
0
ファイル: LtComponent.cs プロジェクト: linluz/Lt
        }  //Flooded Terrain

        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddMeshParameter("地形", "Mt", "要被淹没的山地地形网格", GH_ParamAccess.item);
            pManager.AddNumberParameter("高度", "E", "淹没地形的水平面高度", GH_ParamAccess.item);
            pManager.AddColourParameter("色彩", "C", "被水淹没区域的色彩", GH_ParamAccess.item, Color.FromArgb(52, 58, 107));
        }
コード例 #30
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Anchor Point", "A", "Anchor point for preview vector", GH_ParamAccess.item);
     pManager.AddVectorParameter("Vector", "V", "Vector to display", GH_ParamAccess.item);
     pManager.AddColourParameter("Colour", "C", "Colour of vector", GH_ParamAccess.item, Color.Black);
     pManager.AddIntegerParameter("Thickness", "T", "Thickness of display vector", GH_ParamAccess.item, 1);
 }
コード例 #31
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddColourParameter("Colour", "C", "Colour of fill.", GH_ParamAccess.item, Color.Black);
 }