GeometryGym.Ifc.IfcObject.setJSON C# (CSharp) Méthode

setJSON() protected méthode

protected setJSON ( Newtonsoft.Json.Linq.JObject obj, BaseClassIfc host, HashSet processed ) : void
obj Newtonsoft.Json.Linq.JObject
host BaseClassIfc
processed HashSet
Résultat void
        protected override void setJSON(JObject obj, BaseClassIfc host,  HashSet<int> processed)
        {
            base.setJSON(obj, host, processed);
            setAttribute(obj, "ObjectType", ObjectType);
            if (mIsTypedBy != null)
                obj["IsTypedBy"] = mIsTypedBy.getJson(this, processed);
            if (mIsDefinedBy.Count > 0)
            {
                JArray array = new JArray();
                foreach (IfcRelDefinesByProperties rdp in mIsDefinedBy)
                    array.Add(rdp.getJson(this, processed));
                obj["IsDefinedBy"] = array;
            }
        }