Пример #1
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddBooleanParameter("Run", "R", "Run", GH_ParamAccess.item, true);
            pManager.AddPointParameter("CameraLocation", "CL", "CameraLocation", GH_ParamAccess.item);
            pManager.AddPointParameter("CameraTarget", "CT", "CameraTarget", GH_ParamAccess.item);
            pManager.AddIntegerParameter("CameraType", "T", "CameraType", GH_ParamAccess.item, 2);
            pManager.AddNumberParameter("FocalLength", "L", "FocalLength", GH_ParamAccess.item, 50);
            pManager.AddAngleParameter("Bias", "B", "Bias in Radius", GH_ParamAccess.item, 0);
            pManager.AddPointParameter("UV", "UV", "nearly UV to refine the target on view.", GH_ParamAccess.item, new Point3d(0.5, 0.5, 0));
            pManager.AddTextParameter("ViewName", "N", "ViewName", GH_ParamAccess.item);
            pManager[7].Optional = true;

            ((IGH_PreviewObject)this).Hidden = true;

            Param_Integer var = pManager[3] as Param_Integer;

            if (var != null)
            {
                var.AddNamedValue("Parallel Projection", 0);
                var.AddNamedValue("Two Point Perspective Projection", 1);
                var.AddNamedValue("Perspective Projection", 2);
            }
        }
Пример #2
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            //0
            pManager.AddGenericParameter("Geometries", "G", "Geometries to be converted,\r\nYou can input\r\n  Box\r\n  FD_Extrusion\r\n  Mesh (will be triangulated)\r\n  Brep (will be triangulated)", GH_ParamAccess.list);
            //1
            pManager.AddIntegerParameter("Type", "TY", "Type\r\n    0: Simple volume\r\n    1: Nesting volume", GH_ParamAccess.item, 0);
            Param_Integer p1 = pManager[1] as Param_Integer;

            p1.AddNamedValue("Simple volume", 0);
            p1.AddNamedValue("Nesting volume", 1);
            //2
            pManager.AddTextParameter("X Plus", "XP", @"Apply X+ surface: 'Ture' or 'False'", GH_ParamAccess.item, "Default");
            //3
            pManager.AddTextParameter("X Minus", "XM", @"Apply X- surface: 'Ture' or 'False'", GH_ParamAccess.item, "Default");
            //4
            pManager.AddTextParameter("Y Plus", "YP", @"'Apply Y+ surface: Ture' or 'False'", GH_ParamAccess.item, "Default");
            //5
            pManager.AddTextParameter("Y Minus", "YM", @"'Apply Y- surface: Ture' or 'False'", GH_ParamAccess.item, "Default");
            //6
            pManager.AddTextParameter("Z Plus", "ZP", @"'Apply Z+ surface: Ture' or 'False'", GH_ParamAccess.item, "Default");
            //7
            pManager.AddTextParameter("Z Minus", "YM", @"'Apply Z- surface: Ture' or 'False'", GH_ParamAccess.item, "Default");
        }
Пример #3
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            //0
            pManager.AddTextParameter("File path of EPW file", "EP", "File path of EPW file", GH_ParamAccess.item);
            //1
            pManager.AddTextParameter("File path of CSV file", "CP", "File path of CSV file", GH_ParamAccess.item);
            //2
            pManager.AddIntegerParameter("Begining Month", "BM", "", GH_ParamAccess.item, 1);
            //3
            pManager.AddIntegerParameter("Begining Day", "BD", "", GH_ParamAccess.item, 1);
            //4
            pManager.AddIntegerParameter("End Month", "EM", "", GH_ParamAccess.item, 12);
            //5
            pManager.AddIntegerParameter("End Day", "ED", "", GH_ParamAccess.item, 31);
            //6
            pManager.AddIntegerParameter("Begining Hour", "BH", "0 ~ 23", GH_ParamAccess.item, 0);
            //7
            pManager.AddIntegerParameter("End Hour", "EH", "1 ~ 24", GH_ParamAccess.item, 24);
            //8
            pManager.AddNumberParameter("Reference Height", "RH", "", GH_ParamAccess.item, 10);
            //9
            pManager.AddIntegerParameter("Terrain Type", "TT", "Terrain Type\r\n" +
                                         "    1: Elevation independent\r\n" +
                                         "    2: Major city center\r\n" +
                                         "    3: Major city suburban\r\n" +
                                         "    4: Suburban\r\n" +
                                         "    5: Plane\r\n", GH_ParamAccess.item, 3);
            Param_Integer p9 = (Param_Integer)pManager[9];

            p9.AddNamedValue("Elevation independent", 1);
            p9.AddNamedValue("Major city center", 2);
            p9.AddNamedValue("Major city suburban", 3);
            p9.AddNamedValue("Suburban", 4);
            p9.AddNamedValue("Plane", 5);
            //10
            pManager.AddBooleanParameter("English or Japanses", "EJ", "True: English\r\nFlase: Japanese", GH_ParamAccess.item, true);
            //11
            pManager.AddBooleanParameter("Run", "R", "Run", GH_ParamAccess.item);
        }
