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; }
/*******************************************/ 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)); } }
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); } } }
/*******************************************/ public static INode ToNode <T>(this GH_Param <T> component) where T : class, IGH_Goo { return(null); }
/*******************************************/ public static INode ToNode <T>(this GH_Param <T> component, List <object> choices = null, object selectedItem = null) where T : class, IGH_Goo { return(null); }
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; }