Esempio n. 1
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager inputManager)
 {
     inputManager.Register_IntegerParam("Treshold", "T", "Treshold", GH_ParamAccess.item);
     inputManager.Register_GenericParam("Resting State(s)", "R", "Resting state(s)", GH_ParamAccess.item);
     inputManager.Register_GenericParam("Excited State", "E", "Excited state", GH_ParamAccess.list);
     inputManager.Register_GenericParam("Refractory State(s)", "R", "Refractory state(s)", GH_ParamAccess.list);
 }
Esempio n. 2
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager inputManager)
 {
     inputManager.Register_GenericParam("Cell prototype", "C", "Cell Prototype to be created for each point.", GH_ParamAccess.item);                                    //name, nick, description, defaul, isList
     inputManager.Register_PointParam("Serie of Points", "P", "Serie of points.", GH_ParamAccess.list);                                                                 //name, nick, description, defaul, isList
     //optional configuration, if null - each cell is in it's default state
     inputManager.Register_GenericParam("State Configuration", "SC", "State Configuration - specifies initial state for each cell in the serie.", GH_ParamAccess.list); //name, nick, description, defaul, isList
     Params.Input[2].Optional = true;
 }
Esempio n. 3
0
        //public override Guid ComponentGuid { get { return new Guid("{BF5B1E61-F880-44C9-98C0-4A6C34B1F797}"); } }


        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.Register_GenericParam("PF", "PF", "Picnic to add to.", GH_ParamAccess.list);
            //pManager.Register_GenericParam("PF", "PF", "Picnic to add to.", GH_ParamAccess.item);
            pManager.Register_GenericParam("Key", "K", "Key to check.", GH_ParamAccess.item);
            pManager.Register_GenericParam("Vals", "V", "Values", GH_ParamAccess.list);
            pManager[0].Optional = true;
        }
Esempio n. 4
0
        //protected override Bitmap Icon { get { return Ants.Properties.Resources.Ants_Icons_ant_world; } }

        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_GenericParam("Value", "V", "Initial Values", GH_ParamAccess.list);
            pManager.Register_IntegerParam("Generations", "G", "Number of Generations to create.", 0, GH_ParamAccess.item);
            pManager.Register_GenericParam("Dict", "D", "Dictionary", GH_ParamAccess.item);
            pManager.Register_StringParam("Key", "K", "Key", GH_ParamAccess.item);
        }
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager inputManager)
        {
            inputManager.Register_GenericParam("Cellular Automaton Configuration", "C", "CA configuration.", GH_ParamAccess.item);//name, nick, description, defaul, isList
            //inputManager.Register_GenericParam("Cellular Automaton", "CA", "Cellular Automaton, containing the cells", GH_ParamAccess.item);//name, nick, description, defaul, isList
            //Param_GenericObject cellStateParam = new Param_GenericObject();
            //cellStateParam.Optional = true;
            //inputManager.RegisterParam(cellStateParam, "Filter State", "F", "Optional Filter parameter. If specified, only cells with the speciefied state are listed.", false);//name, nick, description, defaul, isList

            //the problem here is that a default value should be specified, but it is not allowed for GenericParams
            inputManager.Register_GenericParam("Filter State", "F", "Optional parameter that filters cells by state.", GH_ParamAccess.item);//name, nick, description, defaul, isList
            Params.Input[1].Optional = true;
        }
Esempio n. 6
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.Register_PointParam("Field Points", "P", "List of points in the vector field (parallel to V)", GH_ParamAccess.list);
            pManager.Register_GenericParam("Field Vectors", "VT", "List of vectors in the vector field, or tensors representing a vector field (parallel to P)", GH_ParamAccess.list);
            pManager.Register_PointParam("Travelling Point", "TP", "Point to simulate travelling through the vector field");
            pManager.Register_GenericParam("Dynamics", "D", "List of dynamics to modify the vector field with", GH_ParamAccess.list);
            pManager.Register_GenericParam("Settings", "SS", "Static Settings object to customize integration parameters");

            pManager[0].Optional = true;
            pManager[1].Optional = true;
            pManager[3].Optional = true;
            pManager[4].Optional = true;
        }
