コード例 #1
0
 public ButtonAddObjectOutput(GH_Param <TGoo> target, ParamGlassesComponent owner, bool enable,
                              string[] tips         = null, int tipsRelay = 5000, Func <ToolStripDropDownMenu> createMenu = null, bool isToggle = true,
                              bool renderLittleZoom = false)
     : base(null, owner, null, enable, true, tips, tipsRelay, createMenu, isToggle, renderLittleZoom)
 {
     this.Target = target;
     this.Owner  = owner;
 }
コード例 #2
0
        /*******************************************/

        public static INode IToNode <T>(this GH_Param <T> component, List <object> choices = null, object selectedItem = null) where T : class, IGH_Goo
        {
            if (choices == null)
            {
                return(ToNode(component as dynamic));
            }
            else
            {
                return(ToNode(component as dynamic, choices, selectedItem));
            }
        }
コード例 #3
0
 public static void PopulateParam <DataType>(GH_Param <IGH_Goo> Param, Resthopper.IO.DataTree <ResthopperObject> tree)
 {
     foreach (KeyValuePair <string, List <ResthopperObject> > entree in tree)
     {
         GH_Path         path       = new GH_Path(GhPath.FromString(entree.Key));
         List <DataType> objectList = new List <DataType>();
         for (int i = 0; i < entree.Value.Count; i++)
         {
             ResthopperObject obj  = entree.Value[i];
             DataType         data = JsonConvert.DeserializeObject <DataType>(obj.Data);
             Param.AddVolatileData(path, i, data);
         }
     }
 }
コード例 #4
0
        /*******************************************/

        public static INode ToNode <T>(this GH_Param <T> component) where T : class, IGH_Goo
        {
            return(null);
        }
コード例 #5
0
        /*******************************************/

        public static INode ToNode <T>(this GH_Param <T> component, List <object> choices = null, object selectedItem = null) where T : class, IGH_Goo
        {
            return(null);
        }
コード例 #6
0
ファイル: HSDataParam.cs プロジェクト: yxm0621/Hoopsnake
 public HSDataParam(HSComponent nOwner, GH_Param <IGH_Goo> nParam)
     : base(new GH_InstanceDescription("Data", "D*", "Represents a collection of generic data", "Params", "Primitive"))
 {
     this.m_owner = nOwner;
     this.m_param = nParam;
 }