コード例 #1
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("StartingMeshes", "StartingMeshes", "StartingMeshes", GH_ParamAccess.item);
     pManager.AddColourParameter("MinColor", "MinColor", "MinColor", GH_ParamAccess.item);
     pManager.AddColourParameter("MaxColor", "MaxColor", "MaxColor", GH_ParamAccess.item);
     pManager.AddNumberParameter("Range", "Range", "Range", GH_ParamAccess.item);
 }
コード例 #2
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddColourParameter("Color", "C", "The color of the sky", GH_ParamAccess.item, Color.LightSkyBlue);
     pManager.AddColourParameter("GroundColor", "G", "The color of the ground", GH_ParamAccess.item, Color.Tan);
     pManager.AddNumberParameter("Intensity", "I", "The intensity of the light", GH_ParamAccess.item, 0.5);
     pManager.AddTextParameter("Name", "N", "The name of the light", GH_ParamAccess.item, "");
 }
コード例 #3
0
ファイル: Fill.cs プロジェクト: shapediver/Aviary
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddGenericParameter("Bitmap", "B", "---", GH_ParamAccess.item);
            pManager[0].Optional = true;
            Param_GenericObject paramGen = (Param_GenericObject)Params.Input[0];

            paramGen.PersistentData.Append(new GH_ObjectWrapper(new Bitmap(100, 100)));

            pManager.AddIntegerParameter("Mode", "M", "---", GH_ParamAccess.item, 0);
            pManager[1].Optional = true;
            pManager.AddColourParameter("Target", "T", "...", GH_ParamAccess.item, System.Drawing.Color.Red);
            pManager[2].Optional = true;
            pManager.AddColourParameter("Fill", "F", "...", GH_ParamAccess.item, System.Drawing.Color.Black);
            pManager[3].Optional = true;
            pManager.AddIntegerParameter("Tolerance", "P", "...", GH_ParamAccess.item, 10);
            pManager[4].Optional = true;
            pManager.AddPointParameter("Location", "L", "...", GH_ParamAccess.item, new Point3d(1, 1, 0));
            pManager[5].Optional = true;


            Param_Integer param = (Param_Integer)Params.Input[1];

            param.AddNamedValue(modes[0], 0);
            param.AddNamedValue(modes[1], 1);
        }
コード例 #4
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddColourParameter("Default Color", "D", "The color displayed on the picker at load. Optional.", GH_ParamAccess.item);
     pManager[0].Optional = true;
     pManager.AddColourParameter("Available Colors", "C", "An optional list of possible colors to limit the user's selection. \nIf left blank, the standard set of colors will display.", GH_ParamAccess.list);
     pManager[1].Optional = true;
 }
コード例 #5
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddGenericParameter("Image", "Img", "Image to add Title To", GH_ParamAccess.item);
            pManager.AddTextParameter("Text", "T", "Text to add as Title", GH_ParamAccess.item);
            pManager.AddIntegerParameter("Align", "A", "Alignment of Text", GH_ParamAccess.item, 0);

            Param_Integer AlignParam = pManager[2] as Param_Integer;

            AlignParam.AddNamedValue("Top Left", 0);
            AlignParam.AddNamedValue("Top Mid", 1);
            AlignParam.AddNamedValue("Top Right", 2);
            AlignParam.AddNamedValue("Bot Left", 3);
            AlignParam.AddNamedValue("Bot Mid", 4);
            AlignParam.AddNamedValue("Bot Right", 5);

            pManager.AddIntegerParameter("Size", "S", "Size as a percentage of Height. 10 = 10%", GH_ParamAccess.item, 10);

            Param_Integer SizeParam = pManager[3] as Param_Integer;

            SizeParam.AddNamedValue("5%", 5);
            SizeParam.AddNamedValue("7%", 7);
            SizeParam.AddNamedValue("10%", 10);
            SizeParam.AddNamedValue("15%", 15);
            SizeParam.AddNamedValue("20%", 20);
            SizeParam.AddNamedValue("25%", 25);
            SizeParam.AddNamedValue("50%", 50);

            pManager.AddColourParameter("Text Color", "tC", "Text Color", GH_ParamAccess.item, Color.Black);
            pManager.AddColourParameter("Background Color", "bC", "Background Color", GH_ParamAccess.item, Color.White);
            pManager.AddTextParameter("Font", "F", "Font to use", GH_ParamAccess.item, "Calibri");
        }
