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