Пример #4
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddGenericParameter("Layer", "L", "---", GH_ParamAccess.item);
            pManager.AddIntegerParameter("Mode", "M", "---", GH_ParamAccess.list, 0);
            pManager[1].Optional = true;
            pManager.AddNumberParameter("Value", "T", "---", GH_ParamAccess.list, 0.0);
            pManager[2].Optional = true;
            pManager.AddColourParameter("Color", "C", "---", GH_ParamAccess.list, Color.Black);
            pManager[3].Optional = true;

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

            param.AddNamedValue(modes[0], 0);
            param.AddNamedValue(modes[1], 1);
            param.AddNamedValue(modes[2], 2);
            param.AddNamedValue(modes[3], 3);
            param.AddNamedValue(modes[4], 4);
            param.AddNamedValue(modes[5], 5);
            param.AddNamedValue(modes[6], 6);
            param.AddNamedValue(modes[7], 7);
            param.AddNamedValue(modes[8], 8);
            param.AddNamedValue(modes[9], 9);
            param.AddNamedValue(modes[10], 10);
        }
Пример #5
0
        /// <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.SetPersistentData(new GH_ObjectWrapper(new Bitmap(10, 10)));

            pManager.AddIntegerParameter("Mode", "M", "---", GH_ParamAccess.item, 0);
            pManager[1].Optional = true;
            pManager.AddNumberParameter("Threshold", "T", "...", GH_ParamAccess.item, -1);
            pManager[2].Optional = true;

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

            param.AddNamedValue(modes[0], 0);
            param.AddNamedValue(modes[1], 1);
            param.AddNamedValue(modes[2], 2);
            param.AddNamedValue(modes[3], 3);
            param.AddNamedValue(modes[4], 4);
            param.AddNamedValue(modes[5], 5);
            param.AddNamedValue(modes[6], 6);
            param.AddNamedValue(modes[7], 7);
        }
Пример #6
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddPointParameter("origin", "origin", "origin", GH_ParamAccess.item);

            pManager.AddMeshParameter("mesh", "mesh", "Mesh surfaces to display Pressure on", GH_ParamAccess.list);

            pManager.AddGenericParameter("DE", "DE", "data extractor, from FFD solver", GH_ParamAccess.item);

            //pManager.AddNumberParameter("ρ", "ρ", "air density in [kg/m^3]. Default is 1.2041", GH_ParamAccess.item);
            //pManager[3].Optional = true;

            //pManager.AddNumberParameter("min", "min", "min for colour scale. default is -1", GH_ParamAccess.item);
            //pManager.AddNumberParameter("max", "max", "max for colour scale. detault is 1", GH_ParamAccess.item);
            //pManager[4].Optional = true;
            //pManager[5].Optional = true;

            pManager.AddIntegerParameter("colour sheme", "colours", "Colour sheme. 0: Blue (min) - Red - Yellow (max); 1: Blue (min) - Green - Red (max); 2: Black only.", GH_ParamAccess.item);
            pManager[3].Optional = true;

            pManager.AddNumberParameter("font size", "font size", "font size", GH_ParamAccess.item);
            pManager[4].Optional = true;

            pManager.AddPointParameter("ref z", "ref z", "reference height. usually should be the building height. Make sure, the point is somehow in the Y-middle of the domain. Point3d", GH_ParamAccess.item);
        }
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            //0
            pManager.AddPointParameter("origin", "origin", "origin", GH_ParamAccess.item);

            //1
            pManager.AddIntegerParameter("section position", "section", "where exactly to draw section", GH_ParamAccess.item);


            //2
            pManager.AddGenericParameter("velocity", "velocity", "velocity", GH_ParamAccess.list);

            //3
            pManager.AddGenericParameter("pressure", "pressure", "pressure", GH_ParamAccess.item);

            //4
            pManager.AddNumberParameter("hx", "hx", "hx", GH_ParamAccess.item);

            //5
            pManager.AddNumberParameter("hy", "hy", "hy", GH_ParamAccess.item);

            //6
            pManager.AddNumberParameter("hz", "hz", "hz", GH_ParamAccess.item);
        }
