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

setJSON() protected méthode

protected setJSON ( Newtonsoft.Json.Linq.JObject obj, BaseClassIfc host, List prime ) : void
obj Newtonsoft.Json.Linq.JObject
host BaseClassIfc
prime List
Résultat void
        protected override void setJSON(JObject obj, BaseClassIfc host, List<BaseClassIfc> prime)
        {
            base.setJSON(obj, host, prime);
            if(!double.IsNaN(mStartDistAlong))
                mJsonObject["StartDistAlong"] = mStartDistAlong;
            JArray array = new JArray();
            foreach (IfcAlignment2DHorizontalSegment seg in Segments)
                array.Add(seg.getJson(this,prime));
            mJsonObject["Segments"] = array;
        }