예제 #1
0
 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;
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 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();
     }
 }
예제 #4
0
 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;
     }
 }
예제 #5
0
 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();
         }
     }
 }
예제 #6
0
 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);
 }