コード例 #6
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddGenericParameter("Canvas", "cnv", "Image to use as a reference", GH_ParamAccess.item);
            pManager.AddColourParameter("Start Color", "Cs", "Color to use on the start of the Gradient", GH_ParamAccess.item, Color.Black);
            pManager.AddColourParameter("Start Color", "Ce", "Color to use on the start of the Gradient", GH_ParamAccess.item, Color.White);
            pManager.AddIntegerParameter("Angle", "A", "Angle of the Gradient", GH_ParamAccess.item, 0);

            Param_Integer AngleParam = pManager[3] as Param_Integer;

            AngleParam.AddNamedValue("0 Degrees", 0);
            AngleParam.AddNamedValue("45 Degrees", 45);
            AngleParam.AddNamedValue("90 Degrees", 90);
            AngleParam.AddNamedValue("135 Degrees", 135);
            AngleParam.AddNamedValue("180 Degrees", 180);

            pManager.AddIntegerParameter("Factor", "F", "Factor in percentage", GH_ParamAccess.item, 50);

            Param_Integer FactorParam = pManager[4] as Param_Integer;

            FactorParam.AddNamedValue("10 Percent", 10);
            FactorParam.AddNamedValue("20 Percent", 20);
            FactorParam.AddNamedValue("30 Percent", 30);
            FactorParam.AddNamedValue("40 Percent", 40);
            FactorParam.AddNamedValue("50 Percent", 50);
        }
コード例 #7
0
ファイル: FillPattern.cs プロジェクト: pm-Architect/Aviary
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddGenericParameter("Object", "O", "Wind Objects", GH_ParamAccess.item);
            pManager.AddIntegerParameter("Pattern", "P", "Pattern", GH_ParamAccess.item, 0);
            pManager[1].Optional = true;
            pManager.AddNumberParameter("Scale", "S", "Scale", GH_ParamAccess.item, 1);
            pManager[2].Optional = true;
            pManager.AddColourParameter("Fore", "F", "---", GH_ParamAccess.item, wColors.LightGray.ToDrawingColor());
            pManager[3].Optional = true;
            pManager.AddColourParameter("Back", "B", "---", GH_ParamAccess.item, wColors.VeryLightGray.ToDrawingColor());
            pManager[4].Optional = true;

            Param_GenericObject paramGen = (Param_GenericObject)Params.Input[0];

            paramGen.PersistentData.Append(new GH_ObjectWrapper(new pSpacer(new GUIDtoAlpha(Convert.ToString(this.Attributes.InstanceGuid.ToString() + Convert.ToString(this.RunCount)), false).Text)));

            Param_Integer param = (Param_Integer)pManager[1];

            param.AddNamedValue("Grid", 0);
            param.AddNamedValue("Diamond", 1);
            param.AddNamedValue("Triangular", 2);
            param.AddNamedValue("Hexagonal", 3);
            param.AddNamedValue("Stagger", 4);
            param.AddNamedValue("Checker", 5);
            param.AddNamedValue("Solid Diamond", 6);
            param.AddNamedValue("Trellis", 7);
            param.AddNamedValue("Dots", 8);
        }
コード例 #8
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddColourParameter("Diffuse", "D", "Diffuse", GH_ParamAccess.item, Color.Aqua);
            pManager.AddColourParameter("Emission", "E", "Emission", GH_ParamAccess.item, Color.Aqua);
            pManager.AddColourParameter("Specular", "Sp", "Specular", GH_ParamAccess.item, Color.White);
            pManager.AddNumberParameter("Shine", "S", "Shine", GH_ParamAccess.item, 0);
            pManager.AddNumberParameter("Transparency", "T", "Transparency", GH_ParamAccess.item, 0);

            Param_FilePath Dt = new Param_FilePath();

            Dt.Optional = true;
            pManager.AddParameter(Dt, "DiffuseTexture", "Dt", "DiffuseTexture", GH_ParamAccess.item);

            Param_FilePath Tt = new Param_FilePath();

            Tt.Optional = true;
            pManager.AddParameter(Tt, "TransparencyTexture", "Tt", "TransparencyTexture", GH_ParamAccess.item);

            Param_FilePath Bt = new Param_FilePath();

            Bt.Optional = true;
            pManager.AddParameter(Bt, "BumpTexture", "Bt", "BumpTexutre", GH_ParamAccess.item);

            Param_FilePath Et = new Param_FilePath();

            Et.Optional = true;
            pManager.AddParameter(Et, "EnvironmentTexture", "Et", "EnvironmentTexture", GH_ParamAccess.item);
        }
