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); } }
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); } }
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); } }
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); } }
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); } }