GeometryGym.Ifc.IfcProductRepresentation.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);
            string name = Name;
            if (!string.IsNullOrEmpty(name))
                obj["Name"] = name;
            string description = Description;
            if (!string.IsNullOrEmpty(description))
                obj["Description"] = description;

            List<IfcRepresentation> representations = Representations;
            JArray jreps = new JArray();
            foreach (IfcRepresentation rep in representations)
            {
                jreps.Add(rep.getJson(this, processed));
                //				if(rep.OfProductRepresentation.Count == 1)
                //				{
                //ofshaperep
                //				}
            }
            obj["Representations"] = jreps;
        }