コード例 #9
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("image", "img", "image to manipulate", GH_ParamAccess.item);
     pManager.AddColourParameter("Colour", "Cs", "Colour to Search for", GH_ParamAccess.item, Color.Black);
     pManager.AddColourParameter("Colour", "Ch", "Colour to use for Highlighting", GH_ParamAccess.item, Color.Black);
     pManager.AddIntegerParameter("Tolerance", "T", "The Size of the Ranges that this component is going to use", GH_ParamAccess.item, 0);
     pManager.AddBooleanParameter("Direction", "D", "Invert Set", GH_ParamAccess.item, true);
 }
コード例 #10
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("BaseSrf", "srf", "base surface", GH_ParamAccess.item);
     pManager.AddNumberParameter("Data", "data", "Main data to display", GH_ParamAccess.list);
     pManager.AddPointParameter("BasePoints", "pt", "base point for each data to display", GH_ParamAccess.list);
     pManager.AddColourParameter("Colour 0", "col0", "First reference Colour", GH_ParamAccess.item);
     pManager.AddColourParameter("Colour 1", "col1", "Second reference Colour", GH_ParamAccess.item);
 }
コード例 #11
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.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, System.Drawing.Color.Black);
     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;
 }
コード例 #12
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Points", "pts", "Points To Show", GH_ParamAccess.list);
     pManager.AddPlaneParameter("Reference planes", "pln", "Reference planes", GH_ParamAccess.list, Plane.WorldXY);
     pManager.AddNumberParameter("Range", "r", "Pt influence range", GH_ParamAccess.list, 1.00);
     pManager.AddIntegerParameter("Density", "d", "Filed Density", GH_ParamAccess.list, 10);
     pManager.AddColourParameter("Colour 0", "col0", "First reference Colour", GH_ParamAccess.item);
     pManager.AddColourParameter("Colour 1", "col1", "Second reference Colour", GH_ParamAccess.item);
 }
コード例 #13
0
ファイル: NodeMesh.cs プロジェクト: feklee/san
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Point", "P", "Point in location of node", GH_ParamAccess.item);
     pManager[0].Optional = true;
     pManager.AddColourParameter("Axis", "A", "Axis of node", GH_ParamAccess.item);
     pManager[1].Optional = true;
     pManager.AddColourParameter("Colors", "C", "Colors of node", GH_ParamAccess.list);
     pManager[2].Optional = true;
 }
コード例 #14
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Curves", "Curves", "Curves", GH_ParamAccess.list);
     pManager.AddMeshParameter("StartingMeshes", "StartingMeshes", "StartingMeshes", GH_ParamAccess.item);
     pManager.AddColourParameter("FarthestColour", "FarthestColour", "FarthestColour", GH_ParamAccess.item);
     pManager.AddColourParameter("ClosestColour", "ClosestColour", "ClosestColour", GH_ParamAccess.item);
     pManager.AddNumberParameter("Range", "Range", "Range", GH_ParamAccess.item);
     pManager.AddNumberParameter("Divide", "Divide", "Divide", GH_ParamAccess.item);
 }
コード例 #15
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("BaseCurve", "crv", "base curve", GH_ParamAccess.item);
     pManager.AddNumberParameter("Data", "data", "Main data to display", GH_ParamAccess.list);
     pManager.AddNumberParameter("OptionalData", "dataOp", "Secondary data / Curve subdivision", GH_ParamAccess.list);
     pManager[2].Optional = true;
     pManager.AddColourParameter("Colour 0", "col0", "First reference Colour", GH_ParamAccess.item);
     pManager.AddColourParameter("Colour 1", "col1", "Second reference Colour", GH_ParamAccess.item);
     pManager.AddAngleParameter("RotationAngleInDegree", "degA", "Rotation angle for the graph", GH_ParamAccess.list, 0.00);
 }
