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