Пример #8
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddIntegerParameter("Seed", "S", "The seed for the noise", GH_ParamAccess.item, 1);
            pManager[0].Optional = true;
            pManager.AddIntegerParameter("Width", "W", "The width of the new Aviary Image in pixels", GH_ParamAccess.item, 100);
            pManager[1].Optional = true;
            pManager.AddIntegerParameter("Height", "H", "The height of the new Aviary Image in pixels", GH_ParamAccess.item, 100);
            pManager[2].Optional = true;
            pManager.AddIntegerParameter("Depth", "D", "The sample depth through the field", GH_ParamAccess.item, 1);
            pManager[3].Optional = true;
            pManager.AddIntegerParameter("Mode", "M", "The cellular boundary mode", GH_ParamAccess.item, 0);
            pManager[4].Optional = true;
            pManager.AddIntegerParameter("Interpolation", "I", "The output interpolation sample value mode", GH_ParamAccess.item, 0);
            pManager[5].Optional = true;
            pManager.AddNumberParameter("Jitter", "J", "The pseudo randomized displacement of the noise sample points", GH_ParamAccess.item, 0.5);
            pManager[6].Optional = true;
            pManager.AddNumberParameter("Frequency", "F", "Scale of the sample point distribution frequency", GH_ParamAccess.item, 0.25);
            pManager[7].Optional = true;
            pManager.AddIntervalParameter("Interval", "I", "The lumiance threshold proceedural values", GH_ParamAccess.item, new Interval(0, 1));
            pManager[8].Optional = true;

            Param_Integer paramA = (Param_Integer)pManager[4];

            paramA.AddNamedValue("Euclidean", 0);
            paramA.AddNamedValue("Manhattan", 1);
            paramA.AddNamedValue("Natural", 2);

            Param_Integer paramB = (Param_Integer)pManager[5];

            paramB.AddNamedValue("Value", 0);
            paramB.AddNamedValue("Distance", 2);
            paramB.AddNamedValue("Distance2", 3);
            paramB.AddNamedValue("Dist2Add", 4);
            paramB.AddNamedValue("Dist2Sub", 5);
            paramB.AddNamedValue("Dist2Mul", 6);
            paramB.AddNamedValue("Dist2Div", 7);
        }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("List Items", "L", "The initial list of options to display in the list.", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Selected Index", "I", "The initially selected index. Defaults to the first item.", GH_ParamAccess.item, 0);
 }
 //Input
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddNumberParameter("Radius", "R", "Radius of the Origin circle", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Level", "L", "Level of recursive depth", GH_ParamAccess.item);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("PathToFile", "Path", "Path to directory where the GeoJSON file resides", GH_ParamAccess.item);
     pManager.AddIntegerParameter("FieldToSelect", "Field", "Input the field you want to select from", GH_ParamAccess.item);
 }
Пример #12
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("Size", "D", "dimension for the slider box", GH_ParamAccess.item, 200);
     pManager.AddColourParameter("Color", "C", "colors, use regular Grasshopper color", GH_ParamAccess.item, sd.Color.FromArgb(255, 45, 45, 45));
     pManager.AddIntegerParameter("LineStroke", "W", "lineweight/stroke to render the grid and cursor point", GH_ParamAccess.item, 3);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("1", "1", "1", GH_ParamAccess.item);
 }
Пример #14
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("MaterialName", "MN", "Name the material", GH_ParamAccess.item, "UntitledMaterial"); //We should add default values here.
     pManager.AddIntegerParameter("MaterialID", "MId", "ID of the material", GH_ParamAccess.item, 0);               //We should add default values here.
     pManager.AddGenericParameter("Properties", "Pro", "Add strutural properties here", GH_ParamAccess.item);       //We should add default values here.
 }
