protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options) { base.setJSON(obj, host, options); obj["Directrix"] = Directrix.getJson(this, options); obj["CrossSectionPositions"] = new JArray(CrossSectionPositions.Select(x => x.getJson(this, options))); obj["CrossSections"] = new JArray(CrossSections.Select(x => x.getJson(this, options))); obj["FixedAxisVertical"] = mFixedAxisVertical; }
protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options) { base.setJSON(obj, host, options); obj["Directrix"] = Directrix.getJson(this, options); if (StartDistance != null) { obj["StartDistance"] = StartDistance.getJson(this, options); } if (EndDistance != null) { obj["EndDistance"] = EndDistance.getJson(this, options); } }
protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options) { base.setJSON(obj, host, options); obj["Directrix"] = Directrix.getJson(this, options); if (!double.IsNaN(mStartParam)) { obj["StartParam"] = mStartParam.ToString(); } if (!double.IsNaN(mEndParam)) { obj["EndParam"] = mEndParam.ToString(); } }
protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options) { base.setJSON(obj, host, options); obj["Directrix"] = Directrix.getJson(this, options); obj["Radius"] = Radius; if (!double.IsNaN(mInnerRadius) && mInnerRadius < mDatabase.Tolerance) { obj["InnerRadius"] = InnerRadius; } if (!double.IsNaN(mStartParam)) { obj["StartParam"] = InnerRadius; } if (!double.IsNaN(mEndParam)) { obj["EndParam"] = InnerRadius; } }
protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options) { base.setJSON(obj, host, options); obj["Directrix"] = Directrix.getJson(this, options); if (mDatabase != null && mDatabase.Release < ReleaseVersion.IFC4X3_RC2) { IfcParameterValue startParameter = mStartParam as IfcParameterValue; if (startParameter != null) { obj["StartParam"] = startParameter.Measure.ToString(); } IfcParameterValue endParameter = mEndParam as IfcParameterValue; if (endParameter != null) { obj["EndParam"] = endParameter.Measure.ToString(); } } }
protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options) { base.setJSON(obj, host, options); obj["Directrix"] = Directrix.getJson(this, options); obj["Inclinating"] = Inclinating.getJson(this, options); }