Esempio n. 1
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);
        }
Esempio n. 2
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. 3
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);
 }