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; } }
internal static IfcAlignment2DVertical Parse(string strDef) { IfcAlignment2DVertical a = new IfcAlignment2DVertical(); int ipos = 0; parseFields(a, ParserSTEP.SplitLineFields(strDef), ref ipos); return(a); }
internal static void parseFields(IfcAlignment2DVertical a, List <string> arrFields, ref int ipos) { a.mSegments = ParserSTEP.SplitListLinks(arrFields[ipos++]); }
internal IfcAlignment2DVertical(IfcAlignment2DVertical o) : base() { mSegments = new List <int>(o.mSegments.ToArray()); }
internal static void parseFields(IfcAlignment2DVertical a, List<string> arrFields, ref int ipos) { a.mSegments = ParserSTEP.SplitListLinks(arrFields[ipos++]); }
internal static IfcAlignment2DVertical Parse(string strDef) { IfcAlignment2DVertical a = new IfcAlignment2DVertical(); int ipos = 0; parseFields(a, ParserSTEP.SplitLineFields(strDef), ref ipos); return a; }
internal IfcAlignment2DVertical(IfcAlignment2DVertical o) : base() { mSegments = new List<int>(o.mSegments.ToArray()); }