GeometryGym.Ifc.IfcAlignment.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 (mPredefinedType != IfcAlignmentTypeEnum.NOTDEFINED)
                mJsonObject["PredefinedType"] = mPredefinedType.ToString();
            IfcAlignment2DHorizontal horizontal = Horizontal;
            if (horizontal != null)
                mJsonObject["Horizontal"] = horizontal.getJson(this, prime);
            IfcAlignment2DVertical vertical = Vertical;
            if (vertical != null)
                mJsonObject["Vertical"] = vertical.getJson(this, prime);
            string str = LinearRefMethod;
            if (!string.IsNullOrEmpty(str))
                mJsonObject["LinearRefMethod"] = str;
        }