コード例 #16
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("GANresult", "", "", GH_ParamAccess.item);
     pManager.AddParameter(new PatternFromSampleParam());
     pManager.AddColourParameter("Empty", "", "", GH_ParamAccess.item);
     pManager.AddColourParameter("Half", "", "", GH_ParamAccess.item);
     pManager.AddColourParameter("Full", "", "", GH_ParamAccess.item);
     pManager.AddNumberParameter("Width", "", "", GH_ParamAccess.item);
     pManager.AddNumberParameter("Height", "", "", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Save to file", "", "", GH_ParamAccess.item);
 }
コード例 #17
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddColourParameter("Color", "C", "Diffuse color of the material", GH_ParamAccess.item);
     pManager.AddColourParameter("Ambient Color", "[aC]", "Ambient color of the material, multiplied by the color of the ambient light in the scene.  Default is black", GH_ParamAccess.item, System.Drawing.Color.Black);
     pManager.AddColourParameter("Emissive Color", "[eC]", "Emissive (light) color of the material, essentially a solid color unaffected by other lighting. Default is black.", GH_ParamAccess.item, System.Drawing.Color.Black);
     pManager.AddNumberParameter("[Opacity]", "[O]", "Number in the range of 0.0 - 1.0 indicating how transparent the material is. A value of 0.0 indicates fully transparent, 1.0 is fully opaque.", GH_ParamAccess.item, 1.0);
     pManager.AddBooleanParameter("Smooth edges?", "[s]", "Smooth edges between faces?  If false, mesh will appear faceted.", GH_ParamAccess.item, true);
     pManager[1].Optional = true;
     pManager[2].Optional = true;
     pManager[3].Optional = true;
     pManager[4].Optional = true;
 }
コード例 #18
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddColourParameter("Color", "C", "Material's color", GH_ParamAccess.item, Color.CornflowerBlue);
     pManager.AddNumberParameter("Opacity", "O", "Material's opacity (0 = transparent, 1 = opaque)", GH_ParamAccess.item, 1);
     pManager.AddNumberParameter("Roughness", "R", "Material's roughness", GH_ParamAccess.item, 1);
     pManager.AddNumberParameter("Metalness", "M", "Material's metalness", GH_ParamAccess.item, 0.5);
     pManager.AddColourParameter("Emissive", "Ec", "Emissive color", GH_ParamAccess.item, Color.Black);
     pManager.AddNumberParameter("EmissiveIntensity", "Ei", "Emissive intensity", GH_ParamAccess.item, 1);
     pManager.AddBooleanParameter("Wireframe", "W", "Display as wireframe", GH_ParamAccess.item, false);
     pManager.AddTextParameter("WireframeLineJoin", "Wj", "Style of wireframe joins ('round', 'miter', or 'bevel'", GH_ParamAccess.item, "round");
     pManager.AddNumberParameter("WireframeLineWidth", "Wl", "The width of the wireframe line", GH_ParamAccess.item, 1);
 }
コード例 #19
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddColourParameter("BarColor", "BC", Resources.Style_BarColorDesc, GH_ParamAccess.item, Color.FromArgb(50, 130, 190));
     pManager.AddColourParameter("BarHoverColor", "HC", Resources.Style_HoverColorDesc, GH_ParamAccess.item, Color.FromArgb(255, 0, 0));
     pManager.AddGenericParameter("Address", "A", Resources.Style_AddressDesc, GH_ParamAccess.item);
     pManager[2].Optional = true;
     pManager.AddGenericParameter("Margins", "M", Resources.Style_MarginsDesc, GH_ParamAccess.item);
     pManager[3].Optional = true;
     pManager.AddIntegerParameter("Width", "W", Resources.Style_WidthDesc, GH_ParamAccess.item, 1000);
     pManager.AddIntegerParameter("Height", "H", Resources.Style_HeightDesc, GH_ParamAccess.item, 500);
     pManager.AddTextParameter("XAxisLabel", "L", Resources.Style_YAxisLabelDesc, GH_ParamAccess.item, "Label");
 }