Esempio n. 7
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.Register_PointParam("Field Points", "P", "List of points in the vector field (parallel to V)", GH_ParamAccess.list);
            pManager.Register_VectorParam("Field Vectors", "V", "List of vectors in the vector field (parallel to P)", GH_ParamAccess.list);
            pManager.Register_PointParam("Start Points", "SP", "Points to simulate travelling through the vector field", GH_ParamAccess.list);
            pManager.Register_IntegerParam("Particle Life Time", "T", "Number of iterations for each particle to exist, by default these are respawned at their original start points when this time is up", 0);
            pManager.Register_GenericParam("Dynamics", "D", "List of dynamics to modify the vector field with", GH_ParamAccess.list);
            pManager.Register_GenericParam("Settings", "DS", "Dynamic Settings object to customize integration parameters");
            pManager.Register_BooleanParam("Reset simulation", "R", "Reset the simulation to the starting point", true);

            pManager[0].Optional = true;
            pManager[1].Optional = true;
            pManager[4].Optional = true;
            pManager[5].Optional = true;
        }
Esempio n. 8
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.Register_PointParam("Field Points", "P", "List of points in the vector field (parallel to V)", GH_ParamAccess.list);
     pManager.Register_VectorParam("Field Vectors", "V", "List of vectors in the vector field (parallel to P)", GH_ParamAccess.list);
     pManager.Register_PointParam("Start Points", "SP", "Points to simulate travelling through the vector field", GH_ParamAccess.list);
     pManager.Register_GenericParam("Settings", "S", "Settings object to customize integration parameters");
     pManager[3].Optional = true;
     pManager.Register_BooleanParam("Reset simulation", "R", "Reset the simulation to the starting point", false);
 }
Esempio n. 9
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.Register_GenericParam("Starting Data", "S", "Starting Data. This will be output just once before any looping is performed.");
     P = new HSDataParam(this, (GH_Param <IGH_Goo>)Params.Input[0]);
     B = new HSBoolParam(this);
     T = new HSTriggerParam(this);
     pManager.RegisterParam(P);
     pManager.RegisterParam(B);
     pManager.RegisterParam(T);
 }
Esempio n. 10
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.Register_PointParam("Point Field", "P", "List of points, where each point relates to a vector (parallel to V)", GH_ParamAccess.list);
            pManager.Register_VectorParam("Vector Field", "V", "List of vectors, where each vector relates to a point (parallel to P)", GH_ParamAccess.list);
            pManager.Register_GenericParam("Dynamics", "D", "List of dynamics to modify the vector field with", GH_ParamAccess.list);
            pManager.Register_SurfaceParam("Surface", "S", "Optional surface to create geodesic curves between points in space instead of direct lines");

            // vector field is optional, will create a field of 0 vectors if not present
            pManager[1].Optional = true;
            pManager[2].Optional = true;
            pManager[3].Optional = true;
        }
Esempio n. 11
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager inputManager)
        {
            inputManager.Register_StringParam("Source String", "S", "Source String. Each symbol in the string represents a command that drives the Turtle.", GH_ParamAccess.item);//name, nick, description, default, isList

            //Default step & step scale
            inputManager.Register_DoubleParam("Step length", "L", "Length of the turle's step.", 10.0, GH_ParamAccess.item);             //name, nick, description, default, isList
            inputManager.Register_DoubleParam("Step length scale", "dL", "Step length scale", 0.9, GH_ParamAccess.item);                 //name, nick, description, default, isList

            inputManager.Register_DoubleParam("Angle", "A", "Default angle of the turle used for rotation.", 90.0, GH_ParamAccess.item); //name, nick, description, default, isList
            inputManager.Register_DoubleParam("Angle scale", "dA", "Default angle scale", 0.9, GH_ParamAccess.item);                     //name, nick, description, default, isList

            //Position + Orientation of the turtle:
            inputManager.Register_PlaneParam("Initial Position and Orientation", "O", "Initial Position and Orientation of the Turtle", _defaultInitialOrientation, GH_ParamAccess.item); //name, nick, description, default, isList

            inputManager.Register_GenericParam("Tube Settings", "TS", "Tube Settings", GH_ParamAccess.item);                                                                              //name, nick, description, default, isList
            Params.Input[6].Optional = true;
        }
