示例#1
0
        protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
        {
            base.setJSON(obj, host, processed);
            IfcDirection refDirection = RefDirection;

            if (refDirection != null)
            {
                obj["RefDirection"] = refDirection.getJson(this, processed);
            }
        }
示例#2
0
        protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
        {
            base.setJSON(obj, host, processed);
            IfcDirection axis = Axis;

            if (axis != null)
            {
                obj["Axis"] = axis.getJson(this, processed);
            }
        }
示例#3
0
        protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
        {
            base.setJSON(obj, host, options);
            IfcDirection refDirection = RefDirection;

            if (refDirection != null)
            {
                obj["RefDirection"] = refDirection.getJson(this, options);
            }
        }
示例#4
0
        protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
        {
            base.setJSON(obj, host, options);
            IfcDirection axis = Axis;

            if (axis != null)
            {
                obj["Axis"] = axis.getJson(this, options);
            }
        }
示例#5
0
        protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
        {
            base.setJSON(obj, host, options);
            IfcDirection axis = Axis, refDirection = RefDirection;

            if (axis == null)
            {
                if (refDirection != null)
                {
                    obj["Axis"]         = mDatabase.Factory.ZAxis.getJson(this, options);
                    obj["RefDirection"] = refDirection.getJson(this, options);
                }
            }
            else if (refDirection == null)
            {
                obj["Axis"]         = axis.getJson(this, options);
                obj["RefDirection"] = mDatabase.Factory.XAxis.getJson(this, options);
            }
            else if (!axis.isZAxis || !refDirection.isXAxis)
            {
                obj["Axis"]         = axis.getJson(this, options);
                obj["RefDirection"] = refDirection.getJson(this, options);
            }
        }