コード例 #20
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddColourParameter("HoverColor", "HC", Resources.Style_HoverColorDesc, GH_ParamAccess.item, Color.FromArgb(255, 0, 0));
     pManager.AddColourParameter("Colors", "C", Resources.Style_ColorsDesc, GH_ParamAccess.list);
     pManager[1].Optional = true;
     pManager.AddGenericParameter("Address", "A", Resources.Style_AddressDesc, GH_ParamAccess.item);
     pManager[2].Optional = true;
     pManager.AddGenericParameter("Margins", "M", Resources.Style_MarginsDesc, GH_ParamAccess.item);
     pManager[3].Optional = true;
     pManager.AddIntegerParameter("Width", "W", Resources.Style_WidthDesc, GH_ParamAccess.item, 400);
     pManager.AddBooleanParameter("Labels", "L", Resources.Style_LabelsDesc, GH_ParamAccess.item, true);
 }
コード例 #21
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            //The first input should be the UI element itself -as direct output from
            // the corresponding "Create" Component
            pManager.AddGenericParameter("Color picker to modify", "CP", "The color picker object to modify", GH_ParamAccess.item);
            pManager.AddColourParameter("Default Color", "D", "The color displayed on the picker. Optional.", GH_ParamAccess.item);
            pManager[1].Optional = true;
            pManager.AddColourParameter("Available Colors", "C", "An optional list of possible colors to limit the user's selection. \nIf left blank, the existing set of available colors will not be changed.", GH_ParamAccess.list);
            pManager[2].Optional = true;

            //Add any additional variables necessary to modify the content of the element.
            //These usually look an awful lot like the Input Params of the "Create" component.
        }
コード例 #22
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddParameter(new PatternHistoryParam(), "Wave Function Collapsed", "WFC", "Wave Function Collapse with history", GH_ParamAccess.item);
     pManager.AddNumberParameter("Timelapse", "Timelapse", "Timelapse to visualise", GH_ParamAccess.item);
     pManager.AddSurfaceParameter("TILE 01", "TILE 01", "First tile type here", GH_ParamAccess.item);
     pManager.AddSurfaceParameter("TILE 02", "TILE 02", "First tile type here", GH_ParamAccess.item);
     pManager.AddSurfaceParameter("TILE 03", "TILE 03", "First tile type here", GH_ParamAccess.item);
     pManager.AddNumberParameter("X WAVE LOCATION", "X", "X", GH_ParamAccess.item);
     pManager.AddNumberParameter("Y WAVE LOCATION", "Y", "Y", GH_ParamAccess.item);
     pManager.AddColourParameter("tile 01 colour", "", "", GH_ParamAccess.item);
     pManager.AddColourParameter("tile 02 colour", "", "", GH_ParamAccess.item);
     pManager.AddColourParameter("tile empty", "", "", GH_ParamAccess.item);
 }
コード例 #23
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddColourParameter("color", "C", "Material's color", GH_ParamAccess.item, Color.White);
     pManager.AddNumberParameter("opacity", "O", "Material's opacity (0 = transparent, 1 = opaque)", GH_ParamAccess.item, 1);
     pManager.AddNumberParameter("roughness", "R", "Material's roughness", GH_ParamAccess.item, 1);
     pManager.AddNumberParameter("metalness", "M", "Material's metalness", GH_ParamAccess.item, 0.5);
     pManager.AddColourParameter("emissive", "Ec", "Emissive color", GH_ParamAccess.item, Color.Black);
     pManager.AddNumberParameter("emissiveIntensity", "Ei", "Emissive intensity", GH_ParamAccess.item, 1);
     pManager.AddGenericParameter("wireframe", "W", "Display as wireframe", GH_ParamAccess.item);
     pManager.AddGenericParameter("maps", "M", "Add material maps", GH_ParamAccess.item);
     pManager[6].Optional = true;
     pManager[7].Optional = true;
 }
