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;
            }
        }
Пример #2
0
 internal IfcAlignment2DHorizontal(IfcAlignment2DHorizontal a) : base()
 {
     mStartDistAlong = a.mStartDistAlong; mSegments = new List <int>(a.mSegments.ToArray());
 }
Пример #3
0
 internal static IfcAlignment2DHorizontal Parse(string strDef)
 {
     IfcAlignment2DHorizontal a = new IfcAlignment2DHorizontal(); int ipos = 0; parseFields(a, ParserSTEP.SplitLineFields(strDef), ref ipos); return(a);
 }
Пример #4
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++]);
 }
Пример #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++]);
 }
Пример #6
0
 internal static IfcAlignment2DHorizontal Parse(string strDef)
 {
     IfcAlignment2DHorizontal a = new IfcAlignment2DHorizontal(); int ipos = 0; parseFields(a, ParserSTEP.SplitLineFields(strDef), ref ipos); return a;
 }
Пример #7
0
 internal IfcAlignment2DHorizontal(IfcAlignment2DHorizontal a)
     : base()
 {
     mStartDistAlong = a.mStartDistAlong; mSegments = new List<int>(a.mSegments.ToArray());
 }