Пример #15
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGeometryParameter("Mesh", "M", "input mesh to subdivide", GH_ParamAccess.tree);
     pManager.AddIntegerParameter("Level", "L", "level to subdivide", GH_ParamAccess.tree);
     _mode = FoldMode.SimpleSubdivision;
 }
Пример #16
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddParameter(new EdgeLoop_Param());
     pManager.AddIntegerParameter("Edge Constraint Type", "constr", "Constraint type\nint should be generated by the edge constraint type component!", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Pin Edge Points", "pin", "Set to true to fix the location of the points.\n Otherwise they will be kept on the curve, but allowed to slide.", GH_ParamAccess.item, false);
 }
Пример #17
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("Initial Yield Stress", "YS", "Initial Yield Stress (Pa)", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Structuration Rate", "SR", "Structuration Rate (Pa/s)", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Density", "d", "Density (t/m3)", GH_ParamAccess.item);
 }
Пример #18
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddParameter(new DMesh3_Param(), "Mesh To Map", "dm3", "Mesh to map into a SDF", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Number of Cells", "n", "Number of cells (Resolution)", GH_ParamAccess.item, 128);
 }
Пример #19
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("Particle Indices", "Ind", "Particle indices to form shape matching constraints", GH_ParamAccess.tree);
     pManager.AddNumberParameter("Stiffness", "Stiff", "0.0 to 1.0 (Default: 1.0)", GH_ParamAccess.list);
     pManager[1].Optional = true;
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("Width", "Width", "Image width in pixels.", GH_ParamAccess.item, 400);
     pManager.AddIntegerParameter("Height", "Height", "Image height in pixels.", GH_ParamAccess.item, 400);
 }
Пример #21
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMatrixParameter("EigenVectorMatrix", "v", "The matrix containing all the eigenvectors", GH_ParamAccess.item);
     pManager.AddIntegerParameter("EigenvectorIndices", "i", "The indices specifying the eigenvectors to be extracted", GH_ParamAccess.list);
 }
Пример #22
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("Number", "N", "Number of colours", GH_ParamAccess.item, 3);
     pManager.AddNumberParameter("Range", "R", "Range of the spectrum to sample", GH_ParamAccess.item, 1.0);
     pManager.AddIntegerParameter("Seed", "S", "Seed to use for randomized parameters", GH_ParamAccess.item, 1);
 }
Пример #23
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("PTK NODE", "PTK N", "PTK NODE", GH_ParamAccess.item);
     pManager.AddIntegerParameter("PTK NODE ID", "PTK N ID", "PTK NODE ID", GH_ParamAccess.list);
 }
Пример #24
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddRectangleParameter("Boundary", "B", "Rectangle describing boundary of plane", GH_ParamAccess.item, new Rectangle3d(Plane.WorldXY, new Interval(-10, 10), new Interval(-10, 10)));
     pManager.AddIntegerParameter("Width Count", "W", "Number of faces along the {x} direction.", GH_ParamAccess.item, 10);
     pManager.AddIntegerParameter("Height Count", "H", "Number of faces along the {y} direction", GH_ParamAccess.item, 10);
 }
Пример #25
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("iMesh", "iM", "Base Iguana mesh.", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Element", "e-Key", "Element Key.", GH_ParamAccess.item);
 }
Пример #26
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddParameter(new DMesh3_Param(), "Meshes", "dm3", "Meshes to union", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Number of cells", "n", "Number of sample cells", GH_ParamAccess.item, 64);
 }
Пример #27
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Points", "P", "Points to Display", GH_ParamAccess.list);
     pManager.AddNumberParameter("Radius", "R", "Radiuses (one value for each point)", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Resolution", "r", "0 - coarse, 1 - fine, 2 - extra-fine - attach a value list for autovalue", GH_ParamAccess.item, 0);
 }
Пример #28
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("Port", "p", "HTTP Port", GH_ParamAccess.item, 41414);
     pManager.AddGenericParameter("Handlers", "h", "outputs from GH_WebHandlerComponent", GH_ParamAccess.list);
 }
Пример #29
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("Population Size", "PopS", "Initial Population Size as integer.", GH_ParamAccess.item, 200);
 }
Пример #30
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("CMesh", "CMesh", "Input CMesh", GH_ParamAccess.item);
     pManager.AddIntegerParameter("GlueVerticesID", "GlueVertID", "Input Indices of vertices to Glue", GH_ParamAccess.list);
 }