コード例 #24
0
ファイル: NGon.cs プロジェクト: petrasvestartas/NGon
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddMeshParameter("Mesh", "M", "Mesh", GH_ParamAccess.tree);
            pManager.AddColourParameter("Front", "F", "Front Color", GH_ParamAccess.item);
            pManager.AddColourParameter("Back", "B", "Back Color", GH_ParamAccess.item);
            //pManager.AddIntegerParameter("LineWeight", "W", "LineWeight", GH_ParamAccess.item, 1);
            pManager.AddColourParameter("LineColor", "C", "LineColor", GH_ParamAccess.item, System.Drawing.Color.Black);

            pManager[1].Optional = true;
            pManager[2].Optional = true;
            pManager[3].Optional = true;
            //pManager[4].Optional = true;
        }
コード例 #25
0
        //ToolStripMenuItem menuItemCaps = new ToolStripMenuItem();

        //private bool caps = true;

        //public bool Caps
        //{
        //    get { return caps; }
        //    set
        //    {
        //        caps = value;
        //        if ((caps))
        //        {
        //            Message = "Set Caps Off";
        //        }
        //        else
        //        {
        //            Message = "Set Caps On";
        //        }
        //    }
        //}


        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            //0
            pManager.AddGenericParameter("Grids", "Grids", "Grids", GH_ParamAccess.list);

            //1
            pManager.AddNumberParameter("Results", "Results", "Results", GH_ParamAccess.tree);

            //2
            i_inputGradient = pManager.AddColourParameter("_Gradient", "_Gradient", "Gradient.\nPro tip:You can set the min and max in the gradient component! :-)", GH_ParamAccess.item);
            pManager[i_inputGradient].Optional = true;

            ////3
            //var inputRange = pManager.AddTextParameter("GradientRange", "GradientRange*", "Range of the colors", GH_ParamAccess.item, String.Empty);
            //pManager[inputRange].Optional = true;

            //4
            //pManager.AddBooleanParameter("Cap", "Cap*", "Cap min and max?\nBUGGY ON THE ISOCURVES. LEAVE DEFAULT.", GH_ParamAccess.item, false);



            //5
            i_inputSelectorMin = pManager.AddColourParameter("_MinColor", "_MinColor", "MinColor input to cap colors below the gradient max", GH_ParamAccess.item, Color.DarkGray);
            pManager[i_inputSelectorMin].Optional = true;

            //6
            i_inputSelecterMax = pManager.AddColourParameter("_MaxColor", "_MaxColor", "MaxColor input to cap colors above the gradient max", GH_ParamAccess.item, Color.LightGray);
            pManager[i_inputSelecterMax].Optional = true;

            //7
            i_inputSelectorSectionType = pManager.AddGenericParameter("_Section Type", "_Section Type", "Connect a section type component", GH_ParamAccess.item);
            pManager[i_inputSelectorSectionType].Optional = true;



            //pManager.AddIntegerParameter("MaxCount", "MaxCount", "MaxCount", GH_ParamAccess.item);

            ////7
            //inputStepSize = pManager.AddIntegerParameter("StepSize", "S", "Steps of colors, default = 10", GH_ParamAccess.item, 1);
            //pManager[inputStepSize].Optional = true;
            //var cfParam = pManager[inputStepSize] as Param_Integer;
            //cfParam.AddNamedValue("Auto", 0);
            //cfParam.AddNamedValue("0.1", -1);
            //cfParam.AddNamedValue("1", 1);
            //cfParam.AddNamedValue("10", 10);
            //cfParam.AddNamedValue("100", 100);

            //8
            //inputStep = pManager.AddIntegerParameter("Steps", "S", "Total steps. This will overrule the StepSize. Do not connect both!", GH_ParamAccess.item, 1);
            //pManager[inputStep].Optional = true;
        }
コード例 #26
0
ファイル: HatchPen.cs プロジェクト: psarras/Image-Tools
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddColourParameter("Color", "Cf", "Colour to use for foreground", GH_ParamAccess.item, Color.White);
            pManager.AddColourParameter("Color", "Cb", "Colour to use for background", GH_ParamAccess.item, Color.Black);
            pManager.AddNumberParameter("Size", "S", "Size of hte Brush", GH_ParamAccess.item, 2);
            pManager.AddIntegerParameter("Hatchstyle", "H", "The hatchstyle to use", GH_ParamAccess.item, 0);

            Param_Integer param = pManager[3] as Param_Integer;

            foreach (KeyValuePair <int, HatchStyle> pair in Styles.hatch)
            {
                param.AddNamedValue(pair.Value.ToString(), pair.Key);
            }
        }
