X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FGeom2d%2FGeom2d_BSplineCurve.cxx;h=7dca8a3f69c7ce3fdb9fd0c5658321e16ae31d78;hb=bc73b00672a218a1301520a3562ece96f72a679c;hpb=00ea7f2676893c9dd9b31cf1f0a8bcad61416a6a diff --git a/src/Geom2d/Geom2d_BSplineCurve.cxx b/src/Geom2d/Geom2d_BSplineCurve.cxx index 1cca78c900..7dca8a3f69 100644 --- a/src/Geom2d/Geom2d_BSplineCurve.cxx +++ b/src/Geom2d/Geom2d_BSplineCurve.cxx @@ -1238,3 +1238,33 @@ void Geom2d_BSplineCurve::PeriodicNormalization(Standard_Real& Parameter) const } } +//======================================================================= +//function : DumpJson +//purpose : +//======================================================================= +void Geom2d_BSplineCurve::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const +{ + OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream) + + OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom2d_BoundedCurve) + + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, rational) + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, periodic) + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, knotSet) + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, smooth) + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, deg) + if (!poles.IsNull()) + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, poles->Size()) + + if (!weights.IsNull()) + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, weights->Size()) + if (!flatknots.IsNull()) + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, flatknots->Size()) + if (!knots.IsNull()) + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, knots->Size()) + if (!mults.IsNull()) + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, mults->Size()) + + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, maxderivinv) + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, maxderivinvok) +}