Esempio n. 12
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager inputManager)
 {
     inputManager.Register_IntegerParam("Discrete time", "t", "Discrete Time.", 0, GH_ParamAccess.item);
     inputManager.Register_GenericParam("Cellular Automata", "CA", "Cellular Automaton.", GH_ParamAccess.item);//name, nick, description, defaul, isList
 }
Esempio n. 13
0
        //public override Guid ComponentGuid { get { return new Guid("{BF5B1E61-F880-44C9-98C0-4A6C34B1F797}"); } }


        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            //pManager.Register_GenericParam("PF", "PF", "Picnic to view.", GH_ParamAccess.list);
            //pManager.Register_GenericParam("G", "G", "Object to test.", GH_ParamAccess.item);
            pManager.Register_GenericParam("G", "G", "Object to test.", GH_ParamAccess.list);
        }
Esempio n. 14
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager inputManager)
 {
     inputManager.Register_StringParam("Axiom", "A", "The Axiom is the first Word in the LSystem. It is also called 'seed' or 'initiator'.", "", GH_ParamAccess.item);//name, nick, description, default, isList
     inputManager.Register_GenericParam("Production Rules", "PR", "List of Production Rules used by the LSystem to generate the Words in the LSystem language.", GH_ParamAccess.list);
     inputManager.Register_IntegerParam("Number of generations", "n", "Number of words to be generated by the LSystem", 2, GH_ParamAccess.item);
 }
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager inputManager)
 {
     inputManager.Register_GenericParam("Set of states", "S", "A Set of valid states for the current Cell Prototype.", GH_ParamAccess.list);//name, nick, description, defaul, isList
 }
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager inputManager)
 {
     inputManager.Register_PointParam("Points", "P", "Selection of Points/cells with a custom initial state", GH_ParamAccess.list);              //name, nick, description, defaul, isList
     inputManager.Register_GenericParam("Custom initial State", "S", "Custom initial State for the selected cells/points", GH_ParamAccess.item); //name, nick, description, defaul, isList
 }
Esempio n. 17
0
        //public override Guid ComponentGuid { get { return new Guid("{BF5B1E61-F880-44C9-98C0-4A6C34B1F797}"); } }


        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.Register_GenericParam("PF", "PF", "Picnic to add to.", GH_ParamAccess.list);
            pManager.Register_GenericParam("K", "Key", "Key to Query", GH_ParamAccess.item);
        }
Esempio n. 18
0
        //public override Guid ComponentGuid { get { return new Guid("{D17343E8-0BD8-4F32-9DF7-B516D52EC585}"); } }


        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.Register_GenericParam("Key", "K", "Keys to check.", GH_ParamAccess.list);
            pManager.Register_GenericParam("Func", "F", "Function to Input", GH_ParamAccess.item);
        }
Esempio n. 19
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.Register_GenericParam("Geometry", "geom", "The geometry to bake", GH_ParamAccess.tree);
     pManager.RegisterParam(new GHParam_Decodes_Attributes(), "Properties", "props", "The properties to apply to the geometry when baking.  See the help file for documentation", GH_ParamAccess.tree);
 }
Esempio n. 20
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.Register_GenericParam("Dynamics", "D", "List of dynames to accelerate", GH_ParamAccess.list);
     pManager.Register_DoubleParam("Drag", "Dg", "Drag is used to modify the acceleration speed over time", 1.0d);
 }