コード例 #27
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddColourParameter("Color", "C", "Diffuse color of the material", GH_ParamAccess.item);
     pManager.AddColourParameter("Ambient Color", "[aC]", "Ambient color of the material, multiplied by the color of the ambient light in the scene.  Default is black", GH_ParamAccess.item, System.Drawing.Color.Black);
     pManager.AddColourParameter("Emissive Color", "[eC]", "Emissive (light) color of the material, essentially a solid color unaffected by other lighting. Default is black.", GH_ParamAccess.item, System.Drawing.Color.Black);
     pManager.AddColourParameter("Specular Color", "[sC]", "Specular color of the material, i.e., how shiny the material is and the color of its shine. Setting this the same color as the diffuse value (times some intensity) makes the material more metallic-looking; setting this to some gray makes the material look more plastic. Default is dark gray.", GH_ParamAccess.item, System.Drawing.Color.DarkGray);
     pManager.AddNumberParameter("Shininess", "[S]", "How shiny the specular highlight is; a higher value gives a sharper highlight. Default is 30", GH_ParamAccess.item, 30.0);
     pManager.AddNumberParameter("[Opacity]", "[O]", "Number in the range of 0.0 - 1.0 indicating how transparent the material is. A value of 0.0 indicates fully transparent, 1.0 is fully opaque.", GH_ParamAccess.item, 1.0);
     pManager[1].Optional = true;
     pManager[2].Optional = true;
     pManager[3].Optional = true;
     pManager[4].Optional = true;
     pManager[5].Optional = true;
 }
コード例 #28
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddParameter(new ConnectionParameter(), "Connection", "Con", "Connection to SAN", GH_ParamAccess.item);
     pManager[0].WireDisplay = GH_ParamWireDisplay.hidden;
     pManager.AddTextParameter("Node ID", "ID", "ID of the node", GH_ParamAccess.item);
     pManager.AddColourParameter("Color 1", "C1", "Color of LED 1", GH_ParamAccess.item);
     pManager[2].Optional = true;
     pManager.AddColourParameter("Color 2", "C2", "Color of LED 2", GH_ParamAccess.item);
     pManager[3].Optional = true;
     pManager.AddColourParameter("Color 3", "C3", "Color of LED 3", GH_ParamAccess.item);
     pManager[4].Optional = true;
     pManager.AddColourParameter("Color 4", "C4", "Color of LED 4", GH_ParamAccess.item);
     pManager[5].Optional = true;
 }
コード例 #29
0
ファイル: Spacer.cs プロジェクト: pm-Architect/Aviary
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddColourParameter("Color", "C", "Color", GH_ParamAccess.item, System.Drawing.Color.Transparent);
     pManager[0].Optional = true;
     pManager.AddNumberParameter("Width", "W", "---", GH_ParamAccess.item, 10);
     pManager[1].Optional = true;
 }
コード例 #30
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Shapes", "S", "The shapes to add as Polyline(s)", GH_ParamAccess.list);
     pManager.AddColourParameter("Fill Color", "FC", "The fill colors. Leave empty for no fill", GH_ParamAccess.list);
     pManager.AddNumberParameter("Stroke Weight", "SW", "The stroke weights. Leave empty or set to 0 for no stroke.", GH_ParamAccess.list);
     pManager.AddColourParameter("Stroke Color", "SC", "The stroke colors", GH_ParamAccess.list, System.Drawing.Color.Black);
     pManager.AddNumberParameter("Scale", "Scl", "Use this value to resize the shape.", GH_ParamAccess.item, 1.0);
     pManager.AddIntegerParameter("Width", "W", "The width of the container for the shape. \nLeave blank to autosize.", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Height", "H", "The height of the container for the shape. \nLeave blank to autosize.", GH_ParamAccess.item);
     pManager[1].Optional = true;
     pManager[2].Optional = true;
     pManager[3].Optional = true;
     pManager[4].Optional = true;
     pManager[5].Optional = true;
     pManager[6].Optional = true;
 }